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-mb enable multibyte support"
23 --enable-maintainer-mode enable make rules and dependencies not useful
24 (and sometimes confusing) to the casual installer"
26 --enable-shared[=PKGS] build shared libraries [default=yes]"
28 --enable-static[=PKGS] build static libraries [default=yes]"
30 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34 --disable-libtool-lock avoid locking (might break parallel builds)"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file=./config.cache
49 program_transform_name=s,x,x,
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --site-file=FILE use FILE as the site file
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host | --host | --hos | --ho)
214 -host=* | --host=* | --hos=* | --ho=*)
217 -includedir | --includedir | --includedi | --included | --include \
218 | --includ | --inclu | --incl | --inc)
219 ac_prev=includedir ;;
220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221 | --includ=* | --inclu=* | --incl=* | --inc=*)
222 includedir="$ac_optarg" ;;
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
229 -libdir | --libdir | --libdi | --libd)
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235 | --libexe | --libex | --libe)
236 ac_prev=libexecdir ;;
237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238 | --libexe=* | --libex=* | --libe=*)
239 libexecdir="$ac_optarg" ;;
241 -localstatedir | --localstatedir | --localstatedi | --localstated \
242 | --localstate | --localstat | --localsta | --localst \
243 | --locals | --local | --loca | --loc | --lo)
244 ac_prev=localstatedir ;;
245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248 localstatedir="$ac_optarg" ;;
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269 | --oldin | --oldi | --old | --ol | --o)
270 ac_prev=oldincludedir ;;
271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274 oldincludedir="$ac_optarg" ;;
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
282 | --program-pre | --program-pr | --program-p)
283 ac_prev=program_prefix ;;
284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286 program_prefix="$ac_optarg" ;;
288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
289 | --program-suf | --program-su | --program-s)
290 ac_prev=program_suffix ;;
291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293 program_suffix="$ac_optarg" ;;
295 -program-transform-name | --program-transform-name \
296 | --program-transform-nam | --program-transform-na \
297 | --program-transform-n | --program-transform- \
298 | --program-transform | --program-transfor \
299 | --program-transfo | --program-transf \
300 | --program-trans | --program-tran \
301 | --progr-tra | --program-tr | --program-t)
302 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 sbindir="$ac_optarg" ;;
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 sharedstatedir="$ac_optarg" ;;
333 -site | --site | --sit)
335 -site=* | --site=* | --sit=*)
338 -site-file | --site-file | --site-fil | --site-fi | --site-f)
340 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
341 sitefile="$ac_optarg" ;;
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=sys.tex
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$sitefile"; then
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 CONFIG_SITE="$sitefile"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='\c' ac_t=
558 for ac_dir in ../.. $srcdir/../..; do
559 if test -f $ac_dir/install-sh; then
561 ac_install_sh="$ac_aux_dir/install-sh -c"
563 elif test -f $ac_dir/install.sh; then
565 ac_install_sh="$ac_aux_dir/install.sh -c"
569 if test -z "$ac_aux_dir"; then
570 { echo "configure: error: can not find install-sh or install.sh in ../.. $srcdir/../.." 1>&2; exit 1; }
572 ac_config_guess=$ac_aux_dir/config.guess
573 ac_config_sub=$ac_aux_dir/config.sub
574 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
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-mb or --disable-newlib-mb was given.
831 if test "${enable_newlib_mb+set}" = set; then
832 enableval="$enable_newlib_mb"
833 case "${enableval}" in
834 yes) newlib_mb=yes ;;
836 *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
843 test -z "${with_target_subdir}" && with_target_subdir=.
845 if test "${srcdir}" = "."; then
846 if test "${with_target_subdir}" != "."; then
847 newlib_basedir="${srcdir}/${with_multisrctop}../.."
849 newlib_basedir="${srcdir}/${with_multisrctop}.."
852 newlib_basedir="${srcdir}/.."
857 # Make sure we can run config.sub.
858 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
859 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
862 echo $ac_n "checking host system type""... $ac_c" 1>&6
863 echo "configure:864: checking host system type" >&5
866 case "$host_alias" in
870 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
871 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
873 *) host_alias=$nonopt ;;
877 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
878 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
879 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
880 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
881 echo "$ac_t""$host" 1>&6
889 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
890 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
892 cat >> confdefs.h <<EOF
893 #define PACKAGE "$PACKAGE"
896 cat >> confdefs.h <<EOF
897 #define VERSION "$VERSION"
902 missing_dir=`cd $ac_aux_dir && pwd`
903 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
904 echo "configure:905: checking for working aclocal" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf. Sigh.
908 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
910 echo "$ac_t""found" 1>&6
912 ACLOCAL="$missing_dir/missing aclocal"
913 echo "$ac_t""missing" 1>&6
916 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
917 echo "configure:918: checking for working autoconf" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf. Sigh.
921 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
923 echo "$ac_t""found" 1>&6
925 AUTOCONF="$missing_dir/missing autoconf"
926 echo "$ac_t""missing" 1>&6
929 echo $ac_n "checking for working automake""... $ac_c" 1>&6
930 echo "configure:931: checking for working automake" >&5
931 # Run test in a subshell; some versions of sh will print an error if
932 # an executable is not found, even if stderr is redirected.
933 # Redirect stdin to placate older versions of autoconf. Sigh.
934 if (automake --version) < /dev/null > /dev/null 2>&1; then
936 echo "$ac_t""found" 1>&6
938 AUTOMAKE="$missing_dir/missing automake"
939 echo "$ac_t""missing" 1>&6
942 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
943 echo "configure:944: checking for working autoheader" >&5
944 # Run test in a subshell; some versions of sh will print an error if
945 # an executable is not found, even if stderr is redirected.
946 # Redirect stdin to placate older versions of autoconf. Sigh.
947 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
948 AUTOHEADER=autoheader
949 echo "$ac_t""found" 1>&6
951 AUTOHEADER="$missing_dir/missing autoheader"
952 echo "$ac_t""missing" 1>&6
955 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
956 echo "configure:957: checking for working makeinfo" >&5
957 # Run test in a subshell; some versions of sh will print an error if
958 # an executable is not found, even if stderr is redirected.
959 # Redirect stdin to placate older versions of autoconf. Sigh.
960 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
962 echo "$ac_t""found" 1>&6
964 MAKEINFO="$missing_dir/missing makeinfo"
965 echo "$ac_t""missing" 1>&6
970 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
971 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
972 # are probably using a cross compiler, which will not be able to fully
973 # link an executable. This should really be fixed in autoconf
978 # Extract the first word of "gcc", so it can be a program name with args.
979 set dummy gcc; ac_word=$2
980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
981 echo "configure:982: checking for $ac_word" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 if test -n "$CC"; then
986 ac_cv_prog_CC="$CC" # Let the user override the test.
988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
990 for ac_dir in $ac_dummy; do
991 test -z "$ac_dir" && ac_dir=.
992 if test -f $ac_dir/$ac_word; then
1001 if test -n "$CC"; then
1002 echo "$ac_t""$CC" 1>&6
1004 echo "$ac_t""no" 1>&6
1007 if test -z "$CC"; then
1008 # Extract the first word of "cc", so it can be a program name with args.
1009 set dummy cc; ac_word=$2
1010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1011 echo "configure:1012: checking for $ac_word" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 if test -n "$CC"; then
1016 ac_cv_prog_CC="$CC" # Let the user override the test.
1018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1021 for ac_dir in $ac_dummy; do
1022 test -z "$ac_dir" && ac_dir=.
1023 if test -f $ac_dir/$ac_word; then
1024 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1025 ac_prog_rejected=yes
1033 if test $ac_prog_rejected = yes; then
1034 # We found a bogon in the path, so make sure we never use it.
1035 set dummy $ac_cv_prog_CC
1037 if test $# -gt 0; then
1038 # We chose a different compiler from the bogus one.
1039 # However, it has the same basename, so the bogon will be chosen
1040 # first if we set CC to just the basename; use the full file name.
1042 set dummy "$ac_dir/$ac_word" "$@"
1050 if test -n "$CC"; then
1051 echo "$ac_t""$CC" 1>&6
1053 echo "$ac_t""no" 1>&6
1056 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1059 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1060 echo "configure:1061: checking whether we are using GNU C" >&5
1061 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1064 cat > conftest.c <<EOF
1069 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1076 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1078 if test $ac_cv_prog_gcc = yes; then
1080 ac_test_CFLAGS="${CFLAGS+set}"
1081 ac_save_CFLAGS="$CFLAGS"
1083 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1084 echo "configure:1085: checking whether ${CC-cc} accepts -g" >&5
1085 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 echo 'void f(){}' > conftest.c
1089 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1098 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1099 if test "$ac_test_CFLAGS" = set; then
1100 CFLAGS="$ac_save_CFLAGS"
1101 elif test $ac_cv_prog_cc_g = yes; then
1108 test "${CFLAGS+set}" = set || CFLAGS="-g"
1112 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1113 # run it explicitly here, it will be run implicitly before
1114 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1115 # be run before AC_CANONICAL_HOST.
1116 echo $ac_n "checking build system type""... $ac_c" 1>&6
1117 echo "configure:1118: checking build system type" >&5
1120 case "$build_alias" in
1123 NONE) build_alias=$host_alias ;;
1124 *) build_alias=$nonopt ;;
1128 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1129 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1130 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1131 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1132 echo "$ac_t""$build" 1>&6
1135 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1136 set dummy ${ac_tool_prefix}as; ac_word=$2
1137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1138 echo "configure:1139: checking for $ac_word" >&5
1139 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 if test -n "$AS"; then
1143 ac_cv_prog_AS="$AS" # Let the user override the test.
1145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1147 for ac_dir in $ac_dummy; do
1148 test -z "$ac_dir" && ac_dir=.
1149 if test -f $ac_dir/$ac_word; then
1150 ac_cv_prog_AS="${ac_tool_prefix}as"
1155 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1159 if test -n "$AS"; then
1160 echo "$ac_t""$AS" 1>&6
1162 echo "$ac_t""no" 1>&6
1167 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1168 set dummy ${ac_tool_prefix}ar; ac_word=$2
1169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1170 echo "configure:1171: checking for $ac_word" >&5
1171 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 if test -n "$AR"; then
1175 ac_cv_prog_AR="$AR" # Let the user override the test.
1177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1179 for ac_dir in $ac_dummy; do
1180 test -z "$ac_dir" && ac_dir=.
1181 if test -f $ac_dir/$ac_word; then
1182 ac_cv_prog_AR="${ac_tool_prefix}ar"
1187 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1191 if test -n "$AR"; then
1192 echo "$ac_t""$AR" 1>&6
1194 echo "$ac_t""no" 1>&6
1199 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1200 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1202 echo "configure:1203: checking for $ac_word" >&5
1203 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1206 if test -n "$RANLIB"; then
1207 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1211 for ac_dir in $ac_dummy; do
1212 test -z "$ac_dir" && ac_dir=.
1213 if test -f $ac_dir/$ac_word; then
1214 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1221 RANLIB="$ac_cv_prog_RANLIB"
1222 if test -n "$RANLIB"; then
1223 echo "$ac_t""$RANLIB" 1>&6
1225 echo "$ac_t""no" 1>&6
1229 if test -z "$ac_cv_prog_RANLIB"; then
1230 if test -n "$ac_tool_prefix"; then
1231 # Extract the first word of "ranlib", so it can be a program name with args.
1232 set dummy ranlib; ac_word=$2
1233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_word" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 if test -n "$RANLIB"; then
1239 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1243 for ac_dir in $ac_dummy; do
1244 test -z "$ac_dir" && ac_dir=.
1245 if test -f $ac_dir/$ac_word; then
1246 ac_cv_prog_RANLIB="ranlib"
1251 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1254 RANLIB="$ac_cv_prog_RANLIB"
1255 if test -n "$RANLIB"; then
1256 echo "$ac_t""$RANLIB" 1>&6
1258 echo "$ac_t""no" 1>&6
1267 # Find a good install program. We prefer a C program (faster),
1268 # so one script is as good as another. But avoid the broken or
1269 # incompatible versions:
1270 # SysV /etc/install, /usr/sbin/install
1271 # SunOS /usr/etc/install
1272 # IRIX /sbin/install
1274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1277 # ./install, which can be erroneously created by make from ./install.sh.
1278 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1279 echo "configure:1280: checking for a BSD compatible install" >&5
1280 if test -z "$INSTALL"; then
1281 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1285 for ac_dir in $PATH; do
1286 # Account for people who put trailing slashes in PATH elements.
1288 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1290 # OSF1 and SCO ODT 3.0 have their own names for install.
1291 # Don't use installbsd from OSF since it installs stuff as root
1293 for ac_prog in ginstall scoinst install; do
1294 if test -f $ac_dir/$ac_prog; then
1295 if test $ac_prog = install &&
1296 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1297 # AIX install. It has an incompatible calling convention.
1300 ac_cv_path_install="$ac_dir/$ac_prog -c"
1311 if test "${ac_cv_path_install+set}" = set; then
1312 INSTALL="$ac_cv_path_install"
1314 # As a last resort, use the slow shell script. We don't cache a
1315 # path for INSTALL within a source directory, because that will
1316 # break other packages using the cache if that directory is
1317 # removed, or if the path is relative.
1318 INSTALL="$ac_install_sh"
1321 echo "$ac_t""$INSTALL" 1>&6
1323 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1324 # It thinks the first close brace ends the variable substitution.
1325 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1327 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1329 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1332 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1333 echo "configure:1334: checking whether to enable maintainer-specific portions of Makefiles" >&5
1334 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1335 if test "${enable_maintainer_mode+set}" = set; then
1336 enableval="$enable_maintainer_mode"
1337 USE_MAINTAINER_MODE=$enableval
1339 USE_MAINTAINER_MODE=no
1342 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1345 if test $USE_MAINTAINER_MODE = yes; then
1346 MAINTAINER_MODE_TRUE=
1347 MAINTAINER_MODE_FALSE='#'
1349 MAINTAINER_MODE_TRUE='#'
1350 MAINTAINER_MODE_FALSE=
1352 MAINT=$MAINTAINER_MODE_TRUE
1356 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1357 # at least currently, we never actually build a program, so we never
1358 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1359 # fails, because we are probably configuring with a cross compiler
1360 # which can't create executables. So we include AC_EXEEXT to keep
1361 # automake happy, but we don't execute it, since we don't care about
1366 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1367 echo "configure:1368: checking for executable suffix" >&5
1368 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1375 echo 'int main () { return 0; }' > conftest.$ac_ext
1377 if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1378 for file in conftest.*; do
1380 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1381 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1385 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1388 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1393 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1394 echo "$ac_t""${ac_cv_exeext}" 1>&6
1399 . ${newlib_basedir}/configure.host
1401 case ${newlib_basedir} in
1402 /* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;;
1403 *) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;;
1406 newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../targ-include -I${newlib_flagbasedir}/libc/include"
1409 newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/cygwin/include -I${newlib_flagbasedir}/../winsup/w32api/include"
1413 newlib_cflags="${newlib_cflags} -fno-builtin"
1415 NEWLIB_CFLAGS=${newlib_cflags}
1423 if test x${use_libtool} = xyes; then
1425 USE_LIBTOOL_FALSE='#'
1427 USE_LIBTOOL_TRUE='#'
1439 if test "${use_libtool}" = "yes"; then
1441 # Check whether --enable-shared or --disable-shared was given.
1442 if test "${enable_shared+set}" = set; then
1443 enableval="$enable_shared"
1444 p=${PACKAGE-default}
1445 case "$enableval" in
1446 yes) enable_shared=yes ;;
1447 no) enable_shared=no ;;
1450 # Look at the argument we got. We use all the common list separators.
1451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1452 for pkg in $enableval; do
1453 if test "X$pkg" = "X$p"; then
1464 # Check whether --enable-static or --disable-static was given.
1465 if test "${enable_static+set}" = set; then
1466 enableval="$enable_static"
1467 p=${PACKAGE-default}
1468 case "$enableval" in
1469 yes) enable_static=yes ;;
1470 no) enable_static=no ;;
1473 # Look at the argument we got. We use all the common list separators.
1474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1475 for pkg in $enableval; do
1476 if test "X$pkg" = "X$p"; then
1487 # Check whether --enable-fast-install or --disable-fast-install was given.
1488 if test "${enable_fast_install+set}" = set; then
1489 enableval="$enable_fast_install"
1490 p=${PACKAGE-default}
1491 case "$enableval" in
1492 yes) enable_fast_install=yes ;;
1493 no) enable_fast_install=no ;;
1495 enable_fast_install=no
1496 # Look at the argument we got. We use all the common list separators.
1497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1498 for pkg in $enableval; do
1499 if test "X$pkg" = "X$p"; then
1500 enable_fast_install=yes
1507 enable_fast_install=yes
1510 # Extract the first word of "ranlib", so it can be a program name with args.
1511 set dummy ranlib; ac_word=$2
1512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1513 echo "configure:1514: checking for $ac_word" >&5
1514 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 if test -n "$RANLIB"; then
1518 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1522 for ac_dir in $ac_dummy; do
1523 test -z "$ac_dir" && ac_dir=.
1524 if test -f $ac_dir/$ac_word; then
1525 ac_cv_prog_RANLIB="ranlib"
1530 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1533 RANLIB="$ac_cv_prog_RANLIB"
1534 if test -n "$RANLIB"; then
1535 echo "$ac_t""$RANLIB" 1>&6
1537 echo "$ac_t""no" 1>&6
1540 # Extract the first word of "gcc", so it can be a program name with args.
1541 set dummy gcc; ac_word=$2
1542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1543 echo "configure:1544: checking for $ac_word" >&5
1544 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1552 for ac_dir in $ac_dummy; do
1553 test -z "$ac_dir" && ac_dir=.
1554 if test -f $ac_dir/$ac_word; then
1563 if test -n "$CC"; then
1564 echo "$ac_t""$CC" 1>&6
1566 echo "$ac_t""no" 1>&6
1569 if test -z "$CC"; then
1570 # Extract the first word of "cc", so it can be a program name with args.
1571 set dummy cc; ac_word=$2
1572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1573 echo "configure:1574: checking for $ac_word" >&5
1574 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 if test -n "$CC"; then
1578 ac_cv_prog_CC="$CC" # Let the user override the test.
1580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1583 for ac_dir in $ac_dummy; do
1584 test -z "$ac_dir" && ac_dir=.
1585 if test -f $ac_dir/$ac_word; then
1586 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1587 ac_prog_rejected=yes
1595 if test $ac_prog_rejected = yes; then
1596 # We found a bogon in the path, so make sure we never use it.
1597 set dummy $ac_cv_prog_CC
1599 if test $# -gt 0; then
1600 # We chose a different compiler from the bogus one.
1601 # However, it has the same basename, so the bogon will be chosen
1602 # first if we set CC to just the basename; use the full file name.
1604 set dummy "$ac_dir/$ac_word" "$@"
1612 if test -n "$CC"; then
1613 echo "$ac_t""$CC" 1>&6
1615 echo "$ac_t""no" 1>&6
1618 if test -z "$CC"; then
1619 case "`uname -s`" in
1621 # Extract the first word of "cl", so it can be a program name with args.
1622 set dummy cl; ac_word=$2
1623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1624 echo "configure:1625: checking for $ac_word" >&5
1625 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
1631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1633 for ac_dir in $ac_dummy; do
1634 test -z "$ac_dir" && ac_dir=.
1635 if test -f $ac_dir/$ac_word; then
1644 if test -n "$CC"; then
1645 echo "$ac_t""$CC" 1>&6
1647 echo "$ac_t""no" 1>&6
1652 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1655 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1656 echo "configure:1657: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1660 ac_cpp='$CPP $CPPFLAGS'
1661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1663 cross_compiling=$ac_cv_prog_cc_cross
1665 cat > conftest.$ac_ext << EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1672 if { (eval echo configure:1673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1673 ac_cv_prog_cc_works=yes
1674 # If we can't run a trivial program, we are probably using a cross compiler.
1675 if (./conftest; exit) 2>/dev/null; then
1676 ac_cv_prog_cc_cross=no
1678 ac_cv_prog_cc_cross=yes
1681 echo "configure: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1683 ac_cv_prog_cc_works=no
1687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1688 ac_cpp='$CPP $CPPFLAGS'
1689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1691 cross_compiling=$ac_cv_prog_cc_cross
1693 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1694 if test $ac_cv_prog_cc_works = no; then
1695 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1697 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1698 echo "configure:1699: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1699 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1700 cross_compiling=$ac_cv_prog_cc_cross
1702 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1703 echo "configure:1704: checking whether we are using GNU C" >&5
1704 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1707 cat > conftest.c <<EOF
1712 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1719 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1721 if test $ac_cv_prog_gcc = yes; then
1727 ac_test_CFLAGS="${CFLAGS+set}"
1728 ac_save_CFLAGS="$CFLAGS"
1730 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1731 echo "configure:1732: checking whether ${CC-cc} accepts -g" >&5
1732 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 echo 'void f(){}' > conftest.c
1736 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1745 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1746 if test "$ac_test_CFLAGS" = set; then
1747 CFLAGS="$ac_save_CFLAGS"
1748 elif test $ac_cv_prog_cc_g = yes; then
1749 if test "$GCC" = yes; then
1755 if test "$GCC" = yes; then
1762 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1763 if test "${with_gnu_ld+set}" = set; then
1764 withval="$with_gnu_ld"
1765 test "$withval" = no || with_gnu_ld=yes
1771 if test "$ac_cv_prog_gcc" = yes; then
1772 # Check if gcc -print-prog-name=ld gives a path.
1773 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1774 echo "configure:1775: checking for ld used by GCC" >&5
1775 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1777 # Accept absolute paths.
1778 [\\/]* | [A-Za-z]:[\\/]*)
1779 re_direlt='/[^/][^/]*/\.\./'
1780 # Canonicalize the path of ld
1781 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1782 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1783 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1785 test -z "$LD" && LD="$ac_prog"
1788 # If it fails, then pretend we aren't using GCC.
1792 # If it is relative, then search for the first ld in PATH.
1796 elif test "$with_gnu_ld" = yes; then
1797 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1798 echo "configure:1799: checking for GNU ld" >&5
1800 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1801 echo "configure:1802: checking for non-GNU ld" >&5
1803 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 if test -z "$LD"; then
1807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1808 for ac_dir in $PATH; do
1809 test -z "$ac_dir" && ac_dir=.
1810 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1811 ac_cv_path_LD="$ac_dir/$ac_prog"
1812 # Check to see if the program is GNU ld. I'd rather use --version,
1813 # but apparently some GNU ld's only accept -v.
1814 # Break only if it was the GNU/non-GNU ld that we prefer.
1815 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1816 test "$with_gnu_ld" != no && break
1818 test "$with_gnu_ld" != yes && break
1824 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1829 if test -n "$LD"; then
1830 echo "$ac_t""$LD" 1>&6
1832 echo "$ac_t""no" 1>&6
1834 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1835 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1836 echo "configure:1837: checking if the linker ($LD) is GNU ld" >&5
1837 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1841 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1842 ac_cv_prog_gnu_ld=yes
1844 ac_cv_prog_gnu_ld=no
1848 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1851 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1852 echo "configure:1853: checking for BSD-compatible nm" >&5
1853 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1856 if test -n "$NM"; then
1857 # Let the user override the test.
1860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1861 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1862 test -z "$ac_dir" && ac_dir=.
1863 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1864 # Check to see if the nm accepts a BSD-compat flag.
1865 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1866 # nm: unknown option "B" ignored
1867 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1868 ac_cv_path_NM="$ac_dir/nm -B"
1870 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1871 ac_cv_path_NM="$ac_dir/nm -p"
1874 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1875 continue # so that we can try to find one that supports BSD flags
1880 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1885 echo "$ac_t""$NM" 1>&6
1887 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1888 echo "configure:1889: checking whether ln -s works" >&5
1889 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1893 if ln -s X conftestdata 2>/dev/null
1896 ac_cv_prog_LN_S="ln -s"
1901 LN_S="$ac_cv_prog_LN_S"
1902 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1903 echo "$ac_t""yes" 1>&6
1905 echo "$ac_t""no" 1>&6
1909 # Check for any special flags to pass to ltconfig.
1910 libtool_flags="--cache-file=$cache_file"
1911 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1912 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1913 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1914 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1915 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1917 libtool_flags="$libtool_flags --enable-win32-dll"
1918 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1919 if test "${enable_libtool_lock+set}" = set; then
1920 enableval="$enable_libtool_lock"
1924 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1925 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1927 # Some flags need to be propagated to the compiler or linker for good
1931 # Find out which ABI we are using.
1932 echo '#line 1933 "configure"' > conftest.$ac_ext
1933 if { (eval echo configure:1934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1934 case "`/usr/bin/file conftest.o`" in
1950 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1951 SAVE_CFLAGS="$CFLAGS"
1952 CFLAGS="$CFLAGS -belf"
1953 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1954 echo "configure:1955: checking whether the C compiler needs -belf" >&5
1955 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1958 cat > conftest.$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1966 if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1968 lt_cv_cc_needs_belf=yes
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1973 lt_cv_cc_needs_belf=no
1978 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1979 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1980 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1981 CFLAGS="$SAVE_CFLAGS"
1985 *-*-cygwin* | *-*-mingw*)
1986 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1987 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1989 echo "configure:1990: checking for $ac_word" >&5
1990 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1993 if test -n "$DLLTOOL"; then
1994 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1998 for ac_dir in $ac_dummy; do
1999 test -z "$ac_dir" && ac_dir=.
2000 if test -f $ac_dir/$ac_word; then
2001 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2008 DLLTOOL="$ac_cv_prog_DLLTOOL"
2009 if test -n "$DLLTOOL"; then
2010 echo "$ac_t""$DLLTOOL" 1>&6
2012 echo "$ac_t""no" 1>&6
2016 if test -z "$ac_cv_prog_DLLTOOL"; then
2017 if test -n "$ac_tool_prefix"; then
2018 # Extract the first word of "dlltool", so it can be a program name with args.
2019 set dummy dlltool; ac_word=$2
2020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2021 echo "configure:2022: checking for $ac_word" >&5
2022 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2025 if test -n "$DLLTOOL"; then
2026 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2030 for ac_dir in $ac_dummy; do
2031 test -z "$ac_dir" && ac_dir=.
2032 if test -f $ac_dir/$ac_word; then
2033 ac_cv_prog_DLLTOOL="dlltool"
2038 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2041 DLLTOOL="$ac_cv_prog_DLLTOOL"
2042 if test -n "$DLLTOOL"; then
2043 echo "$ac_t""$DLLTOOL" 1>&6
2045 echo "$ac_t""no" 1>&6
2053 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2054 set dummy ${ac_tool_prefix}as; ac_word=$2
2055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2056 echo "configure:2057: checking for $ac_word" >&5
2057 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 if test -n "$AS"; then
2061 ac_cv_prog_AS="$AS" # Let the user override the test.
2063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2065 for ac_dir in $ac_dummy; do
2066 test -z "$ac_dir" && ac_dir=.
2067 if test -f $ac_dir/$ac_word; then
2068 ac_cv_prog_AS="${ac_tool_prefix}as"
2076 if test -n "$AS"; then
2077 echo "$ac_t""$AS" 1>&6
2079 echo "$ac_t""no" 1>&6
2083 if test -z "$ac_cv_prog_AS"; then
2084 if test -n "$ac_tool_prefix"; then
2085 # Extract the first word of "as", so it can be a program name with args.
2086 set dummy as; ac_word=$2
2087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2088 echo "configure:2089: checking for $ac_word" >&5
2089 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 if test -n "$AS"; then
2093 ac_cv_prog_AS="$AS" # Let the user override the test.
2095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2097 for ac_dir in $ac_dummy; do
2098 test -z "$ac_dir" && ac_dir=.
2099 if test -f $ac_dir/$ac_word; then
2105 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2109 if test -n "$AS"; then
2110 echo "$ac_t""$AS" 1>&6
2112 echo "$ac_t""no" 1>&6
2120 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2121 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_word" >&5
2124 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 if test -n "$OBJDUMP"; then
2128 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2132 for ac_dir in $ac_dummy; do
2133 test -z "$ac_dir" && ac_dir=.
2134 if test -f $ac_dir/$ac_word; then
2135 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2142 OBJDUMP="$ac_cv_prog_OBJDUMP"
2143 if test -n "$OBJDUMP"; then
2144 echo "$ac_t""$OBJDUMP" 1>&6
2146 echo "$ac_t""no" 1>&6
2150 if test -z "$ac_cv_prog_OBJDUMP"; then
2151 if test -n "$ac_tool_prefix"; then
2152 # Extract the first word of "objdump", so it can be a program name with args.
2153 set dummy objdump; ac_word=$2
2154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2155 echo "configure:2156: checking for $ac_word" >&5
2156 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 if test -n "$OBJDUMP"; then
2160 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2164 for ac_dir in $ac_dummy; do
2165 test -z "$ac_dir" && ac_dir=.
2166 if test -f $ac_dir/$ac_word; then
2167 ac_cv_prog_OBJDUMP="objdump"
2172 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2175 OBJDUMP="$ac_cv_prog_OBJDUMP"
2176 if test -n "$OBJDUMP"; then
2177 echo "$ac_t""$OBJDUMP" 1>&6
2179 echo "$ac_t""no" 1>&6
2192 # Save cache, so that ltconfig can load it
2193 cat > confcache <<\EOF
2194 # This file is a shell script that caches the results of configure
2195 # tests run on this system so they can be shared between configure
2196 # scripts and configure runs. It is not useful on other systems.
2197 # If it contains results you don't want to keep, you may remove or edit it.
2199 # By default, configure uses ./config.cache as the cache file,
2200 # creating it if it does not exist already. You can give configure
2201 # the --cache-file=FILE option to use a different cache file; that is
2202 # what configure does when it calls configure scripts in
2203 # subdirectories, so they share the cache.
2204 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2205 # config.status only pays attention to the cache file if you give it the
2206 # --recheck option to rerun configure.
2209 # The following way of writing the cache mishandles newlines in values,
2210 # but we know of no workaround that is simple, portable, and efficient.
2211 # So, don't put newlines in cache variables' values.
2212 # Ultrix sh set writes to stderr and can't be redirected directly,
2213 # and sets the high bit in the cache file unless we assign to the vars.
2215 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2217 # `set' does not quote correctly, so add quotes (double-quote substitution
2218 # turns \\\\ into \\, and sed turns \\ into \).
2220 -e "s/'/'\\\\''/g" \
2221 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2224 # `set' quotes correctly as required by POSIX, so do not add quotes.
2225 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2228 if cmp -s $cache_file confcache; then
2231 if test -w $cache_file; then
2232 echo "updating cache $cache_file"
2233 cat confcache > $cache_file
2235 echo "not updating unwritable cache $cache_file"
2241 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2242 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2243 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2244 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2245 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2246 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2247 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2248 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2250 # Reload cache, that may have been modified by ltconfig
2251 if test -r "$cache_file"; then
2252 echo "loading cache $cache_file"
2255 echo "creating cache $cache_file"
2260 # This can be used to rebuild libtool when needed
2261 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2263 # Always use our own libtool.
2264 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2266 # Redirect the config.log output again, so that the ltconfig log is not
2267 # clobbered by the next message.
2268 exec 5>>./config.log
2272 subdirs="machine sys"
2276 if test -n "${sys_dir}"; then
2283 if test -n "${posix_dir}"; then
2284 if test "${use_libtool}" = "yes"; then
2285 LIBC_POSIX_LIB=${posix_dir}/lib${posix_dir}.${aext}
2287 LIBC_POSIX_LIB=${posix_dir}/lib.${aext}
2293 if test x${posix_dir} != x; then
2294 HAVE_POSIX_DIR_TRUE=
2295 HAVE_POSIX_DIR_FALSE='#'
2297 HAVE_POSIX_DIR_TRUE='#'
2298 HAVE_POSIX_DIR_FALSE=
2303 if test -n "${signal_dir}"; then
2304 if test "${use_libtool}" = "yes"; then
2305 LIBC_SIGNAL_LIB=${signal_dir}/lib${signal_dir}.${aext}
2307 LIBC_SIGNAL_LIB=${signal_dir}/lib.${aext}
2309 LIBC_SIGNAL_DEF=${signal_dir}/stmp-def
2315 if test x${signal_dir} != x; then
2316 HAVE_SIGNAL_DIR_TRUE=
2317 HAVE_SIGNAL_DIR_FALSE='#'
2319 HAVE_SIGNAL_DIR_TRUE='#'
2320 HAVE_SIGNAL_DIR_FALSE=
2324 if test -n "${syscall_dir}"; then
2325 if test "${use_libtool}" = "yes"; then
2326 LIBC_SYSCALL_LIB=${syscall_dir}/lib${syscall_dir}.${aext}
2328 LIBC_SYSCALL_LIB=${syscall_dir}/lib.${aext}
2334 if test x${syscall_dir} != x; then
2335 HAVE_SYSCALL_DIR_TRUE=
2336 HAVE_SYSCALL_DIR_FALSE='#'
2338 HAVE_SYSCALL_DIR_TRUE='#'
2339 HAVE_SYSCALL_DIR_FALSE=
2343 if test -n "${unix_dir}"; then
2344 if test "${use_libtool}" = "yes"; then
2345 LIBC_UNIX_LIB=${unix_dir}/lib${unix_dir}.${aext}
2347 LIBC_UNIX_LIB=${unix_dir}/lib.${aext}
2353 if test x${unix_dir} != x; then
2355 HAVE_UNIX_DIR_FALSE='#'
2357 HAVE_UNIX_DIR_TRUE='#'
2358 HAVE_UNIX_DIR_FALSE=
2363 if test -n "${sys_dir}"; then
2364 if test "${use_libtool}" = "yes"; then
2365 LIBC_SYS_LIB=sys/${sys_dir}/lib${sys_dir}.${aext}
2367 LIBC_SYS_LIB=sys/lib.${aext}
2374 if test -n "${machine_dir}"; then
2375 if test "${use_libtool}" = "yes"; then
2376 LIBC_MACHINE_LIB=machine/${machine_dir}/lib${machine_dir}.${aext}
2378 LIBC_MACHINE_LIB=machine/lib.${aext}
2385 cat > confcache <<\EOF
2386 # This file is a shell script that caches the results of configure
2387 # tests run on this system so they can be shared between configure
2388 # scripts and configure runs. It is not useful on other systems.
2389 # If it contains results you don't want to keep, you may remove or edit it.
2391 # By default, configure uses ./config.cache as the cache file,
2392 # creating it if it does not exist already. You can give configure
2393 # the --cache-file=FILE option to use a different cache file; that is
2394 # what configure does when it calls configure scripts in
2395 # subdirectories, so they share the cache.
2396 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2397 # config.status only pays attention to the cache file if you give it the
2398 # --recheck option to rerun configure.
2401 # The following way of writing the cache mishandles newlines in values,
2402 # but we know of no workaround that is simple, portable, and efficient.
2403 # So, don't put newlines in cache variables' values.
2404 # Ultrix sh set writes to stderr and can't be redirected directly,
2405 # and sets the high bit in the cache file unless we assign to the vars.
2407 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2409 # `set' does not quote correctly, so add quotes (double-quote substitution
2410 # turns \\\\ into \\, and sed turns \\ into \).
2412 -e "s/'/'\\\\''/g" \
2413 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2416 # `set' quotes correctly as required by POSIX, so do not add quotes.
2417 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2420 if cmp -s $cache_file confcache; then
2423 if test -w $cache_file; then
2424 echo "updating cache $cache_file"
2425 cat confcache > $cache_file
2427 echo "not updating unwritable cache $cache_file"
2432 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2434 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2435 # Let make expand exec_prefix.
2436 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2438 # Any assignment to VPATH causes Sun make to only execute
2439 # the first set of double-colon rules, so remove it if not needed.
2440 # If there is a colon in the path, we need to keep it.
2441 if test "x$srcdir" = x.; then
2442 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2445 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2447 # Transform confdefs.h into DEFS.
2448 # Protect against shell expansion while executing Makefile rules.
2449 # Protect against Makefile macro expansion.
2450 cat > conftest.defs <<\EOF
2451 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2452 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2457 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2461 # Without the "./", some shells look in PATH for config.status.
2462 : ${CONFIG_STATUS=./config.status}
2464 echo creating $CONFIG_STATUS
2465 rm -f $CONFIG_STATUS
2466 cat > $CONFIG_STATUS <<EOF
2468 # Generated automatically by configure.
2469 # Run this file to recreate the current configuration.
2470 # This directory was configured as follows,
2471 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2473 # $0 $ac_configure_args
2475 # Compiler output produced by configure, useful for debugging
2476 # configure, is in ./config.log if it exists.
2478 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2481 case "\$ac_option" in
2482 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2483 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2484 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2485 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2486 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2488 -help | --help | --hel | --he | --h)
2489 echo "\$ac_cs_usage"; exit 0 ;;
2490 *) echo "\$ac_cs_usage"; exit 1 ;;
2494 ac_given_srcdir=$srcdir
2495 ac_given_INSTALL="$INSTALL"
2497 trap 'rm -fr `echo "Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile stdio/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2499 cat >> $CONFIG_STATUS <<EOF
2501 # Protect against being on the right side of a sed subst in config.status.
2502 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2503 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2507 s%@CFLAGS@%$CFLAGS%g
2508 s%@CPPFLAGS@%$CPPFLAGS%g
2509 s%@CXXFLAGS@%$CXXFLAGS%g
2510 s%@FFLAGS@%$FFLAGS%g
2512 s%@LDFLAGS@%$LDFLAGS%g
2514 s%@exec_prefix@%$exec_prefix%g
2515 s%@prefix@%$prefix%g
2516 s%@program_transform_name@%$program_transform_name%g
2517 s%@bindir@%$bindir%g
2518 s%@sbindir@%$sbindir%g
2519 s%@libexecdir@%$libexecdir%g
2520 s%@datadir@%$datadir%g
2521 s%@sysconfdir@%$sysconfdir%g
2522 s%@sharedstatedir@%$sharedstatedir%g
2523 s%@localstatedir@%$localstatedir%g
2524 s%@libdir@%$libdir%g
2525 s%@includedir@%$includedir%g
2526 s%@oldincludedir@%$oldincludedir%g
2527 s%@infodir@%$infodir%g
2528 s%@mandir@%$mandir%g
2529 s%@newlib_basedir@%$newlib_basedir%g
2531 s%@host_alias@%$host_alias%g
2532 s%@host_cpu@%$host_cpu%g
2533 s%@host_vendor@%$host_vendor%g
2534 s%@host_os@%$host_os%g
2535 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2536 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2537 s%@INSTALL_DATA@%$INSTALL_DATA%g
2538 s%@PACKAGE@%$PACKAGE%g
2539 s%@VERSION@%$VERSION%g
2540 s%@ACLOCAL@%$ACLOCAL%g
2541 s%@AUTOCONF@%$AUTOCONF%g
2542 s%@AUTOMAKE@%$AUTOMAKE%g
2543 s%@AUTOHEADER@%$AUTOHEADER%g
2544 s%@MAKEINFO@%$MAKEINFO%g
2545 s%@SET_MAKE@%$SET_MAKE%g
2548 s%@build_alias@%$build_alias%g
2549 s%@build_cpu@%$build_cpu%g
2550 s%@build_vendor@%$build_vendor%g
2551 s%@build_os@%$build_os%g
2554 s%@RANLIB@%$RANLIB%g
2555 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2556 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2558 s%@EXEEXT@%$EXEEXT%g
2559 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
2560 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
2561 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
2564 s%@libm_machine_dir@%$libm_machine_dir%g
2565 s%@machine_dir@%$machine_dir%g
2566 s%@sys_dir@%$sys_dir%g
2568 s%@DLLTOOL@%$DLLTOOL%g
2569 s%@OBJDUMP@%$OBJDUMP%g
2570 s%@LIBTOOL@%$LIBTOOL%g
2571 s%@subdirs@%$subdirs%g
2573 s%@LIBC_POSIX_LIB@%$LIBC_POSIX_LIB%g
2574 s%@HAVE_POSIX_DIR_TRUE@%$HAVE_POSIX_DIR_TRUE%g
2575 s%@HAVE_POSIX_DIR_FALSE@%$HAVE_POSIX_DIR_FALSE%g
2576 s%@LIBC_SIGNAL_LIB@%$LIBC_SIGNAL_LIB%g
2577 s%@LIBC_SIGNAL_DEF@%$LIBC_SIGNAL_DEF%g
2578 s%@HAVE_SIGNAL_DIR_TRUE@%$HAVE_SIGNAL_DIR_TRUE%g
2579 s%@HAVE_SIGNAL_DIR_FALSE@%$HAVE_SIGNAL_DIR_FALSE%g
2580 s%@LIBC_SYSCALL_LIB@%$LIBC_SYSCALL_LIB%g
2581 s%@HAVE_SYSCALL_DIR_TRUE@%$HAVE_SYSCALL_DIR_TRUE%g
2582 s%@HAVE_SYSCALL_DIR_FALSE@%$HAVE_SYSCALL_DIR_FALSE%g
2583 s%@LIBC_UNIX_LIB@%$LIBC_UNIX_LIB%g
2584 s%@HAVE_UNIX_DIR_TRUE@%$HAVE_UNIX_DIR_TRUE%g
2585 s%@HAVE_UNIX_DIR_FALSE@%$HAVE_UNIX_DIR_FALSE%g
2586 s%@LIBC_SYS_LIB@%$LIBC_SYS_LIB%g
2587 s%@LIBC_MACHINE_LIB@%$LIBC_MACHINE_LIB%g
2592 cat >> $CONFIG_STATUS <<\EOF
2594 # Split the substitutions into bite-sized pieces for seds with
2595 # small command number limits, like on Digital OSF/1 and HP-UX.
2596 ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
2597 ac_file=1 # Number of current file.
2598 ac_beg=1 # First line for current file.
2599 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2602 while $ac_more_lines; do
2603 if test $ac_beg -gt 1; then
2604 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2606 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2608 if test ! -s conftest.s$ac_file; then
2610 rm -f conftest.s$ac_file
2612 if test -z "$ac_sed_cmds"; then
2613 ac_sed_cmds="sed -f conftest.s$ac_file"
2615 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2617 ac_file=`expr $ac_file + 1`
2619 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2622 if test -z "$ac_sed_cmds"; then
2627 cat >> $CONFIG_STATUS <<EOF
2629 CONFIG_FILES=\${CONFIG_FILES-"Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile stdio/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile"}
2631 cat >> $CONFIG_STATUS <<\EOF
2632 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2633 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2635 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2636 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2637 *) ac_file_in="${ac_file}.in" ;;
2640 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2642 # Remove last slash and all that follows it. Not all systems have dirname.
2643 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2644 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2645 # The file is in a subdirectory.
2646 test ! -d "$ac_dir" && mkdir "$ac_dir"
2647 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2648 # A "../" for each directory in $ac_dir_suffix.
2649 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2651 ac_dir_suffix= ac_dots=
2654 case "$ac_given_srcdir" in
2656 if test -z "$ac_dots"; then top_srcdir=.
2657 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2658 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2660 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2661 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2664 case "$ac_given_INSTALL" in
2665 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2666 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2669 echo creating "$ac_file"
2671 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2673 *Makefile*) ac_comsub="1i\\
2674 # $configure_input" ;;
2678 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2680 s%@configure_input@%$configure_input%g
2681 s%@srcdir@%$srcdir%g
2682 s%@top_srcdir@%$top_srcdir%g
2683 s%@INSTALL@%$INSTALL%g
2684 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2689 cat >> $CONFIG_STATUS <<EOF
2692 cat >> $CONFIG_STATUS <<\EOF
2696 chmod +x $CONFIG_STATUS
2697 rm -fr confdefs* $ac_clean_files
2698 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2700 if test "$no_recursion" != yes; then
2702 # Remove --cache-file and --srcdir arguments so they do not pile up.
2703 ac_sub_configure_args=
2705 for ac_arg in $ac_configure_args; do
2706 if test -n "$ac_prev"; then
2711 -cache-file | --cache-file | --cache-fil | --cache-fi \
2712 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2713 ac_prev=cache_file ;;
2714 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2715 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2721 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2725 for ac_config_dir in machine sys; do
2727 # Do not complain, so a configure script can configure whichever
2728 # parts of a large source tree are present.
2729 if test ! -d $srcdir/$ac_config_dir; then
2733 echo configuring in $ac_config_dir
2738 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2740 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2748 # A "../" for each directory in /$ac_config_dir.
2749 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2752 .) # No --srcdir option. We are building in place.
2753 ac_sub_srcdir=$srcdir ;;
2754 /*) # Absolute path.
2755 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2757 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2760 # Check for guested configure; otherwise get Cygnus style configure.
2761 if test -f $ac_sub_srcdir/configure; then
2762 ac_sub_configure=$ac_sub_srcdir/configure
2763 elif test -f $ac_sub_srcdir/configure.in; then
2764 ac_sub_configure=$ac_configure
2766 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2770 # The recursion is here.
2771 if test -n "$ac_sub_configure"; then
2773 # Make the cache file name correct relative to the subdirectory.
2774 case "$cache_file" in
2775 /*) ac_sub_cache_file=$cache_file ;;
2777 ac_sub_cache_file="$ac_dots$cache_file" ;;
2779 case "$ac_given_INSTALL" in
2780 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2781 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2784 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2785 # The eval makes quoting arguments work.
2786 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2789 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }