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-multilib build many library versions (default)"
17 --enable-target-optspace optimize for space"
19 --enable-malloc-debugging indicate malloc debugging requested"
21 --enable-newlib-multithread enable support for multiple threads"
23 --enable-newlib-iconv enable iconv library support"
25 --enable-newlib-elix-level supply desired elix library level (1-4)"
27 --disable-newlib-io-float disable printf/scanf family float support"
29 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
31 --enable-maintainer-mode enable make rules and dependencies not useful
32 (and sometimes confusing) to the casual installer"
34 --enable-shared[=PKGS] build shared libraries [default=yes]"
36 --enable-static[=PKGS] build static libraries [default=yes]"
38 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
40 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
42 --disable-libtool-lock avoid locking (might break parallel builds)"
44 --with-pic try to use only PIC/non-PIC objects [default=use both]"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
50 cache_file=./config.cache
59 program_transform_name=s,x,x,
67 bindir='${exec_prefix}/bin'
68 sbindir='${exec_prefix}/sbin'
69 libexecdir='${exec_prefix}/libexec'
70 datadir='${prefix}/share'
71 sysconfdir='${prefix}/etc'
72 sharedstatedir='${prefix}/com'
73 localstatedir='${prefix}/var'
74 libdir='${exec_prefix}/lib'
75 includedir='${prefix}/include'
76 oldincludedir='/usr/include'
77 infodir='${prefix}/info'
78 mandir='${prefix}/man'
80 # Initialize some other variables.
83 SHELL=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 # Accept the important Cygnus configure options, so we can diagnose typos.
107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110 bindir="$ac_optarg" ;;
112 -build | --build | --buil | --bui | --bu)
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115 build="$ac_optarg" ;;
117 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122 cache_file="$ac_optarg" ;;
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
128 datadir="$ac_optarg" ;;
130 -disable-* | --disable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* | --enable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154 | --exec | --exe | --ex)
155 ac_prev=exec_prefix ;;
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*)
159 exec_prefix="$ac_optarg" ;;
161 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas.
165 -help | --help | --hel | --he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
220 -host | --host | --hos | --ho)
222 -host=* | --host=* | --hos=* | --ho=*)
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;;
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
237 -libdir | --libdir | --libdi | --libd)
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;;
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;;
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;;
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
264 # Obsolete; use --without-fp.
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;;
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;;
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;;
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;;
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;;
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
328 sbindir="$ac_optarg" ;;
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
339 sharedstatedir="$ac_optarg" ;;
341 -site | --site | --sit)
343 -site=* | --site=* | --sit=*)
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
358 -target | --target | --targe | --targ | --tar | --ta | --t)
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.13"
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
393 # Obsolete; use --with-x.
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
495 if test ! -r $srcdir/$ac_unique_file; then
499 ac_srcdir_defaulted=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
529 echo "creating cache $cache_file"
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp='$CPP $CPPFLAGS'
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling=$ac_cv_prog_cc_cross
542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
551 ac_n= ac_c='\c' ac_t=
557 for ac_dir in ../../.. $srcdir/../../..; do
558 if test -f $ac_dir/install-sh; then
560 ac_install_sh="$ac_aux_dir/install-sh -c"
562 elif test -f $ac_dir/install.sh; then
564 ac_install_sh="$ac_aux_dir/install.sh -c"
568 if test -z "$ac_aux_dir"; then
569 { echo "configure: error: can not find install-sh or install.sh in ../../.. $srcdir/../../.." 1>&2; exit 1; }
571 ac_config_guess=$ac_aux_dir/config.guess
572 ac_config_sub=$ac_aux_dir/config.sub
573 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
576 am__api_version="1.4"
577 # Find a good install program. We prefer a C program (faster),
578 # so one script is as good as another. But avoid the broken or
579 # incompatible versions:
580 # SysV /etc/install, /usr/sbin/install
581 # SunOS /usr/etc/install
584 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
587 # ./install, which can be erroneously created by make from ./install.sh.
588 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
589 echo "configure:590: checking for a BSD compatible install" >&5
590 if test -z "$INSTALL"; then
591 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
594 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
595 for ac_dir in $PATH; do
596 # Account for people who put trailing slashes in PATH elements.
598 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
600 # OSF1 and SCO ODT 3.0 have their own names for install.
601 # Don't use installbsd from OSF since it installs stuff as root
603 for ac_prog in ginstall scoinst install; do
604 if test -f $ac_dir/$ac_prog; then
605 if test $ac_prog = install &&
606 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
607 # AIX install. It has an incompatible calling convention.
610 ac_cv_path_install="$ac_dir/$ac_prog -c"
621 if test "${ac_cv_path_install+set}" = set; then
622 INSTALL="$ac_cv_path_install"
624 # As a last resort, use the slow shell script. We don't cache a
625 # path for INSTALL within a source directory, because that will
626 # break other packages using the cache if that directory is
627 # removed, or if the path is relative.
628 INSTALL="$ac_install_sh"
631 echo "$ac_t""$INSTALL" 1>&6
633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
634 # It thinks the first close brace ends the variable substitution.
635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
637 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
641 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
642 echo "configure:643: checking whether build environment is sane" >&5
645 echo timestamp > conftestfile
646 # Do `set' in a subshell so we don't clobber the current shell's
647 # arguments. Must try -L first in case configure is actually a
648 # symlink; some systems play weird games with the mod time of symlinks
649 # (eg FreeBSD returns the mod time of the symlink's containing
652 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
653 if test "$*" = "X"; then
655 set X `ls -t $srcdir/configure conftestfile`
657 if test "$*" != "X $srcdir/configure conftestfile" \
658 && test "$*" != "X conftestfile $srcdir/configure"; then
660 # If neither matched, then we have a broken ls. This can happen
661 # if, for instance, CONFIG_SHELL is bash and it inherits a
662 # broken ls alias from the environment. This has actually
663 # happened. Such a system could not be considered "sane".
664 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
665 alias in your environment" 1>&2; exit 1; }
668 test "$2" = conftestfile
674 { echo "configure: error: newly created file is older than distributed files!
675 Check your system clock" 1>&2; exit 1; }
678 echo "$ac_t""yes" 1>&6
679 if test "$program_transform_name" = s,x,x,; then
680 program_transform_name=
682 # Double any \ or $. echo might interpret backslashes.
683 cat <<\EOF_SED > conftestsed
684 s,\\,\\\\,g; s,\$,$$,g
686 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
689 test "$program_prefix" != NONE &&
690 program_transform_name="s,^,${program_prefix},; $program_transform_name"
691 # Use a double $ so make ignores it.
692 test "$program_suffix" != NONE &&
693 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
695 # sed with no file args requires a program.
696 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
698 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
699 echo "configure:700: checking whether ${MAKE-make} sets \${MAKE}" >&5
700 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
701 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
704 cat > conftestmake <<\EOF
706 @echo 'ac_maketemp="${MAKE}"'
708 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
709 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
710 if test -n "$ac_maketemp"; then
711 eval ac_cv_prog_make_${ac_make}_set=yes
713 eval ac_cv_prog_make_${ac_make}_set=no
717 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
718 echo "$ac_t""yes" 1>&6
721 echo "$ac_t""no" 1>&6
722 SET_MAKE="MAKE=${MAKE-make}"
725 if test $host != $build; then
726 ac_tool_prefix=${host_alias}-
731 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
732 echo "configure:733: checking for Cygwin environment" >&5
733 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
736 cat > conftest.$ac_ext <<EOF
737 #line 738 "configure"
738 #include "confdefs.h"
743 #define __CYGWIN__ __CYGWIN32__
748 if { (eval echo configure:749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
752 echo "configure: failed program was:" >&5
753 cat conftest.$ac_ext >&5
761 echo "$ac_t""$ac_cv_cygwin" 1>&6
763 test "$ac_cv_cygwin" = yes && CYGWIN=yes
764 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
765 echo "configure:766: checking for mingw32 environment" >&5
766 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
769 cat > conftest.$ac_ext <<EOF
770 #line 771 "configure"
771 #include "confdefs.h"
777 if { (eval echo configure:778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
781 echo "configure: failed program was:" >&5
782 cat conftest.$ac_ext >&5
790 echo "$ac_t""$ac_cv_mingw32" 1>&6
792 test "$ac_cv_mingw32" = yes && MINGW32=yes
794 # Check whether --enable-multilib or --disable-multilib was given.
795 if test "${enable_multilib+set}" = set; then
796 enableval="$enable_multilib"
797 case "${enableval}" in
800 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
806 # Check whether --enable-target-optspace or --disable-target-optspace was given.
807 if test "${enable_target_optspace+set}" = set; then
808 enableval="$enable_target_optspace"
809 case "${enableval}" in
810 yes) target_optspace=yes ;;
811 no) target_optspace=no ;;
812 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
818 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
819 if test "${enable_malloc_debugging+set}" = set; then
820 enableval="$enable_malloc_debugging"
821 case "${enableval}" in
822 yes) malloc_debugging=yes ;;
823 no) malloc_debugging=no ;;
824 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
830 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
831 if test "${enable_newlib_multithread+set}" = set; then
832 enableval="$enable_newlib_multithread"
833 case "${enableval}" in
834 yes) newlib_multithread=yes ;;
835 no) newlib_multithread=no ;;
836 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
839 newlib_multithread=yes
842 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
843 if test "${enable_newlib_iconv+set}" = set; then
844 enableval="$enable_newlib_iconv"
845 if test "${newlib_iconv+set}" != set; then
846 case "${enableval}" in
847 yes) newlib_iconv=yes ;;
848 no) newlib_iconv=no ;;
849 *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;;
853 newlib_iconv=${newlib_iconv}
856 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
857 if test "${enable_newlib_elix_level+set}" = set; then
858 enableval="$enable_newlib_elix_level"
859 case "${enableval}" in
860 0) newlib_elix_level=0 ;;
861 1) newlib_elix_level=1 ;;
862 2) newlib_elix_level=2 ;;
863 3) newlib_elix_level=3 ;;
864 4) newlib_elix_level=4 ;;
865 *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
871 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
872 if test "${enable_newlib_io_float+set}" = set; then
873 enableval="$enable_newlib_io_float"
874 case "${enableval}" in
875 yes) newlib_io_float=yes ;;
876 no) newlib_io_float=no ;;
877 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
883 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
884 if test "${enable_newlib_supplied_syscalls+set}" = set; then
885 enableval="$enable_newlib_supplied_syscalls"
886 case "${enableval}" in
887 yes) newlib_may_supply_syscalls=yes ;;
888 no) newlib_may_supply_syscalls=no ;;
889 *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
892 newlib_may_supply_syscalls=yes
897 if test x${newlib_may_supply_syscalls} = xyes; then
898 MAY_SUPPLY_SYSCALLS_TRUE=
899 MAY_SUPPLY_SYSCALLS_FALSE='#'
901 MAY_SUPPLY_SYSCALLS_TRUE='#'
902 MAY_SUPPLY_SYSCALLS_FALSE=
906 test -z "${with_target_subdir}" && with_target_subdir=.
908 if test "${srcdir}" = "."; then
909 if test "${with_target_subdir}" != "."; then
910 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
912 newlib_basedir="${srcdir}/${with_multisrctop}../.."
915 newlib_basedir="${srcdir}/../.."
920 # Do some error checking and defaulting for the host and target type.
922 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
925 # 1. You are not allowed to specify --host, --target, and nonopt at the
927 # 2. Host defaults to nonopt.
928 # 3. If nonopt is not specified, then host defaults to the current host,
929 # as determined by config.guess.
930 # 4. Target and build default to nonopt.
931 # 5. If nonopt is not specified, then target and build default to host.
933 # The aliases save the names the user supplied, while $host etc.
934 # will get canonicalized.
935 case $host---$target---$nonopt in
936 NONE---*---* | *---NONE---* | *---*---NONE) ;;
937 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
941 # Make sure we can run config.sub.
942 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
943 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
946 echo $ac_n "checking host system type""... $ac_c" 1>&6
947 echo "configure:948: checking host system type" >&5
950 case "$host_alias" in
954 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
955 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
957 *) host_alias=$nonopt ;;
961 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
962 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
963 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
964 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
965 echo "$ac_t""$host" 1>&6
967 echo $ac_n "checking target system type""... $ac_c" 1>&6
968 echo "configure:969: checking target system type" >&5
971 case "$target_alias" in
974 NONE) target_alias=$host_alias ;;
975 *) target_alias=$nonopt ;;
979 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
980 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
981 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
982 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
983 echo "$ac_t""$target" 1>&6
985 echo $ac_n "checking build system type""... $ac_c" 1>&6
986 echo "configure:987: checking build system type" >&5
989 case "$build_alias" in
992 NONE) build_alias=$host_alias ;;
993 *) build_alias=$nonopt ;;
997 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
998 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
999 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1000 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1001 echo "$ac_t""$build" 1>&6
1003 test "$host_alias" != "$target_alias" &&
1004 test "$program_prefix$program_suffix$program_transform_name" = \
1006 program_prefix=${target_alias}-
1014 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1015 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1017 cat >> confdefs.h <<EOF
1018 #define PACKAGE "$PACKAGE"
1021 cat >> confdefs.h <<EOF
1022 #define VERSION "$VERSION"
1027 missing_dir=`cd $ac_aux_dir && pwd`
1028 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working aclocal-${am__api_version}" >&5
1030 # Run test in a subshell; some versions of sh will print an error if
1031 # an executable is not found, even if stderr is redirected.
1032 # Redirect stdin to placate older versions of autoconf. Sigh.
1033 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1034 ACLOCAL=aclocal-${am__api_version}
1035 echo "$ac_t""found" 1>&6
1037 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1038 echo "$ac_t""missing" 1>&6
1041 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1042 echo "configure:1043: checking for working autoconf" >&5
1043 # Run test in a subshell; some versions of sh will print an error if
1044 # an executable is not found, even if stderr is redirected.
1045 # Redirect stdin to placate older versions of autoconf. Sigh.
1046 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1048 echo "$ac_t""found" 1>&6
1050 AUTOCONF="$missing_dir/missing autoconf"
1051 echo "$ac_t""missing" 1>&6
1054 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1055 echo "configure:1056: checking for working automake-${am__api_version}" >&5
1056 # Run test in a subshell; some versions of sh will print an error if
1057 # an executable is not found, even if stderr is redirected.
1058 # Redirect stdin to placate older versions of autoconf. Sigh.
1059 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1060 AUTOMAKE=automake-${am__api_version}
1061 echo "$ac_t""found" 1>&6
1063 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1064 echo "$ac_t""missing" 1>&6
1067 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1068 echo "configure:1069: checking for working autoheader" >&5
1069 # Run test in a subshell; some versions of sh will print an error if
1070 # an executable is not found, even if stderr is redirected.
1071 # Redirect stdin to placate older versions of autoconf. Sigh.
1072 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1073 AUTOHEADER=autoheader
1074 echo "$ac_t""found" 1>&6
1076 AUTOHEADER="$missing_dir/missing autoheader"
1077 echo "$ac_t""missing" 1>&6
1080 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1081 echo "configure:1082: checking for working makeinfo" >&5
1082 # Run test in a subshell; some versions of sh will print an error if
1083 # an executable is not found, even if stderr is redirected.
1084 # Redirect stdin to placate older versions of autoconf. Sigh.
1085 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1087 echo "$ac_t""found" 1>&6
1089 MAKEINFO="$missing_dir/missing makeinfo"
1090 echo "$ac_t""missing" 1>&6
1095 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1096 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1097 # are probably using a cross compiler, which will not be able to fully
1098 # link an executable. This should really be fixed in autoconf
1103 # Extract the first word of "gcc", so it can be a program name with args.
1104 set dummy gcc; ac_word=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 echo "configure:1107: checking for $ac_word" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 if test -n "$CC"; then
1111 ac_cv_prog_CC="$CC" # Let the user override the test.
1113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1115 for ac_dir in $ac_dummy; do
1116 test -z "$ac_dir" && ac_dir=.
1117 if test -f $ac_dir/$ac_word; then
1126 if test -n "$CC"; then
1127 echo "$ac_t""$CC" 1>&6
1129 echo "$ac_t""no" 1>&6
1132 if test -z "$CC"; then
1133 # Extract the first word of "cc", so it can be a program name with args.
1134 set dummy cc; ac_word=$2
1135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1136 echo "configure:1137: checking for $ac_word" >&5
1137 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 if test -n "$CC"; then
1141 ac_cv_prog_CC="$CC" # Let the user override the test.
1143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1146 for ac_dir in $ac_dummy; do
1147 test -z "$ac_dir" && ac_dir=.
1148 if test -f $ac_dir/$ac_word; then
1149 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1150 ac_prog_rejected=yes
1158 if test $ac_prog_rejected = yes; then
1159 # We found a bogon in the path, so make sure we never use it.
1160 set dummy $ac_cv_prog_CC
1162 if test $# -gt 0; then
1163 # We chose a different compiler from the bogus one.
1164 # However, it has the same basename, so the bogon will be chosen
1165 # first if we set CC to just the basename; use the full file name.
1167 set dummy "$ac_dir/$ac_word" "$@"
1175 if test -n "$CC"; then
1176 echo "$ac_t""$CC" 1>&6
1178 echo "$ac_t""no" 1>&6
1181 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1184 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether we are using GNU C" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 cat > conftest.c <<EOF
1194 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1201 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1203 if test $ac_cv_prog_gcc = yes; then
1205 ac_test_CFLAGS="${CFLAGS+set}"
1206 ac_save_CFLAGS="$CFLAGS"
1208 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1209 echo "configure:1210: checking whether ${CC-cc} accepts -g" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 echo 'void f(){}' > conftest.c
1214 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1223 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1224 if test "$ac_test_CFLAGS" = set; then
1225 CFLAGS="$ac_save_CFLAGS"
1226 elif test $ac_cv_prog_cc_g = yes; then
1233 test "${CFLAGS+set}" = set || CFLAGS="-g"
1237 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1238 set dummy ${ac_tool_prefix}as; ac_word=$2
1239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1240 echo "configure:1241: checking for $ac_word" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 if test -n "$AS"; then
1245 ac_cv_prog_AS="$AS" # Let the user override the test.
1247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1249 for ac_dir in $ac_dummy; do
1250 test -z "$ac_dir" && ac_dir=.
1251 if test -f $ac_dir/$ac_word; then
1252 ac_cv_prog_AS="${ac_tool_prefix}as"
1257 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1261 if test -n "$AS"; then
1262 echo "$ac_t""$AS" 1>&6
1264 echo "$ac_t""no" 1>&6
1269 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1270 set dummy ${ac_tool_prefix}ar; ac_word=$2
1271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1272 echo "configure:1273: checking for $ac_word" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 if test -n "$AR"; then
1277 ac_cv_prog_AR="$AR" # Let the user override the test.
1279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1281 for ac_dir in $ac_dummy; do
1282 test -z "$ac_dir" && ac_dir=.
1283 if test -f $ac_dir/$ac_word; then
1284 ac_cv_prog_AR="${ac_tool_prefix}ar"
1289 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1293 if test -n "$AR"; then
1294 echo "$ac_t""$AR" 1>&6
1296 echo "$ac_t""no" 1>&6
1301 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 if test -n "$RANLIB"; then
1309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1313 for ac_dir in $ac_dummy; do
1314 test -z "$ac_dir" && ac_dir=.
1315 if test -f $ac_dir/$ac_word; then
1316 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1323 RANLIB="$ac_cv_prog_RANLIB"
1324 if test -n "$RANLIB"; then
1325 echo "$ac_t""$RANLIB" 1>&6
1327 echo "$ac_t""no" 1>&6
1331 if test -z "$ac_cv_prog_RANLIB"; then
1332 if test -n "$ac_tool_prefix"; then
1333 # Extract the first word of "ranlib", so it can be a program name with args.
1334 set dummy ranlib; ac_word=$2
1335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1336 echo "configure:1337: checking for $ac_word" >&5
1337 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 if test -n "$RANLIB"; then
1341 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1345 for ac_dir in $ac_dummy; do
1346 test -z "$ac_dir" && ac_dir=.
1347 if test -f $ac_dir/$ac_word; then
1348 ac_cv_prog_RANLIB="ranlib"
1353 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1356 RANLIB="$ac_cv_prog_RANLIB"
1357 if test -n "$RANLIB"; then
1358 echo "$ac_t""$RANLIB" 1>&6
1360 echo "$ac_t""no" 1>&6
1369 # Find a good install program. We prefer a C program (faster),
1370 # so one script is as good as another. But avoid the broken or
1371 # incompatible versions:
1372 # SysV /etc/install, /usr/sbin/install
1373 # SunOS /usr/etc/install
1374 # IRIX /sbin/install
1376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1379 # ./install, which can be erroneously created by make from ./install.sh.
1380 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1381 echo "configure:1382: checking for a BSD compatible install" >&5
1382 if test -z "$INSTALL"; then
1383 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1386 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1387 for ac_dir in $PATH; do
1388 # Account for people who put trailing slashes in PATH elements.
1390 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1392 # OSF1 and SCO ODT 3.0 have their own names for install.
1393 # Don't use installbsd from OSF since it installs stuff as root
1395 for ac_prog in ginstall scoinst install; do
1396 if test -f $ac_dir/$ac_prog; then
1397 if test $ac_prog = install &&
1398 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1399 # AIX install. It has an incompatible calling convention.
1402 ac_cv_path_install="$ac_dir/$ac_prog -c"
1413 if test "${ac_cv_path_install+set}" = set; then
1414 INSTALL="$ac_cv_path_install"
1416 # As a last resort, use the slow shell script. We don't cache a
1417 # path for INSTALL within a source directory, because that will
1418 # break other packages using the cache if that directory is
1419 # removed, or if the path is relative.
1420 INSTALL="$ac_install_sh"
1423 echo "$ac_t""$INSTALL" 1>&6
1425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1426 # It thinks the first close brace ends the variable substitution.
1427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1435 ac_given_INSTALL=$INSTALL
1437 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1438 echo "configure:1439: checking whether to enable maintainer-specific portions of Makefiles" >&5
1439 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1440 if test "${enable_maintainer_mode+set}" = set; then
1441 enableval="$enable_maintainer_mode"
1442 USE_MAINTAINER_MODE=$enableval
1444 USE_MAINTAINER_MODE=no
1447 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1450 if test $USE_MAINTAINER_MODE = yes; then
1451 MAINTAINER_MODE_TRUE=
1452 MAINTAINER_MODE_FALSE='#'
1454 MAINTAINER_MODE_TRUE='#'
1455 MAINTAINER_MODE_FALSE=
1457 MAINT=$MAINTAINER_MODE_TRUE
1461 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1462 # at least currently, we never actually build a program, so we never
1463 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1464 # fails, because we are probably configuring with a cross compiler
1465 # which can't create executables. So we include AC_EXEEXT to keep
1466 # automake happy, but we don't execute it, since we don't care about
1471 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1472 echo "configure:1473: checking for executable suffix" >&5
1473 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1480 echo 'int main () { return 0; }' > conftest.$ac_ext
1482 if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1483 for file in conftest.*; do
1485 *.c | *.o | *.obj) ;;
1486 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1490 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1493 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1498 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1499 echo "$ac_t""${ac_cv_exeext}" 1>&6
1504 . ${newlib_basedir}/configure.host
1506 newlib_cflags="${newlib_cflags} -fno-builtin"
1508 NEWLIB_CFLAGS=${newlib_cflags}
1516 if test x${newlib_elix_level} = x0; then
1518 ELIX_LEVEL_0_FALSE='#'
1520 ELIX_LEVEL_0_TRUE='#'
1525 if test x${newlib_elix_level} = x1; then
1527 ELIX_LEVEL_1_FALSE='#'
1529 ELIX_LEVEL_1_TRUE='#'
1534 if test x${newlib_elix_level} = x2; then
1536 ELIX_LEVEL_2_FALSE='#'
1538 ELIX_LEVEL_2_TRUE='#'
1543 if test x${newlib_elix_level} = x3; then
1545 ELIX_LEVEL_3_FALSE='#'
1547 ELIX_LEVEL_3_TRUE='#'
1552 if test x${newlib_elix_level} = x4; then
1554 ELIX_LEVEL_4_FALSE='#'
1556 ELIX_LEVEL_4_TRUE='#'
1562 if test x${use_libtool} = xyes; then
1564 USE_LIBTOOL_FALSE='#'
1566 USE_LIBTOOL_TRUE='#'
1570 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
1571 # use oext, which is set in configure.host based on the target platform.
1584 if test "${use_libtool}" = "yes"; then
1586 # Check whether --enable-shared or --disable-shared was given.
1587 if test "${enable_shared+set}" = set; then
1588 enableval="$enable_shared"
1589 p=${PACKAGE-default}
1591 yes) enable_shared=yes ;;
1592 no) enable_shared=no ;;
1595 # Look at the argument we got. We use all the common list separators.
1596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1597 for pkg in $enableval; do
1598 if test "X$pkg" = "X$p"; then
1609 # Check whether --enable-static or --disable-static was given.
1610 if test "${enable_static+set}" = set; then
1611 enableval="$enable_static"
1612 p=${PACKAGE-default}
1614 yes) enable_static=yes ;;
1615 no) enable_static=no ;;
1618 # Look at the argument we got. We use all the common list separators.
1619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1620 for pkg in $enableval; do
1621 if test "X$pkg" = "X$p"; then
1632 # Check whether --enable-fast-install or --disable-fast-install was given.
1633 if test "${enable_fast_install+set}" = set; then
1634 enableval="$enable_fast_install"
1635 p=${PACKAGE-default}
1637 yes) enable_fast_install=yes ;;
1638 no) enable_fast_install=no ;;
1640 enable_fast_install=no
1641 # Look at the argument we got. We use all the common list separators.
1642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1643 for pkg in $enableval; do
1644 if test "X$pkg" = "X$p"; then
1645 enable_fast_install=yes
1652 enable_fast_install=yes
1655 # Extract the first word of "gcc", so it can be a program name with args.
1656 set dummy gcc; ac_word=$2
1657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1658 echo "configure:1659: checking for $ac_word" >&5
1659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1667 for ac_dir in $ac_dummy; do
1668 test -z "$ac_dir" && ac_dir=.
1669 if test -f $ac_dir/$ac_word; then
1678 if test -n "$CC"; then
1679 echo "$ac_t""$CC" 1>&6
1681 echo "$ac_t""no" 1>&6
1684 if test -z "$CC"; then
1685 # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1688 echo "configure:1689: checking for $ac_word" >&5
1689 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1698 for ac_dir in $ac_dummy; do
1699 test -z "$ac_dir" && ac_dir=.
1700 if test -f $ac_dir/$ac_word; then
1701 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1702 ac_prog_rejected=yes
1710 if test $ac_prog_rejected = yes; then
1711 # We found a bogon in the path, so make sure we never use it.
1712 set dummy $ac_cv_prog_CC
1714 if test $# -gt 0; then
1715 # We chose a different compiler from the bogus one.
1716 # However, it has the same basename, so the bogon will be chosen
1717 # first if we set CC to just the basename; use the full file name.
1719 set dummy "$ac_dir/$ac_word" "$@"
1727 if test -n "$CC"; then
1728 echo "$ac_t""$CC" 1>&6
1730 echo "$ac_t""no" 1>&6
1733 if test -z "$CC"; then
1734 case "`uname -s`" in
1736 # Extract the first word of "cl", so it can be a program name with args.
1737 set dummy cl; ac_word=$2
1738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1739 echo "configure:1740: checking for $ac_word" >&5
1740 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1743 if test -n "$CC"; then
1744 ac_cv_prog_CC="$CC" # Let the user override the test.
1746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1748 for ac_dir in $ac_dummy; do
1749 test -z "$ac_dir" && ac_dir=.
1750 if test -f $ac_dir/$ac_word; then
1759 if test -n "$CC"; then
1760 echo "$ac_t""$CC" 1>&6
1762 echo "$ac_t""no" 1>&6
1767 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1771 echo "configure:1772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1775 ac_cpp='$CPP $CPPFLAGS'
1776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1778 cross_compiling=$ac_cv_prog_cc_cross
1780 cat > conftest.$ac_ext << EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1787 if { (eval echo configure:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1788 ac_cv_prog_cc_works=yes
1789 # If we can't run a trivial program, we are probably using a cross compiler.
1790 if (./conftest; exit) 2>/dev/null; then
1791 ac_cv_prog_cc_cross=no
1793 ac_cv_prog_cc_cross=yes
1796 echo "configure: failed program was:" >&5
1797 cat conftest.$ac_ext >&5
1798 ac_cv_prog_cc_works=no
1802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1803 ac_cpp='$CPP $CPPFLAGS'
1804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1806 cross_compiling=$ac_cv_prog_cc_cross
1808 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1809 if test $ac_cv_prog_cc_works = no; then
1810 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1812 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1813 echo "configure:1814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1814 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1815 cross_compiling=$ac_cv_prog_cc_cross
1817 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1818 echo "configure:1819: checking whether we are using GNU C" >&5
1819 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 cat > conftest.c <<EOF
1827 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1834 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1836 if test $ac_cv_prog_gcc = yes; then
1842 ac_test_CFLAGS="${CFLAGS+set}"
1843 ac_save_CFLAGS="$CFLAGS"
1845 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1846 echo "configure:1847: checking whether ${CC-cc} accepts -g" >&5
1847 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 echo 'void f(){}' > conftest.c
1851 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1860 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1861 if test "$ac_test_CFLAGS" = set; then
1862 CFLAGS="$ac_save_CFLAGS"
1863 elif test $ac_cv_prog_cc_g = yes; then
1864 if test "$GCC" = yes; then
1870 if test "$GCC" = yes; then
1877 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1878 if test "${with_gnu_ld+set}" = set; then
1879 withval="$with_gnu_ld"
1880 test "$withval" = no || with_gnu_ld=yes
1886 if test "$GCC" = yes; then
1887 # Check if gcc -print-prog-name=ld gives a path.
1888 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1889 echo "configure:1890: checking for ld used by GCC" >&5
1892 # gcc leaves a trailing carriage return which upsets mingw
1893 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1895 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1898 # Accept absolute paths.
1899 [\\/]* | [A-Za-z]:[\\/]*)
1900 re_direlt='/[^/][^/]*/\.\./'
1901 # Canonicalize the path of ld
1902 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1903 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1904 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1906 test -z "$LD" && LD="$ac_prog"
1909 # If it fails, then pretend we aren't using GCC.
1913 # If it is relative, then search for the first ld in PATH.
1917 elif test "$with_gnu_ld" = yes; then
1918 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1919 echo "configure:1920: checking for GNU ld" >&5
1921 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1922 echo "configure:1923: checking for non-GNU ld" >&5
1924 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1927 if test -z "$LD"; then
1928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1929 for ac_dir in $PATH; do
1930 test -z "$ac_dir" && ac_dir=.
1931 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1932 lt_cv_path_LD="$ac_dir/$ac_prog"
1933 # Check to see if the program is GNU ld. I'd rather use --version,
1934 # but apparently some GNU ld's only accept -v.
1935 # Break only if it was the GNU/non-GNU ld that we prefer.
1936 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1937 test "$with_gnu_ld" != no && break
1939 test "$with_gnu_ld" != yes && break
1945 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1950 if test -n "$LD"; then
1951 echo "$ac_t""$LD" 1>&6
1953 echo "$ac_t""no" 1>&6
1955 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1956 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1957 echo "configure:1958: checking if the linker ($LD) is GNU ld" >&5
1958 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1961 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1962 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1963 lt_cv_prog_gnu_ld=yes
1965 lt_cv_prog_gnu_ld=no
1969 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1970 with_gnu_ld=$lt_cv_prog_gnu_ld
1973 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1974 echo "configure:1975: checking for $LD option to reload object files" >&5
1975 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 lt_cv_ld_reload_flag='-r'
1981 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1982 reload_flag=$lt_cv_ld_reload_flag
1983 test -n "$reload_flag" && reload_flag=" $reload_flag"
1985 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1986 echo "configure:1987: checking for BSD-compatible nm" >&5
1987 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 if test -n "$NM"; then
1991 # Let the user override the test.
1994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1995 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1996 test -z "$ac_dir" && ac_dir=.
1997 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1998 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1999 # Check to see if the nm accepts a BSD-compat flag.
2000 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2001 # nm: unknown option "B" ignored
2002 # Tru64's nm complains that /dev/null is an invalid object file
2003 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2004 lt_cv_path_NM="$tmp_nm -B"
2006 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2007 lt_cv_path_NM="$tmp_nm -p"
2010 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2011 continue # so that we can try to find one that supports BSD flags
2016 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2021 echo "$ac_t""$NM" 1>&6
2023 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether ln -s works" >&5
2025 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2029 if ln -s X conftestdata 2>/dev/null
2032 ac_cv_prog_LN_S="ln -s"
2037 LN_S="$ac_cv_prog_LN_S"
2038 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2039 echo "$ac_t""yes" 1>&6
2041 echo "$ac_t""no" 1>&6
2044 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2045 echo "configure:2046: checking how to recognise dependant libraries" >&5
2046 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 lt_cv_file_magic_cmd='$MAGIC_CMD'
2050 lt_cv_file_magic_test_file=
2051 lt_cv_deplibs_check_method='unknown'
2052 # Need to set the preceding variable on all platforms that support
2053 # interlibrary dependencies.
2054 # 'none' -- dependencies not supported.
2055 # `unknown' -- same as none, but documents that we really don't know.
2056 # 'pass_all' -- all dependencies passed with no checks.
2057 # 'test_compile' -- check by making test program.
2058 # 'file_magic [regex]' -- check by looking for files in library path
2059 # which responds to the $file_magic_cmd with a given egrep regex.
2060 # If you have `file' or equivalent on your system and you're not sure
2061 # whether `pass_all' will *always* work, you probably want this one.
2065 lt_cv_deplibs_check_method=pass_all
2069 lt_cv_deplibs_check_method=pass_all
2073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2074 lt_cv_file_magic_cmd='/usr/bin/file -L'
2075 lt_cv_file_magic_test_file=/shlib/libc.so
2078 cygwin* | mingw* |pw32*)
2079 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2080 lt_cv_file_magic_cmd='$OBJDUMP -f'
2083 darwin* | rhapsody*)
2084 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2085 lt_cv_file_magic_cmd='/usr/bin/file -L'
2087 rhapsody* | darwin1.012)
2088 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2091 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2097 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2100 # Not sure whether the presence of OpenBSD here was a mistake.
2101 # Let's accept both of them until this is cleared up.
2102 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2103 lt_cv_file_magic_cmd=/usr/bin/file
2104 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2108 lt_cv_deplibs_check_method=pass_all
2113 lt_cv_deplibs_check_method=pass_all
2119 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2120 lt_cv_file_magic_cmd=/usr/bin/file
2121 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2124 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2125 lt_cv_file_magic_cmd=/usr/bin/file
2126 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2134 # this will be overridden with pass_all, but let us keep it just in case
2135 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2139 *-32|*"-32 ") libmagic=32-bit;;
2140 *-n32|*"-n32 ") libmagic=N32;;
2141 *-64|*"-64 ") libmagic=64-bit;;
2142 *) libmagic=never-match;;
2144 # this will be overridden with pass_all, but let us keep it just in case
2145 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2148 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2149 lt_cv_deplibs_check_method=pass_all
2152 # This must be Linux ELF.
2155 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2156 lt_cv_deplibs_check_method=pass_all ;;
2158 # glibc up to 2.1.1 does not perform some relocations on ARM
2159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2161 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2165 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2166 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2168 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2174 lt_cv_file_magic_cmd=/usr/bin/file
2175 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2178 osf3* | osf4* | osf5*)
2179 # this will be overridden with pass_all, but let us keep it just in case
2180 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2181 lt_cv_file_magic_test_file=/shlib/libc.so
2182 lt_cv_deplibs_check_method=pass_all
2186 lt_cv_deplibs_check_method=pass_all
2190 lt_cv_deplibs_check_method=pass_all
2191 lt_cv_file_magic_test_file=/lib/libc.so
2194 sysv5uw[78]* | sysv4*uw2*)
2195 lt_cv_deplibs_check_method=pass_all
2198 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2199 case $host_vendor in
2201 lt_cv_deplibs_check_method=pass_all
2204 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]'
2205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2213 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2214 file_magic_cmd=$lt_cv_file_magic_cmd
2215 deplibs_check_method=$lt_cv_deplibs_check_method
2217 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2218 echo "configure:2219: checking for object suffix" >&5
2219 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2223 echo 'int i = 1;' > conftest.$ac_ext
2224 if { (eval echo configure:2225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2225 for ac_file in conftest.*; do
2228 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2232 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2237 echo "$ac_t""$ac_cv_objext" 1>&6
2238 OBJEXT=$ac_cv_objext
2239 ac_objext=$ac_cv_objext
2241 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2243 # Only perform the check for file, if the check method requires it
2244 case $deplibs_check_method in
2246 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2247 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2248 echo "configure:2249: checking for ${ac_tool_prefix}file" >&5
2249 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2254 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2257 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2260 ac_save_MAGIC_CMD="$MAGIC_CMD"
2261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2262 ac_dummy="/usr/bin:$PATH"
2263 for ac_dir in $ac_dummy; do
2264 test -z "$ac_dir" && ac_dir=.
2265 if test -f $ac_dir/${ac_tool_prefix}file; then
2266 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2267 if test -n "$file_magic_test_file"; then
2268 case $deplibs_check_method in
2270 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2272 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2273 egrep "$file_magic_regex" > /dev/null; then
2278 *** Warning: the command libtool uses to detect shared libraries,
2279 *** $file_magic_cmd, produces output that libtool cannot recognize.
2280 *** The result is that libtool may fail to recognize shared libraries
2281 *** as such. This will affect the creation of libtool libraries that
2282 *** depend on shared libraries, but programs linked with such libtool
2283 *** libraries will work regardless of this problem. Nevertheless, you
2284 *** may want to report the problem to your system manager and/or to
2285 *** bug-libtool@gnu.org
2295 MAGIC_CMD="$ac_save_MAGIC_CMD"
2300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2301 if test -n "$MAGIC_CMD"; then
2302 echo "$ac_t""$MAGIC_CMD" 1>&6
2304 echo "$ac_t""no" 1>&6
2307 if test -z "$lt_cv_path_MAGIC_CMD"; then
2308 if test -n "$ac_tool_prefix"; then
2309 echo $ac_n "checking for file""... $ac_c" 1>&6
2310 echo "configure:2311: checking for file" >&5
2311 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2316 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2319 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2322 ac_save_MAGIC_CMD="$MAGIC_CMD"
2323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2324 ac_dummy="/usr/bin:$PATH"
2325 for ac_dir in $ac_dummy; do
2326 test -z "$ac_dir" && ac_dir=.
2327 if test -f $ac_dir/file; then
2328 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2329 if test -n "$file_magic_test_file"; then
2330 case $deplibs_check_method in
2332 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2334 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2335 egrep "$file_magic_regex" > /dev/null; then
2340 *** Warning: the command libtool uses to detect shared libraries,
2341 *** $file_magic_cmd, produces output that libtool cannot recognize.
2342 *** The result is that libtool may fail to recognize shared libraries
2343 *** as such. This will affect the creation of libtool libraries that
2344 *** depend on shared libraries, but programs linked with such libtool
2345 *** libraries will work regardless of this problem. Nevertheless, you
2346 *** may want to report the problem to your system manager and/or to
2347 *** bug-libtool@gnu.org
2357 MAGIC_CMD="$ac_save_MAGIC_CMD"
2362 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2363 if test -n "$MAGIC_CMD"; then
2364 echo "$ac_t""$MAGIC_CMD" 1>&6
2366 echo "$ac_t""no" 1>&6
2378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 if test -n "$RANLIB"; then
2386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2390 for ac_dir in $ac_dummy; do
2391 test -z "$ac_dir" && ac_dir=.
2392 if test -f $ac_dir/$ac_word; then
2393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2400 RANLIB="$ac_cv_prog_RANLIB"
2401 if test -n "$RANLIB"; then
2402 echo "$ac_t""$RANLIB" 1>&6
2404 echo "$ac_t""no" 1>&6
2408 if test -z "$ac_cv_prog_RANLIB"; then
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "ranlib", so it can be a program name with args.
2411 set dummy ranlib; ac_word=$2
2412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2413 echo "configure:2414: checking for $ac_word" >&5
2414 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2417 if test -n "$RANLIB"; then
2418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2422 for ac_dir in $ac_dummy; do
2423 test -z "$ac_dir" && ac_dir=.
2424 if test -f $ac_dir/$ac_word; then
2425 ac_cv_prog_RANLIB="ranlib"
2430 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2433 RANLIB="$ac_cv_prog_RANLIB"
2434 if test -n "$RANLIB"; then
2435 echo "$ac_t""$RANLIB" 1>&6
2437 echo "$ac_t""no" 1>&6
2445 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2448 echo "configure:2449: checking for $ac_word" >&5
2449 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 if test -n "$STRIP"; then
2453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2457 for ac_dir in $ac_dummy; do
2458 test -z "$ac_dir" && ac_dir=.
2459 if test -f $ac_dir/$ac_word; then
2460 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2467 STRIP="$ac_cv_prog_STRIP"
2468 if test -n "$STRIP"; then
2469 echo "$ac_t""$STRIP" 1>&6
2471 echo "$ac_t""no" 1>&6
2475 if test -z "$ac_cv_prog_STRIP"; then
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "strip", so it can be a program name with args.
2478 set dummy strip; ac_word=$2
2479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2480 echo "configure:2481: checking for $ac_word" >&5
2481 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 if test -n "$STRIP"; then
2485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2489 for ac_dir in $ac_dummy; do
2490 test -z "$ac_dir" && ac_dir=.
2491 if test -f $ac_dir/$ac_word; then
2492 ac_cv_prog_STRIP="strip"
2497 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2500 STRIP="$ac_cv_prog_STRIP"
2501 if test -n "$STRIP"; then
2502 echo "$ac_t""$STRIP" 1>&6
2504 echo "$ac_t""no" 1>&6
2513 # Check for any special flags to pass to ltconfig.
2514 libtool_flags="--cache-file=$cache_file"
2515 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2516 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2517 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2518 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2519 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2521 libtool_flags="$libtool_flags --enable-win32-dll"
2522 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2523 if test "${enable_libtool_lock+set}" = set; then
2524 enableval="$enable_libtool_lock"
2528 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2529 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2531 # Check whether --with-pic or --without-pic was given.
2532 if test "${with_pic+set}" = set; then
2539 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2540 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2542 # Some flags need to be propagated to the compiler or linker for good
2546 # Find out which ABI we are using.
2547 echo '#line 2548 "configure"' > conftest.$ac_ext
2548 if { (eval echo configure:2549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2549 case `/usr/bin/file conftest.$ac_objext` in
2565 # Find out which ABI we are using.
2566 echo 'int i;' > conftest.$ac_ext
2567 if { (eval echo configure:2568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2568 case "`/usr/bin/file conftest.o`" in
2581 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2582 SAVE_CFLAGS="$CFLAGS"
2583 CFLAGS="$CFLAGS -belf"
2584 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2585 echo "configure:2586: checking whether the C compiler needs -belf" >&5
2586 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2594 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2595 cross_compiling=$ac_cv_prog_cc_cross
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2605 if { (eval echo configure:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2607 lt_cv_cc_needs_belf=yes
2609 echo "configure: failed program was:" >&5
2610 cat conftest.$ac_ext >&5
2612 lt_cv_cc_needs_belf=no
2616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2617 ac_cpp='$CPP $CPPFLAGS'
2618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2620 cross_compiling=$ac_cv_prog_cc_cross
2624 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2625 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2626 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2627 CFLAGS="$SAVE_CFLAGS"
2631 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2632 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2635 echo "configure:2636: checking for $ac_word" >&5
2636 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2639 if test -n "$DLLTOOL"; then
2640 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2644 for ac_dir in $ac_dummy; do
2645 test -z "$ac_dir" && ac_dir=.
2646 if test -f $ac_dir/$ac_word; then
2647 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2654 DLLTOOL="$ac_cv_prog_DLLTOOL"
2655 if test -n "$DLLTOOL"; then
2656 echo "$ac_t""$DLLTOOL" 1>&6
2658 echo "$ac_t""no" 1>&6
2662 if test -z "$ac_cv_prog_DLLTOOL"; then
2663 if test -n "$ac_tool_prefix"; then
2664 # Extract the first word of "dlltool", so it can be a program name with args.
2665 set dummy dlltool; ac_word=$2
2666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2667 echo "configure:2668: checking for $ac_word" >&5
2668 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2671 if test -n "$DLLTOOL"; then
2672 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2676 for ac_dir in $ac_dummy; do
2677 test -z "$ac_dir" && ac_dir=.
2678 if test -f $ac_dir/$ac_word; then
2679 ac_cv_prog_DLLTOOL="dlltool"
2684 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2687 DLLTOOL="$ac_cv_prog_DLLTOOL"
2688 if test -n "$DLLTOOL"; then
2689 echo "$ac_t""$DLLTOOL" 1>&6
2691 echo "$ac_t""no" 1>&6
2699 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2700 set dummy ${ac_tool_prefix}as; ac_word=$2
2701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2702 echo "configure:2703: checking for $ac_word" >&5
2703 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2706 if test -n "$AS"; then
2707 ac_cv_prog_AS="$AS" # Let the user override the test.
2709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2711 for ac_dir in $ac_dummy; do
2712 test -z "$ac_dir" && ac_dir=.
2713 if test -f $ac_dir/$ac_word; then
2714 ac_cv_prog_AS="${ac_tool_prefix}as"
2722 if test -n "$AS"; then
2723 echo "$ac_t""$AS" 1>&6
2725 echo "$ac_t""no" 1>&6
2729 if test -z "$ac_cv_prog_AS"; then
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "as", so it can be a program name with args.
2732 set dummy as; ac_word=$2
2733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2734 echo "configure:2735: checking for $ac_word" >&5
2735 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2738 if test -n "$AS"; then
2739 ac_cv_prog_AS="$AS" # Let the user override the test.
2741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2743 for ac_dir in $ac_dummy; do
2744 test -z "$ac_dir" && ac_dir=.
2745 if test -f $ac_dir/$ac_word; then
2751 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2755 if test -n "$AS"; then
2756 echo "$ac_t""$AS" 1>&6
2758 echo "$ac_t""no" 1>&6
2766 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2769 echo "configure:2770: checking for $ac_word" >&5
2770 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2773 if test -n "$OBJDUMP"; then
2774 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2778 for ac_dir in $ac_dummy; do
2779 test -z "$ac_dir" && ac_dir=.
2780 if test -f $ac_dir/$ac_word; then
2781 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2788 OBJDUMP="$ac_cv_prog_OBJDUMP"
2789 if test -n "$OBJDUMP"; then
2790 echo "$ac_t""$OBJDUMP" 1>&6
2792 echo "$ac_t""no" 1>&6
2796 if test -z "$ac_cv_prog_OBJDUMP"; then
2797 if test -n "$ac_tool_prefix"; then
2798 # Extract the first word of "objdump", so it can be a program name with args.
2799 set dummy objdump; ac_word=$2
2800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2801 echo "configure:2802: checking for $ac_word" >&5
2802 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2805 if test -n "$OBJDUMP"; then
2806 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2810 for ac_dir in $ac_dummy; do
2811 test -z "$ac_dir" && ac_dir=.
2812 if test -f $ac_dir/$ac_word; then
2813 ac_cv_prog_OBJDUMP="objdump"
2818 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2821 OBJDUMP="$ac_cv_prog_OBJDUMP"
2822 if test -n "$OBJDUMP"; then
2823 echo "$ac_t""$OBJDUMP" 1>&6
2825 echo "$ac_t""no" 1>&6
2834 # recent cygwin and mingw systems supply a stub DllMain which the user
2835 # can override, but on older systems we have to supply one
2836 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2837 echo "configure:2838: checking if libtool should supply DllMain function" >&5
2838 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2841 cat > conftest.$ac_ext <<EOF
2842 #line 2843 "configure"
2843 #include "confdefs.h"
2846 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2850 if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2852 lt_cv_need_dllmain=no
2854 echo "configure: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2857 lt_cv_need_dllmain=yes
2862 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2865 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2866 # old mingw systems require "-dll" to link a DLL, while more recent ones
2868 SAVE_CFLAGS="$CFLAGS"
2869 CFLAGS="$CFLAGS -mdll"
2870 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2871 echo "configure:2872: checking how to link DLLs" >&5
2872 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 cat > conftest.$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2883 if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2885 lt_cv_cc_dll_switch=-mdll
2887 echo "configure: failed program was:" >&5
2888 cat conftest.$ac_ext >&5
2890 lt_cv_cc_dll_switch=-dll
2895 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2896 CFLAGS="$SAVE_CFLAGS" ;;
2897 *-*-cygwin* | *-*-pw32*)
2898 # cygwin systems need to pass --dll to the linker, and not link
2899 # crt.o which will require a WinMain@16 definition.
2900 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2907 # Save cache, so that ltconfig can load it
2908 cat > confcache <<\EOF
2909 # This file is a shell script that caches the results of configure
2910 # tests run on this system so they can be shared between configure
2911 # scripts and configure runs. It is not useful on other systems.
2912 # If it contains results you don't want to keep, you may remove or edit it.
2914 # By default, configure uses ./config.cache as the cache file,
2915 # creating it if it does not exist already. You can give configure
2916 # the --cache-file=FILE option to use a different cache file; that is
2917 # what configure does when it calls configure scripts in
2918 # subdirectories, so they share the cache.
2919 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2920 # config.status only pays attention to the cache file if you give it the
2921 # --recheck option to rerun configure.
2924 # The following way of writing the cache mishandles newlines in values,
2925 # but we know of no workaround that is simple, portable, and efficient.
2926 # So, don't put newlines in cache variables' values.
2927 # Ultrix sh set writes to stderr and can't be redirected directly,
2928 # and sets the high bit in the cache file unless we assign to the vars.
2930 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2932 # `set' does not quote correctly, so add quotes (double-quote substitution
2933 # turns \\\\ into \\, and sed turns \\ into \).
2935 -e "s/'/'\\\\''/g" \
2936 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2939 # `set' quotes correctly as required by POSIX, so do not add quotes.
2940 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2943 if cmp -s $cache_file confcache; then
2946 if test -w $cache_file; then
2947 echo "updating cache $cache_file"
2948 cat confcache > $cache_file
2950 echo "not updating unwritable cache $cache_file"
2956 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2957 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2958 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2959 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2960 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2961 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2962 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2963 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2964 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2965 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2967 # Reload cache, that may have been modified by ltconfig
2968 if test -r "$cache_file"; then
2969 echo "loading cache $cache_file"
2972 echo "creating cache $cache_file"
2977 # This can be used to rebuild libtool when needed
2978 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2980 # Always use our own libtool.
2981 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2983 # Redirect the config.log output again, so that the ltconfig log is not
2984 # clobbered by the next message.
2985 exec 5>>./config.log
2994 if test -n "${machine_dir}"; then
2995 subdirs="${machine_dir}"
3001 if test x${machine_dir} != x; then
3002 HAVE_MACHINE_DIR_TRUE=
3003 HAVE_MACHINE_DIR_FALSE='#'
3005 HAVE_MACHINE_DIR_TRUE='#'
3006 HAVE_MACHINE_DIR_FALSE=
3010 cat > confcache <<\EOF
3011 # This file is a shell script that caches the results of configure
3012 # tests run on this system so they can be shared between configure
3013 # scripts and configure runs. It is not useful on other systems.
3014 # If it contains results you don't want to keep, you may remove or edit it.
3016 # By default, configure uses ./config.cache as the cache file,
3017 # creating it if it does not exist already. You can give configure
3018 # the --cache-file=FILE option to use a different cache file; that is
3019 # what configure does when it calls configure scripts in
3020 # subdirectories, so they share the cache.
3021 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3022 # config.status only pays attention to the cache file if you give it the
3023 # --recheck option to rerun configure.
3026 # The following way of writing the cache mishandles newlines in values,
3027 # but we know of no workaround that is simple, portable, and efficient.
3028 # So, don't put newlines in cache variables' values.
3029 # Ultrix sh set writes to stderr and can't be redirected directly,
3030 # and sets the high bit in the cache file unless we assign to the vars.
3032 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3034 # `set' does not quote correctly, so add quotes (double-quote substitution
3035 # turns \\\\ into \\, and sed turns \\ into \).
3037 -e "s/'/'\\\\''/g" \
3038 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3041 # `set' quotes correctly as required by POSIX, so do not add quotes.
3042 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3045 if cmp -s $cache_file confcache; then
3048 if test -w $cache_file; then
3049 echo "updating cache $cache_file"
3050 cat confcache > $cache_file
3052 echo "not updating unwritable cache $cache_file"
3057 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3060 # Let make expand exec_prefix.
3061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3063 # Any assignment to VPATH causes Sun make to only execute
3064 # the first set of double-colon rules, so remove it if not needed.
3065 # If there is a colon in the path, we need to keep it.
3066 if test "x$srcdir" = x.; then
3067 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3070 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3072 # Transform confdefs.h into DEFS.
3073 # Protect against shell expansion while executing Makefile rules.
3074 # Protect against Makefile macro expansion.
3075 cat > conftest.defs <<\EOF
3076 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3077 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3082 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3086 # Without the "./", some shells look in PATH for config.status.
3087 : ${CONFIG_STATUS=./config.status}
3089 echo creating $CONFIG_STATUS
3090 rm -f $CONFIG_STATUS
3091 cat > $CONFIG_STATUS <<EOF
3093 # Generated automatically by configure.
3094 # Run this file to recreate the current configuration.
3095 # This directory was configured as follows,
3096 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3098 # $0 $ac_configure_args
3100 # Compiler output produced by configure, useful for debugging
3101 # configure, is in ./config.log if it exists.
3103 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3106 case "\$ac_option" in
3107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3108 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3109 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3110 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3111 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3113 -help | --help | --hel | --he | --h)
3114 echo "\$ac_cs_usage"; exit 0 ;;
3115 *) echo "\$ac_cs_usage"; exit 1 ;;
3119 ac_given_srcdir=$srcdir
3120 ac_given_INSTALL="$INSTALL"
3122 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3124 cat >> $CONFIG_STATUS <<EOF
3126 # Protect against being on the right side of a sed subst in config.status.
3127 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3128 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3132 s%@CFLAGS@%$CFLAGS%g
3133 s%@CPPFLAGS@%$CPPFLAGS%g
3134 s%@CXXFLAGS@%$CXXFLAGS%g
3135 s%@FFLAGS@%$FFLAGS%g
3137 s%@LDFLAGS@%$LDFLAGS%g
3139 s%@exec_prefix@%$exec_prefix%g
3140 s%@prefix@%$prefix%g
3141 s%@program_transform_name@%$program_transform_name%g
3142 s%@bindir@%$bindir%g
3143 s%@sbindir@%$sbindir%g
3144 s%@libexecdir@%$libexecdir%g
3145 s%@datadir@%$datadir%g
3146 s%@sysconfdir@%$sysconfdir%g
3147 s%@sharedstatedir@%$sharedstatedir%g
3148 s%@localstatedir@%$localstatedir%g
3149 s%@libdir@%$libdir%g
3150 s%@includedir@%$includedir%g
3151 s%@oldincludedir@%$oldincludedir%g
3152 s%@infodir@%$infodir%g
3153 s%@mandir@%$mandir%g
3154 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
3155 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
3156 s%@newlib_basedir@%$newlib_basedir%g
3158 s%@host_alias@%$host_alias%g
3159 s%@host_cpu@%$host_cpu%g
3160 s%@host_vendor@%$host_vendor%g
3161 s%@host_os@%$host_os%g
3162 s%@target@%$target%g
3163 s%@target_alias@%$target_alias%g
3164 s%@target_cpu@%$target_cpu%g
3165 s%@target_vendor@%$target_vendor%g
3166 s%@target_os@%$target_os%g
3168 s%@build_alias@%$build_alias%g
3169 s%@build_cpu@%$build_cpu%g
3170 s%@build_vendor@%$build_vendor%g
3171 s%@build_os@%$build_os%g
3172 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3173 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3174 s%@INSTALL_DATA@%$INSTALL_DATA%g
3175 s%@PACKAGE@%$PACKAGE%g
3176 s%@VERSION@%$VERSION%g
3177 s%@ACLOCAL@%$ACLOCAL%g
3178 s%@AUTOCONF@%$AUTOCONF%g
3179 s%@AUTOMAKE@%$AUTOMAKE%g
3180 s%@AUTOHEADER@%$AUTOHEADER%g
3181 s%@MAKEINFO@%$MAKEINFO%g
3182 s%@SET_MAKE@%$SET_MAKE%g
3186 s%@RANLIB@%$RANLIB%g
3187 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3188 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3190 s%@EXEEXT@%$EXEEXT%g
3191 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
3192 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
3193 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
3194 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
3195 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
3196 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
3197 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
3198 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
3199 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
3200 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
3201 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
3202 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
3203 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
3204 s%@OBJEXT@%$OBJEXT%g
3207 s%@libm_machine_dir@%$libm_machine_dir%g
3208 s%@machine_dir@%$machine_dir%g
3209 s%@sys_dir@%$sys_dir%g
3212 s%@DLLTOOL@%$DLLTOOL%g
3213 s%@OBJDUMP@%$OBJDUMP%g
3214 s%@LIBTOOL@%$LIBTOOL%g
3215 s%@subdirs@%$subdirs%g
3216 s%@HAVE_MACHINE_DIR_TRUE@%$HAVE_MACHINE_DIR_TRUE%g
3217 s%@HAVE_MACHINE_DIR_FALSE@%$HAVE_MACHINE_DIR_FALSE%g
3222 cat >> $CONFIG_STATUS <<\EOF
3224 # Split the substitutions into bite-sized pieces for seds with
3225 # small command number limits, like on Digital OSF/1 and HP-UX.
3226 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3227 ac_file=1 # Number of current file.
3228 ac_beg=1 # First line for current file.
3229 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3232 while $ac_more_lines; do
3233 if test $ac_beg -gt 1; then
3234 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3236 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3238 if test ! -s conftest.s$ac_file; then
3240 rm -f conftest.s$ac_file
3242 if test -z "$ac_sed_cmds"; then
3243 ac_sed_cmds="sed -f conftest.s$ac_file"
3245 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3247 ac_file=`expr $ac_file + 1`
3249 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3252 if test -z "$ac_sed_cmds"; then
3257 cat >> $CONFIG_STATUS <<EOF
3259 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3261 cat >> $CONFIG_STATUS <<\EOF
3262 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3263 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3265 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3266 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3267 *) ac_file_in="${ac_file}.in" ;;
3270 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3272 # Remove last slash and all that follows it. Not all systems have dirname.
3273 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3274 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3275 # The file is in a subdirectory.
3276 test ! -d "$ac_dir" && mkdir "$ac_dir"
3277 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3278 # A "../" for each directory in $ac_dir_suffix.
3279 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3281 ac_dir_suffix= ac_dots=
3284 case "$ac_given_srcdir" in
3286 if test -z "$ac_dots"; then top_srcdir=.
3287 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3288 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3290 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3291 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3294 case "$ac_given_INSTALL" in
3295 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3296 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3299 echo creating "$ac_file"
3301 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3303 *Makefile*) ac_comsub="1i\\
3304 # $configure_input" ;;
3308 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3310 s%@configure_input@%$configure_input%g
3311 s%@srcdir@%$srcdir%g
3312 s%@top_srcdir@%$top_srcdir%g
3313 s%@INSTALL@%$INSTALL%g
3314 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3319 cat >> $CONFIG_STATUS <<EOF
3322 cat >> $CONFIG_STATUS <<\EOF
3326 chmod +x $CONFIG_STATUS
3327 rm -fr confdefs* $ac_clean_files
3328 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3330 if test "$no_recursion" != yes; then
3332 # Remove --cache-file and --srcdir arguments so they do not pile up.
3333 ac_sub_configure_args=
3335 for ac_arg in $ac_configure_args; do
3336 if test -n "$ac_prev"; then
3341 -cache-file | --cache-file | --cache-fil | --cache-fi \
3342 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3343 ac_prev=cache_file ;;
3344 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3345 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3351 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3355 for ac_config_dir in ${machine_dir}; do
3357 # Do not complain, so a configure script can configure whichever
3358 # parts of a large source tree are present.
3359 if test ! -d $srcdir/$ac_config_dir; then
3363 echo configuring in $ac_config_dir
3368 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3370 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3378 # A "../" for each directory in /$ac_config_dir.
3379 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3382 .) # No --srcdir option. We are building in place.
3383 ac_sub_srcdir=$srcdir ;;
3384 /*) # Absolute path.
3385 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3387 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3390 # Check for guested configure; otherwise get Cygnus style configure.
3391 if test -f $ac_sub_srcdir/configure; then
3392 ac_sub_configure=$ac_sub_srcdir/configure
3393 elif test -f $ac_sub_srcdir/configure.in; then
3394 ac_sub_configure=$ac_configure
3396 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3400 # The recursion is here.
3401 if test -n "$ac_sub_configure"; then
3403 # Make the cache file name correct relative to the subdirectory.
3404 case "$cache_file" in
3405 /*) ac_sub_cache_file=$cache_file ;;
3407 ac_sub_cache_file="$ac_dots$cache_file" ;;
3409 case "$ac_given_INSTALL" in
3410 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3411 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3414 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3415 # The eval makes quoting arguments work.
3416 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3419 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }