3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-newlib-hw-fp Turn on hardware floating point math"
17 --enable-multilib build many library versions (default)"
19 --enable-target-optspace optimize for space"
21 --enable-malloc-debugging indicate malloc debugging requested"
23 --enable-newlib-multithread enable support for multiple threads"
25 --enable-newlib-iconv enable iconv library support"
27 --enable-newlib-elix-level supply desired elix library level (1-4)"
29 --disable-newlib-io-float disable printf/scanf family float support"
31 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
36 --enable-shared[=PKGS] build shared libraries [default=yes]"
38 --enable-static[=PKGS] build static libraries [default=yes]"
40 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
42 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
44 --disable-libtool-lock avoid locking (might break parallel builds)"
46 --with-pic try to use only PIC/non-PIC objects [default=use both]"
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 SHELL=${CONFIG_SHELL-/bin/sh}
86 # Maximum number of lines to put in a shell here document.
93 # If the previous option needs an argument, assign it.
94 if test -n "$ac_prev"; then
95 eval "$ac_prev=\$ac_option"
101 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
105 # Accept the important Cygnus configure options, so we can diagnose typos.
109 -bindir | --bindir | --bindi | --bind | --bin | --bi)
111 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
112 bindir="$ac_optarg" ;;
114 -build | --build | --buil | --bui | --bu)
116 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
117 build="$ac_optarg" ;;
119 -cache-file | --cache-file | --cache-fil | --cache-fi \
120 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
121 ac_prev=cache_file ;;
122 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
123 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
124 cache_file="$ac_optarg" ;;
126 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
128 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
130 datadir="$ac_optarg" ;;
132 -disable-* | --disable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}=no" ;;
141 -enable-* | --enable-*)
142 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
143 # Reject names that are not valid shell variable names.
144 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
145 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}='$ac_optarg'" ;;
154 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
155 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
156 | --exec | --exe | --ex)
157 ac_prev=exec_prefix ;;
158 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
159 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
160 | --exec=* | --exe=* | --ex=*)
161 exec_prefix="$ac_optarg" ;;
163 -gas | --gas | --ga | --g)
164 # Obsolete; use --with-gas.
167 -help | --help | --hel | --he)
168 # Omit some internal or obsolete options to make the list less imposing.
169 # This message is too long to be a string in the A/UX 3.1 sh.
171 Usage: configure [options] [host]
172 Options: [defaults in brackets after descriptions]
174 --cache-file=FILE cache test results in FILE
175 --help print this message
176 --no-create do not create output files
177 --quiet, --silent do not print \`checking...' messages
178 --version print the version of autoconf that created configure
179 Directory and file names:
180 --prefix=PREFIX install architecture-independent files in PREFIX
182 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
184 --bindir=DIR user executables in DIR [EPREFIX/bin]
185 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
186 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
187 --datadir=DIR read-only architecture-independent data in DIR
189 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
190 --sharedstatedir=DIR modifiable architecture-independent data in DIR
192 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
193 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
194 --includedir=DIR C header files in DIR [PREFIX/include]
195 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
196 --infodir=DIR info documentation in DIR [PREFIX/info]
197 --mandir=DIR man documentation in DIR [PREFIX/man]
198 --srcdir=DIR find the sources in DIR [configure dir or ..]
199 --program-prefix=PREFIX prepend PREFIX to installed program names
200 --program-suffix=SUFFIX append SUFFIX to installed program names
201 --program-transform-name=PROGRAM
202 run sed PROGRAM on installed program names
206 --build=BUILD configure for building on BUILD [BUILD=HOST]
207 --host=HOST configure for HOST [guessed]
208 --target=TARGET configure for TARGET [TARGET=HOST]
209 Features and packages:
210 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
211 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
212 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
213 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
214 --x-includes=DIR X include files are in DIR
215 --x-libraries=DIR X library files are in DIR
217 if test -n "$ac_help"; then
218 echo "--enable and --with options recognized:$ac_help"
222 -host | --host | --hos | --ho)
224 -host=* | --host=* | --hos=* | --ho=*)
227 -includedir | --includedir | --includedi | --included | --include \
228 | --includ | --inclu | --incl | --inc)
229 ac_prev=includedir ;;
230 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
231 | --includ=* | --inclu=* | --incl=* | --inc=*)
232 includedir="$ac_optarg" ;;
234 -infodir | --infodir | --infodi | --infod | --info | --inf)
236 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
237 infodir="$ac_optarg" ;;
239 -libdir | --libdir | --libdi | --libd)
241 -libdir=* | --libdir=* | --libdi=* | --libd=*)
242 libdir="$ac_optarg" ;;
244 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
245 | --libexe | --libex | --libe)
246 ac_prev=libexecdir ;;
247 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
248 | --libexe=* | --libex=* | --libe=*)
249 libexecdir="$ac_optarg" ;;
251 -localstatedir | --localstatedir | --localstatedi | --localstated \
252 | --localstate | --localstat | --localsta | --localst \
253 | --locals | --local | --loca | --loc | --lo)
254 ac_prev=localstatedir ;;
255 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
256 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
257 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
258 localstatedir="$ac_optarg" ;;
260 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
262 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
263 mandir="$ac_optarg" ;;
266 # Obsolete; use --without-fp.
269 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
273 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
274 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
277 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
278 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
279 | --oldin | --oldi | --old | --ol | --o)
280 ac_prev=oldincludedir ;;
281 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
282 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
283 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
284 oldincludedir="$ac_optarg" ;;
286 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
288 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
289 prefix="$ac_optarg" ;;
291 -program-prefix | --program-prefix | --program-prefi | --program-pref \
292 | --program-pre | --program-pr | --program-p)
293 ac_prev=program_prefix ;;
294 -program-prefix=* | --program-prefix=* | --program-prefi=* \
295 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
296 program_prefix="$ac_optarg" ;;
298 -program-suffix | --program-suffix | --program-suffi | --program-suff \
299 | --program-suf | --program-su | --program-s)
300 ac_prev=program_suffix ;;
301 -program-suffix=* | --program-suffix=* | --program-suffi=* \
302 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
303 program_suffix="$ac_optarg" ;;
305 -program-transform-name | --program-transform-name \
306 | --program-transform-nam | --program-transform-na \
307 | --program-transform-n | --program-transform- \
308 | --program-transform | --program-transfor \
309 | --program-transfo | --program-transf \
310 | --program-trans | --program-tran \
311 | --progr-tra | --program-tr | --program-t)
312 ac_prev=program_transform_name ;;
313 -program-transform-name=* | --program-transform-name=* \
314 | --program-transform-nam=* | --program-transform-na=* \
315 | --program-transform-n=* | --program-transform-=* \
316 | --program-transform=* | --program-transfor=* \
317 | --program-transfo=* | --program-transf=* \
318 | --program-trans=* | --program-tran=* \
319 | --progr-tra=* | --program-tr=* | --program-t=*)
320 program_transform_name="$ac_optarg" ;;
322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
323 | -silent | --silent | --silen | --sile | --sil)
326 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
328 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
330 sbindir="$ac_optarg" ;;
332 -sharedstatedir | --sharedstatedir | --sharedstatedi \
333 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
334 | --sharedst | --shareds | --shared | --share | --shar \
336 ac_prev=sharedstatedir ;;
337 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
338 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
339 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
341 sharedstatedir="$ac_optarg" ;;
343 -site | --site | --sit)
345 -site=* | --site=* | --sit=*)
348 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
350 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
351 srcdir="$ac_optarg" ;;
353 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
354 | --syscon | --sysco | --sysc | --sys | --sy)
355 ac_prev=sysconfdir ;;
356 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
357 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
358 sysconfdir="$ac_optarg" ;;
360 -target | --target | --targe | --targ | --tar | --ta | --t)
362 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
363 target="$ac_optarg" ;;
365 -v | -verbose | --verbose | --verbos | --verbo | --verb)
368 -version | --version | --versio | --versi | --vers)
369 echo "configure generated by autoconf version 2.13"
373 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}='$ac_optarg'" ;;
385 -without-* | --without-*)
386 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 ac_package=`echo $ac_package| sed 's/-/_/g'`
392 eval "with_${ac_package}=no" ;;
395 # Obsolete; use --with-x.
398 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
399 | --x-incl | --x-inc | --x-in | --x-i)
400 ac_prev=x_includes ;;
401 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
402 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
403 x_includes="$ac_optarg" ;;
405 -x-libraries | --x-libraries | --x-librarie | --x-librari \
406 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
407 ac_prev=x_libraries ;;
408 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
409 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
410 x_libraries="$ac_optarg" ;;
412 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
416 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
417 echo "configure: warning: $ac_option: invalid host type" 1>&2
419 if test "x$nonopt" != xNONE; then
420 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
428 if test -n "$ac_prev"; then
429 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
432 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
434 # File descriptor usage:
437 # 2 errors and warnings
438 # 3 some systems may open it to /dev/tty
439 # 4 used on the Kubota Titan
440 # 6 checking for... messages and results
441 # 5 compiler messages saved in config.log
442 if test "$silent" = yes; then
450 This file contains any messages produced by compilers while
451 running configure, to aid debugging if configure makes a mistake.
454 # Strip out --no-create and --no-recursion so they do not pile up.
455 # Also quote any args containing shell metacharacters.
460 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
461 | --no-cr | --no-c) ;;
462 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
463 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
465 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
466 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
471 # Only set these to C if already set. These must not be set unconditionally
472 # because not all systems understand e.g. LANG=C (notably SCO).
473 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
474 # Non-C LC_CTYPE values break the ctype check.
475 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
476 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
477 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
478 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
480 # confdefs.h avoids OS command line length limits that DEFS can exceed.
481 rm -rf conftest* confdefs.h
482 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
485 # A filename unique to this package, relative to the directory that
486 # configure is in, which we can look for to find out if srcdir is correct.
487 ac_unique_file=libm.texinfo
489 # Find the source files, if location was not specified.
490 if test -z "$srcdir"; then
491 ac_srcdir_defaulted=yes
492 # Try the directory containing this script, then its parent.
494 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
495 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
497 if test ! -r $srcdir/$ac_unique_file; then
501 ac_srcdir_defaulted=no
503 if test ! -r $srcdir/$ac_unique_file; then
504 if test "$ac_srcdir_defaulted" = yes; then
505 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
507 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
510 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
512 # Prefer explicitly selected file to automatically selected ones.
513 if test -z "$CONFIG_SITE"; then
514 if test "x$prefix" != xNONE; then
515 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
517 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
520 for ac_site_file in $CONFIG_SITE; do
521 if test -r "$ac_site_file"; then
522 echo "loading site script $ac_site_file"
527 if test -r "$cache_file"; then
528 echo "loading cache $cache_file"
531 echo "creating cache $cache_file"
536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
537 ac_cpp='$CPP $CPPFLAGS'
538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
540 cross_compiling=$ac_cv_prog_cc_cross
544 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
545 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
546 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
553 ac_n= ac_c='\c' ac_t=
558 # Check whether --enable-newlib_hw_fp or --disable-newlib_hw_fp was given.
559 if test "${enable_newlib_hw_fp+set}" = set; then
560 enableval="$enable_newlib_hw_fp"
561 case "${enableval}" in
562 yes) newlib_hw_fp=true ;;
563 no) newlib_hw_fp=false ;;
564 *) { echo "configure: error: bad value ${enableval} for --enable-newlib-hw-fp" 1>&2; exit 1; } ;;
572 if test x$newlib_hw_fp = xtrue; then
574 NEWLIB_HW_FP_FALSE='#'
576 NEWLIB_HW_FP_TRUE='#'
581 for ac_dir in ../.. $srcdir/../..; do
582 if test -f $ac_dir/install-sh; then
584 ac_install_sh="$ac_aux_dir/install-sh -c"
586 elif test -f $ac_dir/install.sh; then
588 ac_install_sh="$ac_aux_dir/install.sh -c"
592 if test -z "$ac_aux_dir"; then
593 { echo "configure: error: can not find install-sh or install.sh in ../.. $srcdir/../.." 1>&2; exit 1; }
595 ac_config_guess=$ac_aux_dir/config.guess
596 ac_config_sub=$ac_aux_dir/config.sub
597 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
600 am__api_version="1.4"
601 # Find a good install program. We prefer a C program (faster),
602 # so one script is as good as another. But avoid the broken or
603 # incompatible versions:
604 # SysV /etc/install, /usr/sbin/install
605 # SunOS /usr/etc/install
608 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
609 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
610 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
611 # ./install, which can be erroneously created by make from ./install.sh.
612 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
613 echo "configure:614: checking for a BSD compatible install" >&5
614 if test -z "$INSTALL"; then
615 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
619 for ac_dir in $PATH; do
620 # Account for people who put trailing slashes in PATH elements.
622 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
624 # OSF1 and SCO ODT 3.0 have their own names for install.
625 # Don't use installbsd from OSF since it installs stuff as root
627 for ac_prog in ginstall scoinst install; do
628 if test -f $ac_dir/$ac_prog; then
629 if test $ac_prog = install &&
630 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
631 # AIX install. It has an incompatible calling convention.
634 ac_cv_path_install="$ac_dir/$ac_prog -c"
645 if test "${ac_cv_path_install+set}" = set; then
646 INSTALL="$ac_cv_path_install"
648 # As a last resort, use the slow shell script. We don't cache a
649 # path for INSTALL within a source directory, because that will
650 # break other packages using the cache if that directory is
651 # removed, or if the path is relative.
652 INSTALL="$ac_install_sh"
655 echo "$ac_t""$INSTALL" 1>&6
657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
658 # It thinks the first close brace ends the variable substitution.
659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
665 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
666 echo "configure:667: checking whether build environment is sane" >&5
669 echo timestamp > conftestfile
670 # Do `set' in a subshell so we don't clobber the current shell's
671 # arguments. Must try -L first in case configure is actually a
672 # symlink; some systems play weird games with the mod time of symlinks
673 # (eg FreeBSD returns the mod time of the symlink's containing
676 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
677 if test "$*" = "X"; then
679 set X `ls -t $srcdir/configure conftestfile`
681 if test "$*" != "X $srcdir/configure conftestfile" \
682 && test "$*" != "X conftestfile $srcdir/configure"; then
684 # If neither matched, then we have a broken ls. This can happen
685 # if, for instance, CONFIG_SHELL is bash and it inherits a
686 # broken ls alias from the environment. This has actually
687 # happened. Such a system could not be considered "sane".
688 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
689 alias in your environment" 1>&2; exit 1; }
692 test "$2" = conftestfile
698 { echo "configure: error: newly created file is older than distributed files!
699 Check your system clock" 1>&2; exit 1; }
702 echo "$ac_t""yes" 1>&6
703 if test "$program_transform_name" = s,x,x,; then
704 program_transform_name=
706 # Double any \ or $. echo might interpret backslashes.
707 cat <<\EOF_SED > conftestsed
708 s,\\,\\\\,g; s,\$,$$,g
710 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
713 test "$program_prefix" != NONE &&
714 program_transform_name="s,^,${program_prefix},; $program_transform_name"
715 # Use a double $ so make ignores it.
716 test "$program_suffix" != NONE &&
717 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
719 # sed with no file args requires a program.
720 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
722 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
723 echo "configure:724: checking whether ${MAKE-make} sets \${MAKE}" >&5
724 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
725 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 cat > conftestmake <<\EOF
730 @echo 'ac_maketemp="${MAKE}"'
732 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
733 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
734 if test -n "$ac_maketemp"; then
735 eval ac_cv_prog_make_${ac_make}_set=yes
737 eval ac_cv_prog_make_${ac_make}_set=no
741 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
742 echo "$ac_t""yes" 1>&6
745 echo "$ac_t""no" 1>&6
746 SET_MAKE="MAKE=${MAKE-make}"
749 if test $host != $build; then
750 ac_tool_prefix=${host_alias}-
755 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
756 echo "configure:757: checking for Cygwin environment" >&5
757 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
758 echo $ac_n "(cached) $ac_c" 1>&6
760 cat > conftest.$ac_ext <<EOF
761 #line 762 "configure"
762 #include "confdefs.h"
767 #define __CYGWIN__ __CYGWIN32__
772 if { (eval echo configure:773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
776 echo "configure: failed program was:" >&5
777 cat conftest.$ac_ext >&5
785 echo "$ac_t""$ac_cv_cygwin" 1>&6
787 test "$ac_cv_cygwin" = yes && CYGWIN=yes
788 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
789 echo "configure:790: checking for mingw32 environment" >&5
790 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
793 cat > conftest.$ac_ext <<EOF
794 #line 795 "configure"
795 #include "confdefs.h"
801 if { (eval echo configure:802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
805 echo "configure: failed program was:" >&5
806 cat conftest.$ac_ext >&5
814 echo "$ac_t""$ac_cv_mingw32" 1>&6
816 test "$ac_cv_mingw32" = yes && MINGW32=yes
818 # Check whether --enable-multilib or --disable-multilib was given.
819 if test "${enable_multilib+set}" = set; then
820 enableval="$enable_multilib"
821 case "${enableval}" in
824 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
830 # Check whether --enable-target-optspace or --disable-target-optspace was given.
831 if test "${enable_target_optspace+set}" = set; then
832 enableval="$enable_target_optspace"
833 case "${enableval}" in
834 yes) target_optspace=yes ;;
835 no) target_optspace=no ;;
836 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
842 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
843 if test "${enable_malloc_debugging+set}" = set; then
844 enableval="$enable_malloc_debugging"
845 case "${enableval}" in
846 yes) malloc_debugging=yes ;;
847 no) malloc_debugging=no ;;
848 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
854 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
855 if test "${enable_newlib_multithread+set}" = set; then
856 enableval="$enable_newlib_multithread"
857 case "${enableval}" in
858 yes) newlib_multithread=yes ;;
859 no) newlib_multithread=no ;;
860 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
863 newlib_multithread=yes
866 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
867 if test "${enable_newlib_iconv+set}" = set; then
868 enableval="$enable_newlib_iconv"
869 if test "${newlib_iconv+set}" != set; then
870 case "${enableval}" in
871 yes) newlib_iconv=yes ;;
872 no) newlib_iconv=no ;;
873 *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;;
877 newlib_iconv=${newlib_iconv}
880 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
881 if test "${enable_newlib_elix_level+set}" = set; then
882 enableval="$enable_newlib_elix_level"
883 case "${enableval}" in
884 0) newlib_elix_level=0 ;;
885 1) newlib_elix_level=1 ;;
886 2) newlib_elix_level=2 ;;
887 3) newlib_elix_level=3 ;;
888 4) newlib_elix_level=4 ;;
889 *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
895 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
896 if test "${enable_newlib_io_float+set}" = set; then
897 enableval="$enable_newlib_io_float"
898 case "${enableval}" in
899 yes) newlib_io_float=yes ;;
900 no) newlib_io_float=no ;;
901 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
907 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
908 if test "${enable_newlib_supplied_syscalls+set}" = set; then
909 enableval="$enable_newlib_supplied_syscalls"
910 case "${enableval}" in
911 yes) newlib_may_supply_syscalls=yes ;;
912 no) newlib_may_supply_syscalls=no ;;
913 *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
916 newlib_may_supply_syscalls=yes
921 if test x${newlib_may_supply_syscalls} = xyes; then
922 MAY_SUPPLY_SYSCALLS_TRUE=
923 MAY_SUPPLY_SYSCALLS_FALSE='#'
925 MAY_SUPPLY_SYSCALLS_TRUE='#'
926 MAY_SUPPLY_SYSCALLS_FALSE=
930 test -z "${with_target_subdir}" && with_target_subdir=.
932 if test "${srcdir}" = "."; then
933 if test "${with_target_subdir}" != "."; then
934 newlib_basedir="${srcdir}/${with_multisrctop}../.."
936 newlib_basedir="${srcdir}/${with_multisrctop}.."
939 newlib_basedir="${srcdir}/.."
944 # Do some error checking and defaulting for the host and target type.
946 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
949 # 1. You are not allowed to specify --host, --target, and nonopt at the
951 # 2. Host defaults to nonopt.
952 # 3. If nonopt is not specified, then host defaults to the current host,
953 # as determined by config.guess.
954 # 4. Target and build default to nonopt.
955 # 5. If nonopt is not specified, then target and build default to host.
957 # The aliases save the names the user supplied, while $host etc.
958 # will get canonicalized.
959 case $host---$target---$nonopt in
960 NONE---*---* | *---NONE---* | *---*---NONE) ;;
961 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
965 # Make sure we can run config.sub.
966 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
967 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
970 echo $ac_n "checking host system type""... $ac_c" 1>&6
971 echo "configure:972: checking host system type" >&5
974 case "$host_alias" in
978 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
979 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
981 *) host_alias=$nonopt ;;
985 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
986 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
987 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
988 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
989 echo "$ac_t""$host" 1>&6
991 echo $ac_n "checking target system type""... $ac_c" 1>&6
992 echo "configure:993: checking target system type" >&5
995 case "$target_alias" in
998 NONE) target_alias=$host_alias ;;
999 *) target_alias=$nonopt ;;
1003 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1004 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1005 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1006 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1007 echo "$ac_t""$target" 1>&6
1009 echo $ac_n "checking build system type""... $ac_c" 1>&6
1010 echo "configure:1011: checking build system type" >&5
1013 case "$build_alias" in
1016 NONE) build_alias=$host_alias ;;
1017 *) build_alias=$nonopt ;;
1021 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1022 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1023 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1024 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1025 echo "$ac_t""$build" 1>&6
1027 test "$host_alias" != "$target_alias" &&
1028 test "$program_prefix$program_suffix$program_transform_name" = \
1030 program_prefix=${target_alias}-
1038 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1039 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1041 cat >> confdefs.h <<EOF
1042 #define PACKAGE "$PACKAGE"
1045 cat >> confdefs.h <<EOF
1046 #define VERSION "$VERSION"
1051 missing_dir=`cd $ac_aux_dir && pwd`
1052 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1053 echo "configure:1054: checking for working aclocal-${am__api_version}" >&5
1054 # Run test in a subshell; some versions of sh will print an error if
1055 # an executable is not found, even if stderr is redirected.
1056 # Redirect stdin to placate older versions of autoconf. Sigh.
1057 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1058 ACLOCAL=aclocal-${am__api_version}
1059 echo "$ac_t""found" 1>&6
1061 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1062 echo "$ac_t""missing" 1>&6
1065 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1066 echo "configure:1067: checking for working autoconf" >&5
1067 # Run test in a subshell; some versions of sh will print an error if
1068 # an executable is not found, even if stderr is redirected.
1069 # Redirect stdin to placate older versions of autoconf. Sigh.
1070 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1072 echo "$ac_t""found" 1>&6
1074 AUTOCONF="$missing_dir/missing autoconf"
1075 echo "$ac_t""missing" 1>&6
1078 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1079 echo "configure:1080: checking for working automake-${am__api_version}" >&5
1080 # Run test in a subshell; some versions of sh will print an error if
1081 # an executable is not found, even if stderr is redirected.
1082 # Redirect stdin to placate older versions of autoconf. Sigh.
1083 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1084 AUTOMAKE=automake-${am__api_version}
1085 echo "$ac_t""found" 1>&6
1087 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1088 echo "$ac_t""missing" 1>&6
1091 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1092 echo "configure:1093: checking for working autoheader" >&5
1093 # Run test in a subshell; some versions of sh will print an error if
1094 # an executable is not found, even if stderr is redirected.
1095 # Redirect stdin to placate older versions of autoconf. Sigh.
1096 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1097 AUTOHEADER=autoheader
1098 echo "$ac_t""found" 1>&6
1100 AUTOHEADER="$missing_dir/missing autoheader"
1101 echo "$ac_t""missing" 1>&6
1104 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1105 echo "configure:1106: checking for working makeinfo" >&5
1106 # Run test in a subshell; some versions of sh will print an error if
1107 # an executable is not found, even if stderr is redirected.
1108 # Redirect stdin to placate older versions of autoconf. Sigh.
1109 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1111 echo "$ac_t""found" 1>&6
1113 MAKEINFO="$missing_dir/missing makeinfo"
1114 echo "$ac_t""missing" 1>&6
1119 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1120 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1121 # are probably using a cross compiler, which will not be able to fully
1122 # link an executable. This should really be fixed in autoconf
1127 # Extract the first word of "gcc", so it can be a program name with args.
1128 set dummy gcc; ac_word=$2
1129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1130 echo "configure:1131: checking for $ac_word" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1134 if test -n "$CC"; then
1135 ac_cv_prog_CC="$CC" # Let the user override the test.
1137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1139 for ac_dir in $ac_dummy; do
1140 test -z "$ac_dir" && ac_dir=.
1141 if test -f $ac_dir/$ac_word; then
1150 if test -n "$CC"; then
1151 echo "$ac_t""$CC" 1>&6
1153 echo "$ac_t""no" 1>&6
1156 if test -z "$CC"; then
1157 # Extract the first word of "cc", so it can be a program name with args.
1158 set dummy cc; 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=":"
1170 for ac_dir in $ac_dummy; do
1171 test -z "$ac_dir" && ac_dir=.
1172 if test -f $ac_dir/$ac_word; then
1173 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1174 ac_prog_rejected=yes
1182 if test $ac_prog_rejected = yes; then
1183 # We found a bogon in the path, so make sure we never use it.
1184 set dummy $ac_cv_prog_CC
1186 if test $# -gt 0; then
1187 # We chose a different compiler from the bogus one.
1188 # However, it has the same basename, so the bogon will be chosen
1189 # first if we set CC to just the basename; use the full file name.
1191 set dummy "$ac_dir/$ac_word" "$@"
1199 if test -n "$CC"; then
1200 echo "$ac_t""$CC" 1>&6
1202 echo "$ac_t""no" 1>&6
1205 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1208 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1209 echo "configure:1210: checking whether we are using GNU C" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 cat > conftest.c <<EOF
1218 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1225 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1227 if test $ac_cv_prog_gcc = yes; then
1229 ac_test_CFLAGS="${CFLAGS+set}"
1230 ac_save_CFLAGS="$CFLAGS"
1232 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1233 echo "configure:1234: checking whether ${CC-cc} accepts -g" >&5
1234 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 echo 'void f(){}' > conftest.c
1238 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1247 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1248 if test "$ac_test_CFLAGS" = set; then
1249 CFLAGS="$ac_save_CFLAGS"
1250 elif test $ac_cv_prog_cc_g = yes; then
1257 test "${CFLAGS+set}" = set || CFLAGS="-g"
1261 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1262 set dummy ${ac_tool_prefix}as; ac_word=$2
1263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1264 echo "configure:1265: checking for $ac_word" >&5
1265 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1268 if test -n "$AS"; then
1269 ac_cv_prog_AS="$AS" # Let the user override the test.
1271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1273 for ac_dir in $ac_dummy; do
1274 test -z "$ac_dir" && ac_dir=.
1275 if test -f $ac_dir/$ac_word; then
1276 ac_cv_prog_AS="${ac_tool_prefix}as"
1281 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1285 if test -n "$AS"; then
1286 echo "$ac_t""$AS" 1>&6
1288 echo "$ac_t""no" 1>&6
1293 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1294 set dummy ${ac_tool_prefix}ar; ac_word=$2
1295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1296 echo "configure:1297: checking for $ac_word" >&5
1297 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 if test -n "$AR"; then
1301 ac_cv_prog_AR="$AR" # Let the user override the test.
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1305 for ac_dir in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir=.
1307 if test -f $ac_dir/$ac_word; then
1308 ac_cv_prog_AR="${ac_tool_prefix}ar"
1313 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1317 if test -n "$AR"; then
1318 echo "$ac_t""$AR" 1>&6
1320 echo "$ac_t""no" 1>&6
1325 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1326 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1328 echo "configure:1329: checking for $ac_word" >&5
1329 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 if test -n "$RANLIB"; then
1333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1337 for ac_dir in $ac_dummy; do
1338 test -z "$ac_dir" && ac_dir=.
1339 if test -f $ac_dir/$ac_word; then
1340 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1347 RANLIB="$ac_cv_prog_RANLIB"
1348 if test -n "$RANLIB"; then
1349 echo "$ac_t""$RANLIB" 1>&6
1351 echo "$ac_t""no" 1>&6
1355 if test -z "$ac_cv_prog_RANLIB"; then
1356 if test -n "$ac_tool_prefix"; then
1357 # Extract the first word of "ranlib", so it can be a program name with args.
1358 set dummy ranlib; ac_word=$2
1359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_word" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 if test -n "$RANLIB"; then
1365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1369 for ac_dir in $ac_dummy; do
1370 test -z "$ac_dir" && ac_dir=.
1371 if test -f $ac_dir/$ac_word; then
1372 ac_cv_prog_RANLIB="ranlib"
1377 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1380 RANLIB="$ac_cv_prog_RANLIB"
1381 if test -n "$RANLIB"; then
1382 echo "$ac_t""$RANLIB" 1>&6
1384 echo "$ac_t""no" 1>&6
1393 # Find a good install program. We prefer a C program (faster),
1394 # so one script is as good as another. But avoid the broken or
1395 # incompatible versions:
1396 # SysV /etc/install, /usr/sbin/install
1397 # SunOS /usr/etc/install
1398 # IRIX /sbin/install
1400 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1401 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1402 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1403 # ./install, which can be erroneously created by make from ./install.sh.
1404 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1405 echo "configure:1406: checking for a BSD compatible install" >&5
1406 if test -z "$INSTALL"; then
1407 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1411 for ac_dir in $PATH; do
1412 # Account for people who put trailing slashes in PATH elements.
1414 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1416 # OSF1 and SCO ODT 3.0 have their own names for install.
1417 # Don't use installbsd from OSF since it installs stuff as root
1419 for ac_prog in ginstall scoinst install; do
1420 if test -f $ac_dir/$ac_prog; then
1421 if test $ac_prog = install &&
1422 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1423 # AIX install. It has an incompatible calling convention.
1426 ac_cv_path_install="$ac_dir/$ac_prog -c"
1437 if test "${ac_cv_path_install+set}" = set; then
1438 INSTALL="$ac_cv_path_install"
1440 # As a last resort, use the slow shell script. We don't cache a
1441 # path for INSTALL within a source directory, because that will
1442 # break other packages using the cache if that directory is
1443 # removed, or if the path is relative.
1444 INSTALL="$ac_install_sh"
1447 echo "$ac_t""$INSTALL" 1>&6
1449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1450 # It thinks the first close brace ends the variable substitution.
1451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1458 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1459 echo "configure:1460: checking whether to enable maintainer-specific portions of Makefiles" >&5
1460 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1461 if test "${enable_maintainer_mode+set}" = set; then
1462 enableval="$enable_maintainer_mode"
1463 USE_MAINTAINER_MODE=$enableval
1465 USE_MAINTAINER_MODE=no
1468 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1471 if test $USE_MAINTAINER_MODE = yes; then
1472 MAINTAINER_MODE_TRUE=
1473 MAINTAINER_MODE_FALSE='#'
1475 MAINTAINER_MODE_TRUE='#'
1476 MAINTAINER_MODE_FALSE=
1478 MAINT=$MAINTAINER_MODE_TRUE
1482 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1483 # at least currently, we never actually build a program, so we never
1484 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1485 # fails, because we are probably configuring with a cross compiler
1486 # which can't create executables. So we include AC_EXEEXT to keep
1487 # automake happy, but we don't execute it, since we don't care about
1492 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1493 echo "configure:1494: checking for executable suffix" >&5
1494 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1501 echo 'int main () { return 0; }' > conftest.$ac_ext
1503 if { (eval echo configure:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1504 for file in conftest.*; do
1506 *.c | *.o | *.obj) ;;
1507 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1511 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1514 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1519 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1520 echo "$ac_t""${ac_cv_exeext}" 1>&6
1525 . ${newlib_basedir}/configure.host
1527 newlib_cflags="${newlib_cflags} -fno-builtin"
1529 NEWLIB_CFLAGS=${newlib_cflags}
1537 if test x${newlib_elix_level} = x0; then
1539 ELIX_LEVEL_0_FALSE='#'
1541 ELIX_LEVEL_0_TRUE='#'
1546 if test x${newlib_elix_level} = x1; then
1548 ELIX_LEVEL_1_FALSE='#'
1550 ELIX_LEVEL_1_TRUE='#'
1555 if test x${newlib_elix_level} = x2; then
1557 ELIX_LEVEL_2_FALSE='#'
1559 ELIX_LEVEL_2_TRUE='#'
1564 if test x${newlib_elix_level} = x3; then
1566 ELIX_LEVEL_3_FALSE='#'
1568 ELIX_LEVEL_3_TRUE='#'
1573 if test x${newlib_elix_level} = x4; then
1575 ELIX_LEVEL_4_FALSE='#'
1577 ELIX_LEVEL_4_TRUE='#'
1583 if test x${use_libtool} = xyes; then
1585 USE_LIBTOOL_FALSE='#'
1587 USE_LIBTOOL_TRUE='#'
1591 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
1592 # use oext, which is set in configure.host based on the target platform.
1605 if test "${use_libtool}" = "yes"; then
1607 # Check whether --enable-shared or --disable-shared was given.
1608 if test "${enable_shared+set}" = set; then
1609 enableval="$enable_shared"
1610 p=${PACKAGE-default}
1612 yes) enable_shared=yes ;;
1613 no) enable_shared=no ;;
1616 # Look at the argument we got. We use all the common list separators.
1617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1618 for pkg in $enableval; do
1619 if test "X$pkg" = "X$p"; then
1630 # Check whether --enable-static or --disable-static was given.
1631 if test "${enable_static+set}" = set; then
1632 enableval="$enable_static"
1633 p=${PACKAGE-default}
1635 yes) enable_static=yes ;;
1636 no) enable_static=no ;;
1639 # Look at the argument we got. We use all the common list separators.
1640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1641 for pkg in $enableval; do
1642 if test "X$pkg" = "X$p"; then
1653 # Check whether --enable-fast-install or --disable-fast-install was given.
1654 if test "${enable_fast_install+set}" = set; then
1655 enableval="$enable_fast_install"
1656 p=${PACKAGE-default}
1658 yes) enable_fast_install=yes ;;
1659 no) enable_fast_install=no ;;
1661 enable_fast_install=no
1662 # Look at the argument we got. We use all the common list separators.
1663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1664 for pkg in $enableval; do
1665 if test "X$pkg" = "X$p"; then
1666 enable_fast_install=yes
1673 enable_fast_install=yes
1676 # Extract the first word of "gcc", so it can be a program name with args.
1677 set dummy gcc; ac_word=$2
1678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1679 echo "configure:1680: checking for $ac_word" >&5
1680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1683 if test -n "$CC"; then
1684 ac_cv_prog_CC="$CC" # Let the user override the test.
1686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1688 for ac_dir in $ac_dummy; do
1689 test -z "$ac_dir" && ac_dir=.
1690 if test -f $ac_dir/$ac_word; then
1699 if test -n "$CC"; then
1700 echo "$ac_t""$CC" 1>&6
1702 echo "$ac_t""no" 1>&6
1705 if test -z "$CC"; then
1706 # Extract the first word of "cc", so it can be a program name with args.
1707 set dummy cc; ac_word=$2
1708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1709 echo "configure:1710: checking for $ac_word" >&5
1710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1713 if test -n "$CC"; then
1714 ac_cv_prog_CC="$CC" # Let the user override the test.
1716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1719 for ac_dir in $ac_dummy; do
1720 test -z "$ac_dir" && ac_dir=.
1721 if test -f $ac_dir/$ac_word; then
1722 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1723 ac_prog_rejected=yes
1731 if test $ac_prog_rejected = yes; then
1732 # We found a bogon in the path, so make sure we never use it.
1733 set dummy $ac_cv_prog_CC
1735 if test $# -gt 0; then
1736 # We chose a different compiler from the bogus one.
1737 # However, it has the same basename, so the bogon will be chosen
1738 # first if we set CC to just the basename; use the full file name.
1740 set dummy "$ac_dir/$ac_word" "$@"
1748 if test -n "$CC"; then
1749 echo "$ac_t""$CC" 1>&6
1751 echo "$ac_t""no" 1>&6
1754 if test -z "$CC"; then
1755 case "`uname -s`" in
1757 # Extract the first word of "cl", so it can be a program name with args.
1758 set dummy cl; ac_word=$2
1759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1760 echo "configure:1761: checking for $ac_word" >&5
1761 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 if test -n "$CC"; then
1765 ac_cv_prog_CC="$CC" # Let the user override the test.
1767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1769 for ac_dir in $ac_dummy; do
1770 test -z "$ac_dir" && ac_dir=.
1771 if test -f $ac_dir/$ac_word; then
1780 if test -n "$CC"; then
1781 echo "$ac_t""$CC" 1>&6
1783 echo "$ac_t""no" 1>&6
1788 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1791 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1792 echo "configure:1793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1799 cross_compiling=$ac_cv_prog_cc_cross
1801 cat > conftest.$ac_ext << EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1808 if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1809 ac_cv_prog_cc_works=yes
1810 # If we can't run a trivial program, we are probably using a cross compiler.
1811 if (./conftest; exit) 2>/dev/null; then
1812 ac_cv_prog_cc_cross=no
1814 ac_cv_prog_cc_cross=yes
1817 echo "configure: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1819 ac_cv_prog_cc_works=no
1823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1827 cross_compiling=$ac_cv_prog_cc_cross
1829 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1830 if test $ac_cv_prog_cc_works = no; then
1831 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1833 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1834 echo "configure:1835: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1835 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1836 cross_compiling=$ac_cv_prog_cc_cross
1838 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1839 echo "configure:1840: checking whether we are using GNU C" >&5
1840 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 cat > conftest.c <<EOF
1848 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1855 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1857 if test $ac_cv_prog_gcc = yes; then
1863 ac_test_CFLAGS="${CFLAGS+set}"
1864 ac_save_CFLAGS="$CFLAGS"
1866 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1867 echo "configure:1868: checking whether ${CC-cc} accepts -g" >&5
1868 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 echo 'void f(){}' > conftest.c
1872 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1881 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1882 if test "$ac_test_CFLAGS" = set; then
1883 CFLAGS="$ac_save_CFLAGS"
1884 elif test $ac_cv_prog_cc_g = yes; then
1885 if test "$GCC" = yes; then
1891 if test "$GCC" = yes; then
1898 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1899 if test "${with_gnu_ld+set}" = set; then
1900 withval="$with_gnu_ld"
1901 test "$withval" = no || with_gnu_ld=yes
1907 if test "$GCC" = yes; then
1908 # Check if gcc -print-prog-name=ld gives a path.
1909 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1910 echo "configure:1911: checking for ld used by GCC" >&5
1913 # gcc leaves a trailing carriage return which upsets mingw
1914 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1916 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1919 # Accept absolute paths.
1920 [\\/]* | [A-Za-z]:[\\/]*)
1921 re_direlt='/[^/][^/]*/\.\./'
1922 # Canonicalize the path of ld
1923 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1924 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1925 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1927 test -z "$LD" && LD="$ac_prog"
1930 # If it fails, then pretend we aren't using GCC.
1934 # If it is relative, then search for the first ld in PATH.
1938 elif test "$with_gnu_ld" = yes; then
1939 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1940 echo "configure:1941: checking for GNU ld" >&5
1942 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1943 echo "configure:1944: checking for non-GNU ld" >&5
1945 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1948 if test -z "$LD"; then
1949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1950 for ac_dir in $PATH; do
1951 test -z "$ac_dir" && ac_dir=.
1952 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1953 lt_cv_path_LD="$ac_dir/$ac_prog"
1954 # Check to see if the program is GNU ld. I'd rather use --version,
1955 # but apparently some GNU ld's only accept -v.
1956 # Break only if it was the GNU/non-GNU ld that we prefer.
1957 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1958 test "$with_gnu_ld" != no && break
1960 test "$with_gnu_ld" != yes && break
1966 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1971 if test -n "$LD"; then
1972 echo "$ac_t""$LD" 1>&6
1974 echo "$ac_t""no" 1>&6
1976 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1977 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1978 echo "configure:1979: checking if the linker ($LD) is GNU ld" >&5
1979 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1982 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1983 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1984 lt_cv_prog_gnu_ld=yes
1986 lt_cv_prog_gnu_ld=no
1990 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1991 with_gnu_ld=$lt_cv_prog_gnu_ld
1994 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1995 echo "configure:1996: checking for $LD option to reload object files" >&5
1996 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 lt_cv_ld_reload_flag='-r'
2002 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
2003 reload_flag=$lt_cv_ld_reload_flag
2004 test -n "$reload_flag" && reload_flag=" $reload_flag"
2006 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2007 echo "configure:2008: checking for BSD-compatible nm" >&5
2008 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 if test -n "$NM"; then
2012 # Let the user override the test.
2015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2016 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2017 test -z "$ac_dir" && ac_dir=.
2018 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2019 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2020 # Check to see if the nm accepts a BSD-compat flag.
2021 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2022 # nm: unknown option "B" ignored
2023 # Tru64's nm complains that /dev/null is an invalid object file
2024 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2025 lt_cv_path_NM="$tmp_nm -B"
2027 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2028 lt_cv_path_NM="$tmp_nm -p"
2031 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2032 continue # so that we can try to find one that supports BSD flags
2037 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2042 echo "$ac_t""$NM" 1>&6
2044 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2045 echo "configure:2046: checking whether ln -s works" >&5
2046 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2050 if ln -s X conftestdata 2>/dev/null
2053 ac_cv_prog_LN_S="ln -s"
2058 LN_S="$ac_cv_prog_LN_S"
2059 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2060 echo "$ac_t""yes" 1>&6
2062 echo "$ac_t""no" 1>&6
2065 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2066 echo "configure:2067: checking how to recognise dependant libraries" >&5
2067 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2070 lt_cv_file_magic_cmd='$MAGIC_CMD'
2071 lt_cv_file_magic_test_file=
2072 lt_cv_deplibs_check_method='unknown'
2073 # Need to set the preceding variable on all platforms that support
2074 # interlibrary dependencies.
2075 # 'none' -- dependencies not supported.
2076 # `unknown' -- same as none, but documents that we really don't know.
2077 # 'pass_all' -- all dependencies passed with no checks.
2078 # 'test_compile' -- check by making test program.
2079 # 'file_magic [regex]' -- check by looking for files in library path
2080 # which responds to the $file_magic_cmd with a given egrep regex.
2081 # If you have `file' or equivalent on your system and you're not sure
2082 # whether `pass_all' will *always* work, you probably want this one.
2086 lt_cv_deplibs_check_method=pass_all
2090 lt_cv_deplibs_check_method=pass_all
2094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2095 lt_cv_file_magic_cmd='/usr/bin/file -L'
2096 lt_cv_file_magic_test_file=/shlib/libc.so
2099 cygwin* | mingw* |pw32*)
2100 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2101 lt_cv_file_magic_cmd='$OBJDUMP -f'
2104 darwin* | rhapsody*)
2105 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2106 lt_cv_file_magic_cmd='/usr/bin/file -L'
2108 rhapsody* | darwin1.012)
2109 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2112 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2118 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2121 # Not sure whether the presence of OpenBSD here was a mistake.
2122 # Let's accept both of them until this is cleared up.
2123 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2124 lt_cv_file_magic_cmd=/usr/bin/file
2125 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2129 lt_cv_deplibs_check_method=pass_all
2134 lt_cv_deplibs_check_method=pass_all
2140 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2141 lt_cv_file_magic_cmd=/usr/bin/file
2142 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2145 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2146 lt_cv_file_magic_cmd=/usr/bin/file
2147 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2155 # this will be overridden with pass_all, but let us keep it just in case
2156 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2160 *-32|*"-32 ") libmagic=32-bit;;
2161 *-n32|*"-n32 ") libmagic=N32;;
2162 *-64|*"-64 ") libmagic=64-bit;;
2163 *) libmagic=never-match;;
2165 # this will be overridden with pass_all, but let us keep it just in case
2166 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2169 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2170 lt_cv_deplibs_check_method=pass_all
2173 # This must be Linux ELF.
2176 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2177 lt_cv_deplibs_check_method=pass_all ;;
2179 # glibc up to 2.1.1 does not perform some relocations on ARM
2180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2182 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2186 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2187 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2189 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2194 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2195 lt_cv_file_magic_cmd=/usr/bin/file
2196 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2199 osf3* | osf4* | osf5*)
2200 # this will be overridden with pass_all, but let us keep it just in case
2201 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2202 lt_cv_file_magic_test_file=/shlib/libc.so
2203 lt_cv_deplibs_check_method=pass_all
2207 lt_cv_deplibs_check_method=pass_all
2211 lt_cv_deplibs_check_method=pass_all
2212 lt_cv_file_magic_test_file=/lib/libc.so
2215 sysv5uw[78]* | sysv4*uw2*)
2216 lt_cv_deplibs_check_method=pass_all
2219 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2220 case $host_vendor in
2222 lt_cv_deplibs_check_method=pass_all
2225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2226 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2234 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2235 file_magic_cmd=$lt_cv_file_magic_cmd
2236 deplibs_check_method=$lt_cv_deplibs_check_method
2238 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2239 echo "configure:2240: checking for object suffix" >&5
2240 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2244 echo 'int i = 1;' > conftest.$ac_ext
2245 if { (eval echo configure:2246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2246 for ac_file in conftest.*; do
2249 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2253 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2258 echo "$ac_t""$ac_cv_objext" 1>&6
2259 OBJEXT=$ac_cv_objext
2260 ac_objext=$ac_cv_objext
2262 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2264 # Only perform the check for file, if the check method requires it
2265 case $deplibs_check_method in
2267 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2268 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2269 echo "configure:2270: checking for ${ac_tool_prefix}file" >&5
2270 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2275 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2281 ac_save_MAGIC_CMD="$MAGIC_CMD"
2282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2283 ac_dummy="/usr/bin:$PATH"
2284 for ac_dir in $ac_dummy; do
2285 test -z "$ac_dir" && ac_dir=.
2286 if test -f $ac_dir/${ac_tool_prefix}file; then
2287 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2288 if test -n "$file_magic_test_file"; then
2289 case $deplibs_check_method in
2291 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2294 egrep "$file_magic_regex" > /dev/null; then
2299 *** Warning: the command libtool uses to detect shared libraries,
2300 *** $file_magic_cmd, produces output that libtool cannot recognize.
2301 *** The result is that libtool may fail to recognize shared libraries
2302 *** as such. This will affect the creation of libtool libraries that
2303 *** depend on shared libraries, but programs linked with such libtool
2304 *** libraries will work regardless of this problem. Nevertheless, you
2305 *** may want to report the problem to your system manager and/or to
2306 *** bug-libtool@gnu.org
2316 MAGIC_CMD="$ac_save_MAGIC_CMD"
2321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2322 if test -n "$MAGIC_CMD"; then
2323 echo "$ac_t""$MAGIC_CMD" 1>&6
2325 echo "$ac_t""no" 1>&6
2328 if test -z "$lt_cv_path_MAGIC_CMD"; then
2329 if test -n "$ac_tool_prefix"; then
2330 echo $ac_n "checking for file""... $ac_c" 1>&6
2331 echo "configure:2332: checking for file" >&5
2332 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2340 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2343 ac_save_MAGIC_CMD="$MAGIC_CMD"
2344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2345 ac_dummy="/usr/bin:$PATH"
2346 for ac_dir in $ac_dummy; do
2347 test -z "$ac_dir" && ac_dir=.
2348 if test -f $ac_dir/file; then
2349 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2350 if test -n "$file_magic_test_file"; then
2351 case $deplibs_check_method in
2353 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2355 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2356 egrep "$file_magic_regex" > /dev/null; then
2361 *** Warning: the command libtool uses to detect shared libraries,
2362 *** $file_magic_cmd, produces output that libtool cannot recognize.
2363 *** The result is that libtool may fail to recognize shared libraries
2364 *** as such. This will affect the creation of libtool libraries that
2365 *** depend on shared libraries, but programs linked with such libtool
2366 *** libraries will work regardless of this problem. Nevertheless, you
2367 *** may want to report the problem to your system manager and/or to
2368 *** bug-libtool@gnu.org
2378 MAGIC_CMD="$ac_save_MAGIC_CMD"
2383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2384 if test -n "$MAGIC_CMD"; then
2385 echo "$ac_t""$MAGIC_CMD" 1>&6
2387 echo "$ac_t""no" 1>&6
2399 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2402 echo "configure:2403: checking for $ac_word" >&5
2403 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 if test -n "$RANLIB"; then
2407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2411 for ac_dir in $ac_dummy; do
2412 test -z "$ac_dir" && ac_dir=.
2413 if test -f $ac_dir/$ac_word; then
2414 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2421 RANLIB="$ac_cv_prog_RANLIB"
2422 if test -n "$RANLIB"; then
2423 echo "$ac_t""$RANLIB" 1>&6
2425 echo "$ac_t""no" 1>&6
2429 if test -z "$ac_cv_prog_RANLIB"; then
2430 if test -n "$ac_tool_prefix"; then
2431 # Extract the first word of "ranlib", so it can be a program name with args.
2432 set dummy ranlib; ac_word=$2
2433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2434 echo "configure:2435: checking for $ac_word" >&5
2435 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 if test -n "$RANLIB"; then
2439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2443 for ac_dir in $ac_dummy; do
2444 test -z "$ac_dir" && ac_dir=.
2445 if test -f $ac_dir/$ac_word; then
2446 ac_cv_prog_RANLIB="ranlib"
2451 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2454 RANLIB="$ac_cv_prog_RANLIB"
2455 if test -n "$RANLIB"; then
2456 echo "$ac_t""$RANLIB" 1>&6
2458 echo "$ac_t""no" 1>&6
2466 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2467 set dummy ${ac_tool_prefix}strip; ac_word=$2
2468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_word" >&5
2470 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 if test -n "$STRIP"; then
2474 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2478 for ac_dir in $ac_dummy; do
2479 test -z "$ac_dir" && ac_dir=.
2480 if test -f $ac_dir/$ac_word; then
2481 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2488 STRIP="$ac_cv_prog_STRIP"
2489 if test -n "$STRIP"; then
2490 echo "$ac_t""$STRIP" 1>&6
2492 echo "$ac_t""no" 1>&6
2496 if test -z "$ac_cv_prog_STRIP"; then
2497 if test -n "$ac_tool_prefix"; then
2498 # Extract the first word of "strip", so it can be a program name with args.
2499 set dummy strip; ac_word=$2
2500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2501 echo "configure:2502: checking for $ac_word" >&5
2502 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 if test -n "$STRIP"; then
2506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2510 for ac_dir in $ac_dummy; do
2511 test -z "$ac_dir" && ac_dir=.
2512 if test -f $ac_dir/$ac_word; then
2513 ac_cv_prog_STRIP="strip"
2518 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2521 STRIP="$ac_cv_prog_STRIP"
2522 if test -n "$STRIP"; then
2523 echo "$ac_t""$STRIP" 1>&6
2525 echo "$ac_t""no" 1>&6
2534 # Check for any special flags to pass to ltconfig.
2535 libtool_flags="--cache-file=$cache_file"
2536 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2537 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2538 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2539 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2540 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2542 libtool_flags="$libtool_flags --enable-win32-dll"
2543 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2544 if test "${enable_libtool_lock+set}" = set; then
2545 enableval="$enable_libtool_lock"
2549 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2550 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2552 # Check whether --with-pic or --without-pic was given.
2553 if test "${with_pic+set}" = set; then
2560 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2561 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2563 # Some flags need to be propagated to the compiler or linker for good
2567 # Find out which ABI we are using.
2568 echo '#line 2569 "configure"' > conftest.$ac_ext
2569 if { (eval echo configure:2570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2570 case `/usr/bin/file conftest.$ac_objext` in
2586 # Find out which ABI we are using.
2587 echo 'int i;' > conftest.$ac_ext
2588 if { (eval echo configure:2589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2589 case "`/usr/bin/file conftest.o`" in
2602 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2603 SAVE_CFLAGS="$CFLAGS"
2604 CFLAGS="$CFLAGS -belf"
2605 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2606 echo "configure:2607: checking whether the C compiler needs -belf" >&5
2607 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2612 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2613 ac_cpp='$CPP $CPPFLAGS'
2614 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2615 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2616 cross_compiling=$ac_cv_prog_cc_cross
2618 cat > conftest.$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2626 if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2628 lt_cv_cc_needs_belf=yes
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2633 lt_cv_cc_needs_belf=no
2637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2641 cross_compiling=$ac_cv_prog_cc_cross
2645 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2646 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2647 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2648 CFLAGS="$SAVE_CFLAGS"
2652 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2653 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2656 echo "configure:2657: checking for $ac_word" >&5
2657 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2660 if test -n "$DLLTOOL"; then
2661 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2665 for ac_dir in $ac_dummy; do
2666 test -z "$ac_dir" && ac_dir=.
2667 if test -f $ac_dir/$ac_word; then
2668 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2675 DLLTOOL="$ac_cv_prog_DLLTOOL"
2676 if test -n "$DLLTOOL"; then
2677 echo "$ac_t""$DLLTOOL" 1>&6
2679 echo "$ac_t""no" 1>&6
2683 if test -z "$ac_cv_prog_DLLTOOL"; then
2684 if test -n "$ac_tool_prefix"; then
2685 # Extract the first word of "dlltool", so it can be a program name with args.
2686 set dummy dlltool; ac_word=$2
2687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2688 echo "configure:2689: checking for $ac_word" >&5
2689 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2692 if test -n "$DLLTOOL"; then
2693 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2697 for ac_dir in $ac_dummy; do
2698 test -z "$ac_dir" && ac_dir=.
2699 if test -f $ac_dir/$ac_word; then
2700 ac_cv_prog_DLLTOOL="dlltool"
2705 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2708 DLLTOOL="$ac_cv_prog_DLLTOOL"
2709 if test -n "$DLLTOOL"; then
2710 echo "$ac_t""$DLLTOOL" 1>&6
2712 echo "$ac_t""no" 1>&6
2720 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}as; ac_word=$2
2722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2723 echo "configure:2724: checking for $ac_word" >&5
2724 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2727 if test -n "$AS"; then
2728 ac_cv_prog_AS="$AS" # Let the user override the test.
2730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2732 for ac_dir in $ac_dummy; do
2733 test -z "$ac_dir" && ac_dir=.
2734 if test -f $ac_dir/$ac_word; then
2735 ac_cv_prog_AS="${ac_tool_prefix}as"
2743 if test -n "$AS"; then
2744 echo "$ac_t""$AS" 1>&6
2746 echo "$ac_t""no" 1>&6
2750 if test -z "$ac_cv_prog_AS"; then
2751 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "as", so it can be a program name with args.
2753 set dummy as; ac_word=$2
2754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2755 echo "configure:2756: checking for $ac_word" >&5
2756 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2759 if test -n "$AS"; then
2760 ac_cv_prog_AS="$AS" # Let the user override the test.
2762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2764 for ac_dir in $ac_dummy; do
2765 test -z "$ac_dir" && ac_dir=.
2766 if test -f $ac_dir/$ac_word; then
2772 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2776 if test -n "$AS"; then
2777 echo "$ac_t""$AS" 1>&6
2779 echo "$ac_t""no" 1>&6
2787 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2790 echo "configure:2791: checking for $ac_word" >&5
2791 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2794 if test -n "$OBJDUMP"; then
2795 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2799 for ac_dir in $ac_dummy; do
2800 test -z "$ac_dir" && ac_dir=.
2801 if test -f $ac_dir/$ac_word; then
2802 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2809 OBJDUMP="$ac_cv_prog_OBJDUMP"
2810 if test -n "$OBJDUMP"; then
2811 echo "$ac_t""$OBJDUMP" 1>&6
2813 echo "$ac_t""no" 1>&6
2817 if test -z "$ac_cv_prog_OBJDUMP"; then
2818 if test -n "$ac_tool_prefix"; then
2819 # Extract the first word of "objdump", so it can be a program name with args.
2820 set dummy objdump; ac_word=$2
2821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2822 echo "configure:2823: checking for $ac_word" >&5
2823 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2826 if test -n "$OBJDUMP"; then
2827 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2831 for ac_dir in $ac_dummy; do
2832 test -z "$ac_dir" && ac_dir=.
2833 if test -f $ac_dir/$ac_word; then
2834 ac_cv_prog_OBJDUMP="objdump"
2839 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2842 OBJDUMP="$ac_cv_prog_OBJDUMP"
2843 if test -n "$OBJDUMP"; then
2844 echo "$ac_t""$OBJDUMP" 1>&6
2846 echo "$ac_t""no" 1>&6
2855 # recent cygwin and mingw systems supply a stub DllMain which the user
2856 # can override, but on older systems we have to supply one
2857 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2858 echo "configure:2859: checking if libtool should supply DllMain function" >&5
2859 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 cat > conftest.$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2867 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2871 if { (eval echo configure:2872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2873 lt_cv_need_dllmain=no
2875 echo "configure: failed program was:" >&5
2876 cat conftest.$ac_ext >&5
2878 lt_cv_need_dllmain=yes
2883 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2886 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2887 # old mingw systems require "-dll" to link a DLL, while more recent ones
2889 SAVE_CFLAGS="$CFLAGS"
2890 CFLAGS="$CFLAGS -mdll"
2891 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2892 echo "configure:2893: checking how to link DLLs" >&5
2893 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2896 cat > conftest.$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2904 if { (eval echo configure:2905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2906 lt_cv_cc_dll_switch=-mdll
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2911 lt_cv_cc_dll_switch=-dll
2916 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2917 CFLAGS="$SAVE_CFLAGS" ;;
2918 *-*-cygwin* | *-*-pw32*)
2919 # cygwin systems need to pass --dll to the linker, and not link
2920 # crt.o which will require a WinMain@16 definition.
2921 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2928 # Save cache, so that ltconfig can load it
2929 cat > confcache <<\EOF
2930 # This file is a shell script that caches the results of configure
2931 # tests run on this system so they can be shared between configure
2932 # scripts and configure runs. It is not useful on other systems.
2933 # If it contains results you don't want to keep, you may remove or edit it.
2935 # By default, configure uses ./config.cache as the cache file,
2936 # creating it if it does not exist already. You can give configure
2937 # the --cache-file=FILE option to use a different cache file; that is
2938 # what configure does when it calls configure scripts in
2939 # subdirectories, so they share the cache.
2940 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2941 # config.status only pays attention to the cache file if you give it the
2942 # --recheck option to rerun configure.
2945 # The following way of writing the cache mishandles newlines in values,
2946 # but we know of no workaround that is simple, portable, and efficient.
2947 # So, don't put newlines in cache variables' values.
2948 # Ultrix sh set writes to stderr and can't be redirected directly,
2949 # and sets the high bit in the cache file unless we assign to the vars.
2951 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2953 # `set' does not quote correctly, so add quotes (double-quote substitution
2954 # turns \\\\ into \\, and sed turns \\ into \).
2956 -e "s/'/'\\\\''/g" \
2957 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2960 # `set' quotes correctly as required by POSIX, so do not add quotes.
2961 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2964 if cmp -s $cache_file confcache; then
2967 if test -w $cache_file; then
2968 echo "updating cache $cache_file"
2969 cat confcache > $cache_file
2971 echo "not updating unwritable cache $cache_file"
2977 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2978 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2979 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2980 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2981 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2982 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2983 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2984 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2985 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2986 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2988 # Reload cache, that may have been modified by ltconfig
2989 if test -r "$cache_file"; then
2990 echo "loading cache $cache_file"
2993 echo "creating cache $cache_file"
2998 # This can be used to rebuild libtool when needed
2999 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3001 # Always use our own libtool.
3002 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3004 # Redirect the config.log output again, so that the ltconfig log is not
3005 # clobbered by the next message.
3006 exec 5>>./config.log
3016 if test -n "${libm_machine_dir}"; then
3019 if test "${use_libtool}" = "yes"; then
3020 LIBM_MACHINE_LIB=machine/${libm_machine_dir}/lib${libm_machine_dir}.${aext}
3022 LIBM_MACHINE_LIB=machine/lib.${aext}
3029 cat > confcache <<\EOF
3030 # This file is a shell script that caches the results of configure
3031 # tests run on this system so they can be shared between configure
3032 # scripts and configure runs. It is not useful on other systems.
3033 # If it contains results you don't want to keep, you may remove or edit it.
3035 # By default, configure uses ./config.cache as the cache file,
3036 # creating it if it does not exist already. You can give configure
3037 # the --cache-file=FILE option to use a different cache file; that is
3038 # what configure does when it calls configure scripts in
3039 # subdirectories, so they share the cache.
3040 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3041 # config.status only pays attention to the cache file if you give it the
3042 # --recheck option to rerun configure.
3045 # The following way of writing the cache mishandles newlines in values,
3046 # but we know of no workaround that is simple, portable, and efficient.
3047 # So, don't put newlines in cache variables' values.
3048 # Ultrix sh set writes to stderr and can't be redirected directly,
3049 # and sets the high bit in the cache file unless we assign to the vars.
3051 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3053 # `set' does not quote correctly, so add quotes (double-quote substitution
3054 # turns \\\\ into \\, and sed turns \\ into \).
3056 -e "s/'/'\\\\''/g" \
3057 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3060 # `set' quotes correctly as required by POSIX, so do not add quotes.
3061 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3064 if cmp -s $cache_file confcache; then
3067 if test -w $cache_file; then
3068 echo "updating cache $cache_file"
3069 cat confcache > $cache_file
3071 echo "not updating unwritable cache $cache_file"
3076 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3078 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3079 # Let make expand exec_prefix.
3080 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3082 # Any assignment to VPATH causes Sun make to only execute
3083 # the first set of double-colon rules, so remove it if not needed.
3084 # If there is a colon in the path, we need to keep it.
3085 if test "x$srcdir" = x.; then
3086 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3089 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3091 # Transform confdefs.h into DEFS.
3092 # Protect against shell expansion while executing Makefile rules.
3093 # Protect against Makefile macro expansion.
3094 cat > conftest.defs <<\EOF
3095 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3096 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3101 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3105 # Without the "./", some shells look in PATH for config.status.
3106 : ${CONFIG_STATUS=./config.status}
3108 echo creating $CONFIG_STATUS
3109 rm -f $CONFIG_STATUS
3110 cat > $CONFIG_STATUS <<EOF
3112 # Generated automatically by configure.
3113 # Run this file to recreate the current configuration.
3114 # This directory was configured as follows,
3115 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3117 # $0 $ac_configure_args
3119 # Compiler output produced by configure, useful for debugging
3120 # configure, is in ./config.log if it exists.
3122 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3125 case "\$ac_option" in
3126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3127 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3128 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3129 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3130 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3132 -help | --help | --hel | --he | --h)
3133 echo "\$ac_cs_usage"; exit 0 ;;
3134 *) echo "\$ac_cs_usage"; exit 1 ;;
3138 ac_given_srcdir=$srcdir
3139 ac_given_INSTALL="$INSTALL"
3141 trap 'rm -fr `echo "Makefile math/Makefile mathfp/Makefile common/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3143 cat >> $CONFIG_STATUS <<EOF
3145 # Protect against being on the right side of a sed subst in config.status.
3146 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3147 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3151 s%@CFLAGS@%$CFLAGS%g
3152 s%@CPPFLAGS@%$CPPFLAGS%g
3153 s%@CXXFLAGS@%$CXXFLAGS%g
3154 s%@FFLAGS@%$FFLAGS%g
3156 s%@LDFLAGS@%$LDFLAGS%g
3158 s%@exec_prefix@%$exec_prefix%g
3159 s%@prefix@%$prefix%g
3160 s%@program_transform_name@%$program_transform_name%g
3161 s%@bindir@%$bindir%g
3162 s%@sbindir@%$sbindir%g
3163 s%@libexecdir@%$libexecdir%g
3164 s%@datadir@%$datadir%g
3165 s%@sysconfdir@%$sysconfdir%g
3166 s%@sharedstatedir@%$sharedstatedir%g
3167 s%@localstatedir@%$localstatedir%g
3168 s%@libdir@%$libdir%g
3169 s%@includedir@%$includedir%g
3170 s%@oldincludedir@%$oldincludedir%g
3171 s%@infodir@%$infodir%g
3172 s%@mandir@%$mandir%g
3173 s%@NEWLIB_HW_FP_TRUE@%$NEWLIB_HW_FP_TRUE%g
3174 s%@NEWLIB_HW_FP_FALSE@%$NEWLIB_HW_FP_FALSE%g
3175 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
3176 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
3177 s%@newlib_basedir@%$newlib_basedir%g
3179 s%@host_alias@%$host_alias%g
3180 s%@host_cpu@%$host_cpu%g
3181 s%@host_vendor@%$host_vendor%g
3182 s%@host_os@%$host_os%g
3183 s%@target@%$target%g
3184 s%@target_alias@%$target_alias%g
3185 s%@target_cpu@%$target_cpu%g
3186 s%@target_vendor@%$target_vendor%g
3187 s%@target_os@%$target_os%g
3189 s%@build_alias@%$build_alias%g
3190 s%@build_cpu@%$build_cpu%g
3191 s%@build_vendor@%$build_vendor%g
3192 s%@build_os@%$build_os%g
3193 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3194 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3195 s%@INSTALL_DATA@%$INSTALL_DATA%g
3196 s%@PACKAGE@%$PACKAGE%g
3197 s%@VERSION@%$VERSION%g
3198 s%@ACLOCAL@%$ACLOCAL%g
3199 s%@AUTOCONF@%$AUTOCONF%g
3200 s%@AUTOMAKE@%$AUTOMAKE%g
3201 s%@AUTOHEADER@%$AUTOHEADER%g
3202 s%@MAKEINFO@%$MAKEINFO%g
3203 s%@SET_MAKE@%$SET_MAKE%g
3207 s%@RANLIB@%$RANLIB%g
3208 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3209 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3211 s%@EXEEXT@%$EXEEXT%g
3212 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
3213 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
3214 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
3215 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
3216 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
3217 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
3218 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
3219 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
3220 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
3221 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
3222 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
3223 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
3224 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
3225 s%@OBJEXT@%$OBJEXT%g
3228 s%@libm_machine_dir@%$libm_machine_dir%g
3229 s%@machine_dir@%$machine_dir%g
3230 s%@sys_dir@%$sys_dir%g
3233 s%@DLLTOOL@%$DLLTOOL%g
3234 s%@OBJDUMP@%$OBJDUMP%g
3235 s%@LIBTOOL@%$LIBTOOL%g
3236 s%@subdirs@%$subdirs%g
3237 s%@LIBM_MACHINE_LIB@%$LIBM_MACHINE_LIB%g
3242 cat >> $CONFIG_STATUS <<\EOF
3244 # Split the substitutions into bite-sized pieces for seds with
3245 # small command number limits, like on Digital OSF/1 and HP-UX.
3246 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3247 ac_file=1 # Number of current file.
3248 ac_beg=1 # First line for current file.
3249 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3252 while $ac_more_lines; do
3253 if test $ac_beg -gt 1; then
3254 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3256 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3258 if test ! -s conftest.s$ac_file; then
3260 rm -f conftest.s$ac_file
3262 if test -z "$ac_sed_cmds"; then
3263 ac_sed_cmds="sed -f conftest.s$ac_file"
3265 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3267 ac_file=`expr $ac_file + 1`
3269 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3272 if test -z "$ac_sed_cmds"; then
3277 cat >> $CONFIG_STATUS <<EOF
3279 CONFIG_FILES=\${CONFIG_FILES-"Makefile math/Makefile mathfp/Makefile common/Makefile"}
3281 cat >> $CONFIG_STATUS <<\EOF
3282 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3283 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3285 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3286 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3287 *) ac_file_in="${ac_file}.in" ;;
3290 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3292 # Remove last slash and all that follows it. Not all systems have dirname.
3293 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3294 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3295 # The file is in a subdirectory.
3296 test ! -d "$ac_dir" && mkdir "$ac_dir"
3297 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3298 # A "../" for each directory in $ac_dir_suffix.
3299 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3301 ac_dir_suffix= ac_dots=
3304 case "$ac_given_srcdir" in
3306 if test -z "$ac_dots"; then top_srcdir=.
3307 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3308 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3310 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3311 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3314 case "$ac_given_INSTALL" in
3315 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3316 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3319 echo creating "$ac_file"
3321 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3323 *Makefile*) ac_comsub="1i\\
3324 # $configure_input" ;;
3328 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3330 s%@configure_input@%$configure_input%g
3331 s%@srcdir@%$srcdir%g
3332 s%@top_srcdir@%$top_srcdir%g
3333 s%@INSTALL@%$INSTALL%g
3334 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3339 cat >> $CONFIG_STATUS <<EOF
3342 cat >> $CONFIG_STATUS <<\EOF
3346 chmod +x $CONFIG_STATUS
3347 rm -fr confdefs* $ac_clean_files
3348 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3350 if test "$no_recursion" != yes; then
3352 # Remove --cache-file and --srcdir arguments so they do not pile up.
3353 ac_sub_configure_args=
3355 for ac_arg in $ac_configure_args; do
3356 if test -n "$ac_prev"; then
3361 -cache-file | --cache-file | --cache-fil | --cache-fi \
3362 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3363 ac_prev=cache_file ;;
3364 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3365 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3371 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3375 for ac_config_dir in machine; do
3377 # Do not complain, so a configure script can configure whichever
3378 # parts of a large source tree are present.
3379 if test ! -d $srcdir/$ac_config_dir; then
3383 echo configuring in $ac_config_dir
3388 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3390 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3398 # A "../" for each directory in /$ac_config_dir.
3399 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3402 .) # No --srcdir option. We are building in place.
3403 ac_sub_srcdir=$srcdir ;;
3404 /*) # Absolute path.
3405 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3407 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3410 # Check for guested configure; otherwise get Cygnus style configure.
3411 if test -f $ac_sub_srcdir/configure; then
3412 ac_sub_configure=$ac_sub_srcdir/configure
3413 elif test -f $ac_sub_srcdir/configure.in; then
3414 ac_sub_configure=$ac_configure
3416 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3420 # The recursion is here.
3421 if test -n "$ac_sub_configure"; then
3423 # Make the cache file name correct relative to the subdirectory.
3424 case "$cache_file" in
3425 /*) ac_sub_cache_file=$cache_file ;;
3427 ac_sub_cache_file="$ac_dots$cache_file" ;;
3429 case "$ac_given_INSTALL" in
3430 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3431 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3434 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3435 # The eval makes quoting arguments work.
3436 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3439 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }