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-newlib-mb enable multibyte support"
21 --enable-maintainer-mode enable make rules and dependencies not useful
22 (and sometimes confusing) to the casual installer"
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
28 cache_file=./config.cache
37 program_transform_name=s,x,x,
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
59 # Initialize some other variables.
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
91 -build | --build | --buil | --bui | --bu)
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107 datadir="$ac_optarg" ;;
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --site-file=FILE use FILE as the site file
156 --version print the version of autoconf that created configure
157 Directory and file names:
158 --prefix=PREFIX install architecture-independent files in PREFIX
160 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
162 --bindir=DIR user executables in DIR [EPREFIX/bin]
163 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
164 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
165 --datadir=DIR read-only architecture-independent data in DIR
167 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
168 --sharedstatedir=DIR modifiable architecture-independent data in DIR
170 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
171 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
172 --includedir=DIR C header files in DIR [PREFIX/include]
173 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
174 --infodir=DIR info documentation in DIR [PREFIX/info]
175 --mandir=DIR man documentation in DIR [PREFIX/man]
176 --srcdir=DIR find the sources in DIR [configure dir or ..]
177 --program-prefix=PREFIX prepend PREFIX to installed program names
178 --program-suffix=SUFFIX append SUFFIX to installed program names
179 --program-transform-name=PROGRAM
180 run sed PROGRAM on installed program names
184 --build=BUILD configure for building on BUILD [BUILD=HOST]
185 --host=HOST configure for HOST [guessed]
186 --target=TARGET configure for TARGET [TARGET=HOST]
187 Features and packages:
188 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
189 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
190 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
191 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
192 --x-includes=DIR X include files are in DIR
193 --x-libraries=DIR X library files are in DIR
195 if test -n "$ac_help"; then
196 echo "--enable and --with options recognized:$ac_help"
200 -host | --host | --hos | --ho)
202 -host=* | --host=* | --hos=* | --ho=*)
205 -includedir | --includedir | --includedi | --included | --include \
206 | --includ | --inclu | --incl | --inc)
207 ac_prev=includedir ;;
208 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
209 | --includ=* | --inclu=* | --incl=* | --inc=*)
210 includedir="$ac_optarg" ;;
212 -infodir | --infodir | --infodi | --infod | --info | --inf)
214 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
215 infodir="$ac_optarg" ;;
217 -libdir | --libdir | --libdi | --libd)
219 -libdir=* | --libdir=* | --libdi=* | --libd=*)
220 libdir="$ac_optarg" ;;
222 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
223 | --libexe | --libex | --libe)
224 ac_prev=libexecdir ;;
225 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
226 | --libexe=* | --libex=* | --libe=*)
227 libexecdir="$ac_optarg" ;;
229 -localstatedir | --localstatedir | --localstatedi | --localstated \
230 | --localstate | --localstat | --localsta | --localst \
231 | --locals | --local | --loca | --loc | --lo)
232 ac_prev=localstatedir ;;
233 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
234 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
235 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
236 localstatedir="$ac_optarg" ;;
238 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
241 mandir="$ac_optarg" ;;
244 # Obsolete; use --without-fp.
247 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
252 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
256 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
257 | --oldin | --oldi | --old | --ol | --o)
258 ac_prev=oldincludedir ;;
259 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
260 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
261 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
262 oldincludedir="$ac_optarg" ;;
264 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
267 prefix="$ac_optarg" ;;
269 -program-prefix | --program-prefix | --program-prefi | --program-pref \
270 | --program-pre | --program-pr | --program-p)
271 ac_prev=program_prefix ;;
272 -program-prefix=* | --program-prefix=* | --program-prefi=* \
273 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
274 program_prefix="$ac_optarg" ;;
276 -program-suffix | --program-suffix | --program-suffi | --program-suff \
277 | --program-suf | --program-su | --program-s)
278 ac_prev=program_suffix ;;
279 -program-suffix=* | --program-suffix=* | --program-suffi=* \
280 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
281 program_suffix="$ac_optarg" ;;
283 -program-transform-name | --program-transform-name \
284 | --program-transform-nam | --program-transform-na \
285 | --program-transform-n | --program-transform- \
286 | --program-transform | --program-transfor \
287 | --program-transfo | --program-transf \
288 | --program-trans | --program-tran \
289 | --progr-tra | --program-tr | --program-t)
290 ac_prev=program_transform_name ;;
291 -program-transform-name=* | --program-transform-name=* \
292 | --program-transform-nam=* | --program-transform-na=* \
293 | --program-transform-n=* | --program-transform-=* \
294 | --program-transform=* | --program-transfor=* \
295 | --program-transfo=* | --program-transf=* \
296 | --program-trans=* | --program-tran=* \
297 | --progr-tra=* | --program-tr=* | --program-t=*)
298 program_transform_name="$ac_optarg" ;;
300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
301 | -silent | --silent | --silen | --sile | --sil)
304 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308 sbindir="$ac_optarg" ;;
310 -sharedstatedir | --sharedstatedir | --sharedstatedi \
311 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
312 | --sharedst | --shareds | --shared | --share | --shar \
314 ac_prev=sharedstatedir ;;
315 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
316 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
317 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319 sharedstatedir="$ac_optarg" ;;
321 -site | --site | --sit)
323 -site=* | --site=* | --sit=*)
326 -site-file | --site-file | --site-fil | --site-fi | --site-f)
328 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
329 sitefile="$ac_optarg" ;;
331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334 srcdir="$ac_optarg" ;;
336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337 | --syscon | --sysco | --sysc | --sys | --sy)
338 ac_prev=sysconfdir ;;
339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341 sysconfdir="$ac_optarg" ;;
343 -target | --target | --targe | --targ | --tar | --ta | --t)
345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346 target="$ac_optarg" ;;
348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
351 -version | --version | --versio | --versi | --vers)
352 echo "configure generated by autoconf version 2.13"
356 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* | --without-*)
369 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382 | --x-incl | --x-inc | --x-in | --x-i)
383 ac_prev=x_includes ;;
384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386 x_includes="$ac_optarg" ;;
388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390 ac_prev=x_libraries ;;
391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393 x_libraries="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 | --no-cr | --no-c) ;;
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=cmpsi.c
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$sitefile"; then
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 CONFIG_SITE="$sitefile"
507 for ac_site_file in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
518 echo "creating cache $cache_file"
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='\c' ac_t=
546 for ac_dir in ../../../.. $srcdir/../../../..; do
547 if test -f $ac_dir/install-sh; then
549 ac_install_sh="$ac_aux_dir/install-sh -c"
551 elif test -f $ac_dir/install.sh; then
553 ac_install_sh="$ac_aux_dir/install.sh -c"
557 if test -z "$ac_aux_dir"; then
558 { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
560 ac_config_guess=$ac_aux_dir/config.guess
561 ac_config_sub=$ac_aux_dir/config.sub
562 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
565 # Find a good install program. We prefer a C program (faster),
566 # so one script is as good as another. But avoid the broken or
567 # incompatible versions:
568 # SysV /etc/install, /usr/sbin/install
569 # SunOS /usr/etc/install
572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
575 # ./install, which can be erroneously created by make from ./install.sh.
576 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
577 echo "configure:578: checking for a BSD compatible install" >&5
578 if test -z "$INSTALL"; then
579 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
580 echo $ac_n "(cached) $ac_c" 1>&6
582 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
583 for ac_dir in $PATH; do
584 # Account for people who put trailing slashes in PATH elements.
586 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
588 # OSF1 and SCO ODT 3.0 have their own names for install.
589 # Don't use installbsd from OSF since it installs stuff as root
591 for ac_prog in ginstall scoinst install; do
592 if test -f $ac_dir/$ac_prog; then
593 if test $ac_prog = install &&
594 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
595 # AIX install. It has an incompatible calling convention.
598 ac_cv_path_install="$ac_dir/$ac_prog -c"
609 if test "${ac_cv_path_install+set}" = set; then
610 INSTALL="$ac_cv_path_install"
612 # As a last resort, use the slow shell script. We don't cache a
613 # path for INSTALL within a source directory, because that will
614 # break other packages using the cache if that directory is
615 # removed, or if the path is relative.
616 INSTALL="$ac_install_sh"
619 echo "$ac_t""$INSTALL" 1>&6
621 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
622 # It thinks the first close brace ends the variable substitution.
623 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
625 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
627 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
629 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
630 echo "configure:631: checking whether build environment is sane" >&5
633 echo timestamp > conftestfile
634 # Do `set' in a subshell so we don't clobber the current shell's
635 # arguments. Must try -L first in case configure is actually a
636 # symlink; some systems play weird games with the mod time of symlinks
637 # (eg FreeBSD returns the mod time of the symlink's containing
640 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
641 if test "$*" = "X"; then
643 set X `ls -t $srcdir/configure conftestfile`
645 if test "$*" != "X $srcdir/configure conftestfile" \
646 && test "$*" != "X conftestfile $srcdir/configure"; then
648 # If neither matched, then we have a broken ls. This can happen
649 # if, for instance, CONFIG_SHELL is bash and it inherits a
650 # broken ls alias from the environment. This has actually
651 # happened. Such a system could not be considered "sane".
652 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
653 alias in your environment" 1>&2; exit 1; }
656 test "$2" = conftestfile
662 { echo "configure: error: newly created file is older than distributed files!
663 Check your system clock" 1>&2; exit 1; }
666 echo "$ac_t""yes" 1>&6
667 if test "$program_transform_name" = s,x,x,; then
668 program_transform_name=
670 # Double any \ or $. echo might interpret backslashes.
671 cat <<\EOF_SED > conftestsed
672 s,\\,\\\\,g; s,\$,$$,g
674 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
677 test "$program_prefix" != NONE &&
678 program_transform_name="s,^,${program_prefix},; $program_transform_name"
679 # Use a double $ so make ignores it.
680 test "$program_suffix" != NONE &&
681 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
683 # sed with no file args requires a program.
684 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
686 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
687 echo "configure:688: checking whether ${MAKE-make} sets \${MAKE}" >&5
688 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
689 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
692 cat > conftestmake <<\EOF
694 @echo 'ac_maketemp="${MAKE}"'
696 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
697 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
698 if test -n "$ac_maketemp"; then
699 eval ac_cv_prog_make_${ac_make}_set=yes
701 eval ac_cv_prog_make_${ac_make}_set=no
705 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
706 echo "$ac_t""yes" 1>&6
709 echo "$ac_t""no" 1>&6
710 SET_MAKE="MAKE=${MAKE-make}"
713 if test $host != $build; then
714 ac_tool_prefix=${host_alias}-
719 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
720 echo "configure:721: checking for Cygwin environment" >&5
721 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
724 cat > conftest.$ac_ext <<EOF
725 #line 726 "configure"
726 #include "confdefs.h"
731 #define __CYGWIN__ __CYGWIN32__
736 if { (eval echo configure:737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
740 echo "configure: failed program was:" >&5
741 cat conftest.$ac_ext >&5
749 echo "$ac_t""$ac_cv_cygwin" 1>&6
751 test "$ac_cv_cygwin" = yes && CYGWIN=yes
752 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
753 echo "configure:754: checking for mingw32 environment" >&5
754 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
755 echo $ac_n "(cached) $ac_c" 1>&6
757 cat > conftest.$ac_ext <<EOF
758 #line 759 "configure"
759 #include "confdefs.h"
765 if { (eval echo configure:766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
769 echo "configure: failed program was:" >&5
770 cat conftest.$ac_ext >&5
778 echo "$ac_t""$ac_cv_mingw32" 1>&6
780 test "$ac_cv_mingw32" = yes && MINGW32=yes
782 # Check whether --enable-multilib or --disable-multilib was given.
783 if test "${enable_multilib+set}" = set; then
784 enableval="$enable_multilib"
785 case "${enableval}" in
788 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
794 # Check whether --enable-target-optspace or --disable-target-optspace was given.
795 if test "${enable_target_optspace+set}" = set; then
796 enableval="$enable_target_optspace"
797 case "${enableval}" in
798 yes) target_optspace=yes ;;
799 no) target_optspace=no ;;
800 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
806 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
807 if test "${enable_newlib_mb+set}" = set; then
808 enableval="$enable_newlib_mb"
809 case "${enableval}" in
810 yes) newlib_mb=yes ;;
812 *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
819 test -z "${with_target_subdir}" && with_target_subdir=.
821 if test "${srcdir}" = "."; then
822 if test "${with_target_subdir}" != "."; then
823 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
825 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
828 newlib_basedir="${srcdir}/../../.."
833 # Make sure we can run config.sub.
834 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
835 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
838 echo $ac_n "checking host system type""... $ac_c" 1>&6
839 echo "configure:840: checking host system type" >&5
842 case "$host_alias" in
846 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
847 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
849 *) host_alias=$nonopt ;;
853 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
854 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
855 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
856 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
857 echo "$ac_t""$host" 1>&6
865 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
866 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
868 cat >> confdefs.h <<EOF
869 #define PACKAGE "$PACKAGE"
872 cat >> confdefs.h <<EOF
873 #define VERSION "$VERSION"
878 missing_dir=`cd $ac_aux_dir && pwd`
879 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
880 echo "configure:881: checking for working aclocal" >&5
881 # Run test in a subshell; some versions of sh will print an error if
882 # an executable is not found, even if stderr is redirected.
883 # Redirect stdin to placate older versions of autoconf. Sigh.
884 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
886 echo "$ac_t""found" 1>&6
888 ACLOCAL="$missing_dir/missing aclocal"
889 echo "$ac_t""missing" 1>&6
892 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
893 echo "configure:894: checking for working autoconf" >&5
894 # Run test in a subshell; some versions of sh will print an error if
895 # an executable is not found, even if stderr is redirected.
896 # Redirect stdin to placate older versions of autoconf. Sigh.
897 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
899 echo "$ac_t""found" 1>&6
901 AUTOCONF="$missing_dir/missing autoconf"
902 echo "$ac_t""missing" 1>&6
905 echo $ac_n "checking for working automake""... $ac_c" 1>&6
906 echo "configure:907: checking for working automake" >&5
907 # Run test in a subshell; some versions of sh will print an error if
908 # an executable is not found, even if stderr is redirected.
909 # Redirect stdin to placate older versions of autoconf. Sigh.
910 if (automake --version) < /dev/null > /dev/null 2>&1; then
912 echo "$ac_t""found" 1>&6
914 AUTOMAKE="$missing_dir/missing automake"
915 echo "$ac_t""missing" 1>&6
918 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
919 echo "configure:920: checking for working autoheader" >&5
920 # Run test in a subshell; some versions of sh will print an error if
921 # an executable is not found, even if stderr is redirected.
922 # Redirect stdin to placate older versions of autoconf. Sigh.
923 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
924 AUTOHEADER=autoheader
925 echo "$ac_t""found" 1>&6
927 AUTOHEADER="$missing_dir/missing autoheader"
928 echo "$ac_t""missing" 1>&6
931 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
932 echo "configure:933: checking for working makeinfo" >&5
933 # Run test in a subshell; some versions of sh will print an error if
934 # an executable is not found, even if stderr is redirected.
935 # Redirect stdin to placate older versions of autoconf. Sigh.
936 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
938 echo "$ac_t""found" 1>&6
940 MAKEINFO="$missing_dir/missing makeinfo"
941 echo "$ac_t""missing" 1>&6
946 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
947 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
948 # are probably using a cross compiler, which will not be able to fully
949 # link an executable. This should really be fixed in autoconf
954 # Extract the first word of "gcc", so it can be a program name with args.
955 set dummy gcc; ac_word=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 if test -n "$CC"; then
962 ac_cv_prog_CC="$CC" # Let the user override the test.
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
966 for ac_dir in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
977 if test -n "$CC"; then
978 echo "$ac_t""$CC" 1>&6
980 echo "$ac_t""no" 1>&6
983 if test -z "$CC"; then
984 # Extract the first word of "cc", so it can be a program name with args.
985 set dummy cc; ac_word=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 if test -n "$CC"; then
992 ac_cv_prog_CC="$CC" # Let the user override the test.
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
997 for ac_dir in $ac_dummy; do
998 test -z "$ac_dir" && ac_dir=.
999 if test -f $ac_dir/$ac_word; then
1000 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1001 ac_prog_rejected=yes
1009 if test $ac_prog_rejected = yes; then
1010 # We found a bogon in the path, so make sure we never use it.
1011 set dummy $ac_cv_prog_CC
1013 if test $# -gt 0; then
1014 # We chose a different compiler from the bogus one.
1015 # However, it has the same basename, so the bogon will be chosen
1016 # first if we set CC to just the basename; use the full file name.
1018 set dummy "$ac_dir/$ac_word" "$@"
1026 if test -n "$CC"; then
1027 echo "$ac_t""$CC" 1>&6
1029 echo "$ac_t""no" 1>&6
1032 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1035 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1036 echo "configure:1037: checking whether we are using GNU C" >&5
1037 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1040 cat > conftest.c <<EOF
1045 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1052 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1054 if test $ac_cv_prog_gcc = yes; then
1056 ac_test_CFLAGS="${CFLAGS+set}"
1057 ac_save_CFLAGS="$CFLAGS"
1059 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1060 echo "configure:1061: checking whether ${CC-cc} accepts -g" >&5
1061 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1064 echo 'void f(){}' > conftest.c
1065 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1074 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1075 if test "$ac_test_CFLAGS" = set; then
1076 CFLAGS="$ac_save_CFLAGS"
1077 elif test $ac_cv_prog_cc_g = yes; then
1084 test "${CFLAGS+set}" = set || CFLAGS="-g"
1088 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1089 # run it explicitly here, it will be run implicitly before
1090 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1091 # be run before AC_CANONICAL_HOST.
1092 echo $ac_n "checking build system type""... $ac_c" 1>&6
1093 echo "configure:1094: checking build system type" >&5
1096 case "$build_alias" in
1099 NONE) build_alias=$host_alias ;;
1100 *) build_alias=$nonopt ;;
1104 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1105 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1106 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1107 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1108 echo "$ac_t""$build" 1>&6
1111 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1112 set dummy ${ac_tool_prefix}as; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 if test -n "$AS"; then
1119 ac_cv_prog_AS="$AS" # Let the user override the test.
1121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1123 for ac_dir in $ac_dummy; do
1124 test -z "$ac_dir" && ac_dir=.
1125 if test -f $ac_dir/$ac_word; then
1126 ac_cv_prog_AS="${ac_tool_prefix}as"
1131 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1135 if test -n "$AS"; then
1136 echo "$ac_t""$AS" 1>&6
1138 echo "$ac_t""no" 1>&6
1143 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1144 set dummy ${ac_tool_prefix}ar; ac_word=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 if test -n "$AR"; then
1151 ac_cv_prog_AR="$AR" # Let the user override the test.
1153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1155 for ac_dir in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir=.
1157 if test -f $ac_dir/$ac_word; then
1158 ac_cv_prog_AR="${ac_tool_prefix}ar"
1163 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1167 if test -n "$AR"; then
1168 echo "$ac_t""$AR" 1>&6
1170 echo "$ac_t""no" 1>&6
1175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1176 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1178 echo "configure:1179: checking for $ac_word" >&5
1179 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1182 if test -n "$RANLIB"; then
1183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1187 for ac_dir in $ac_dummy; do
1188 test -z "$ac_dir" && ac_dir=.
1189 if test -f $ac_dir/$ac_word; then
1190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1197 RANLIB="$ac_cv_prog_RANLIB"
1198 if test -n "$RANLIB"; then
1199 echo "$ac_t""$RANLIB" 1>&6
1201 echo "$ac_t""no" 1>&6
1205 if test -z "$ac_cv_prog_RANLIB"; then
1206 if test -n "$ac_tool_prefix"; then
1207 # Extract the first word of "ranlib", so it can be a program name with args.
1208 set dummy ranlib; ac_word=$2
1209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1210 echo "configure:1211: checking for $ac_word" >&5
1211 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 if test -n "$RANLIB"; then
1215 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1219 for ac_dir in $ac_dummy; do
1220 test -z "$ac_dir" && ac_dir=.
1221 if test -f $ac_dir/$ac_word; then
1222 ac_cv_prog_RANLIB="ranlib"
1227 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1230 RANLIB="$ac_cv_prog_RANLIB"
1231 if test -n "$RANLIB"; then
1232 echo "$ac_t""$RANLIB" 1>&6
1234 echo "$ac_t""no" 1>&6
1243 # Find a good install program. We prefer a C program (faster),
1244 # so one script is as good as another. But avoid the broken or
1245 # incompatible versions:
1246 # SysV /etc/install, /usr/sbin/install
1247 # SunOS /usr/etc/install
1248 # IRIX /sbin/install
1250 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1251 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1252 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1253 # ./install, which can be erroneously created by make from ./install.sh.
1254 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1255 echo "configure:1256: checking for a BSD compatible install" >&5
1256 if test -z "$INSTALL"; then
1257 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1261 for ac_dir in $PATH; do
1262 # Account for people who put trailing slashes in PATH elements.
1264 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1266 # OSF1 and SCO ODT 3.0 have their own names for install.
1267 # Don't use installbsd from OSF since it installs stuff as root
1269 for ac_prog in ginstall scoinst install; do
1270 if test -f $ac_dir/$ac_prog; then
1271 if test $ac_prog = install &&
1272 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1273 # AIX install. It has an incompatible calling convention.
1276 ac_cv_path_install="$ac_dir/$ac_prog -c"
1287 if test "${ac_cv_path_install+set}" = set; then
1288 INSTALL="$ac_cv_path_install"
1290 # As a last resort, use the slow shell script. We don't cache a
1291 # path for INSTALL within a source directory, because that will
1292 # break other packages using the cache if that directory is
1293 # removed, or if the path is relative.
1294 INSTALL="$ac_install_sh"
1297 echo "$ac_t""$INSTALL" 1>&6
1299 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1300 # It thinks the first close brace ends the variable substitution.
1301 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1303 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1305 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1308 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1309 echo "configure:1310: checking whether to enable maintainer-specific portions of Makefiles" >&5
1310 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1311 if test "${enable_maintainer_mode+set}" = set; then
1312 enableval="$enable_maintainer_mode"
1313 USE_MAINTAINER_MODE=$enableval
1315 USE_MAINTAINER_MODE=no
1318 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1321 if test $USE_MAINTAINER_MODE = yes; then
1322 MAINTAINER_MODE_TRUE=
1323 MAINTAINER_MODE_FALSE='#'
1325 MAINTAINER_MODE_TRUE='#'
1326 MAINTAINER_MODE_FALSE=
1328 MAINT=$MAINTAINER_MODE_TRUE
1332 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1333 # at least currently, we never actually build a program, so we never
1334 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1335 # fails, because we are probably configuring with a cross compiler
1336 # which can't create executables. So we include AC_EXEEXT to keep
1337 # automake happy, but we don't execute it, since we don't care about
1342 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1343 echo "configure:1344: checking for executable suffix" >&5
1344 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1351 echo 'int main () { return 0; }' > conftest.$ac_ext
1353 if { (eval echo configure:1354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1354 for file in conftest.*; do
1356 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1357 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1361 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1364 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1369 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1370 echo "$ac_t""${ac_cv_exeext}" 1>&6
1375 . ${newlib_basedir}/configure.host
1377 case ${newlib_basedir} in
1378 /* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;;
1379 *) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;;
1382 newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../../../targ-include -I${newlib_flagbasedir}/libc/include"
1385 newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/cygwin/include -I${newlib_flagbasedir}/../winsup/w32api/include"
1389 newlib_cflags="${newlib_cflags} -fno-builtin"
1391 NEWLIB_CFLAGS=${newlib_cflags}
1399 cat > confcache <<\EOF
1400 # This file is a shell script that caches the results of configure
1401 # tests run on this system so they can be shared between configure
1402 # scripts and configure runs. It is not useful on other systems.
1403 # If it contains results you don't want to keep, you may remove or edit it.
1405 # By default, configure uses ./config.cache as the cache file,
1406 # creating it if it does not exist already. You can give configure
1407 # the --cache-file=FILE option to use a different cache file; that is
1408 # what configure does when it calls configure scripts in
1409 # subdirectories, so they share the cache.
1410 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1411 # config.status only pays attention to the cache file if you give it the
1412 # --recheck option to rerun configure.
1415 # The following way of writing the cache mishandles newlines in values,
1416 # but we know of no workaround that is simple, portable, and efficient.
1417 # So, don't put newlines in cache variables' values.
1418 # Ultrix sh set writes to stderr and can't be redirected directly,
1419 # and sets the high bit in the cache file unless we assign to the vars.
1421 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1423 # `set' does not quote correctly, so add quotes (double-quote substitution
1424 # turns \\\\ into \\, and sed turns \\ into \).
1426 -e "s/'/'\\\\''/g" \
1427 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1430 # `set' quotes correctly as required by POSIX, so do not add quotes.
1431 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1434 if cmp -s $cache_file confcache; then
1437 if test -w $cache_file; then
1438 echo "updating cache $cache_file"
1439 cat confcache > $cache_file
1441 echo "not updating unwritable cache $cache_file"
1446 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1448 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1449 # Let make expand exec_prefix.
1450 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1452 # Any assignment to VPATH causes Sun make to only execute
1453 # the first set of double-colon rules, so remove it if not needed.
1454 # If there is a colon in the path, we need to keep it.
1455 if test "x$srcdir" = x.; then
1456 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1459 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1461 # Transform confdefs.h into DEFS.
1462 # Protect against shell expansion while executing Makefile rules.
1463 # Protect against Makefile macro expansion.
1464 cat > conftest.defs <<\EOF
1465 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1466 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1471 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1475 # Without the "./", some shells look in PATH for config.status.
1476 : ${CONFIG_STATUS=./config.status}
1478 echo creating $CONFIG_STATUS
1479 rm -f $CONFIG_STATUS
1480 cat > $CONFIG_STATUS <<EOF
1482 # Generated automatically by configure.
1483 # Run this file to recreate the current configuration.
1484 # This directory was configured as follows,
1485 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1487 # $0 $ac_configure_args
1489 # Compiler output produced by configure, useful for debugging
1490 # configure, is in ./config.log if it exists.
1492 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1495 case "\$ac_option" in
1496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1497 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1498 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1499 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1500 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1502 -help | --help | --hel | --he | --h)
1503 echo "\$ac_cs_usage"; exit 0 ;;
1504 *) echo "\$ac_cs_usage"; exit 1 ;;
1508 ac_given_srcdir=$srcdir
1509 ac_given_INSTALL="$INSTALL"
1511 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1513 cat >> $CONFIG_STATUS <<EOF
1515 # Protect against being on the right side of a sed subst in config.status.
1516 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1517 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1521 s%@CFLAGS@%$CFLAGS%g
1522 s%@CPPFLAGS@%$CPPFLAGS%g
1523 s%@CXXFLAGS@%$CXXFLAGS%g
1524 s%@FFLAGS@%$FFLAGS%g
1526 s%@LDFLAGS@%$LDFLAGS%g
1528 s%@exec_prefix@%$exec_prefix%g
1529 s%@prefix@%$prefix%g
1530 s%@program_transform_name@%$program_transform_name%g
1531 s%@bindir@%$bindir%g
1532 s%@sbindir@%$sbindir%g
1533 s%@libexecdir@%$libexecdir%g
1534 s%@datadir@%$datadir%g
1535 s%@sysconfdir@%$sysconfdir%g
1536 s%@sharedstatedir@%$sharedstatedir%g
1537 s%@localstatedir@%$localstatedir%g
1538 s%@libdir@%$libdir%g
1539 s%@includedir@%$includedir%g
1540 s%@oldincludedir@%$oldincludedir%g
1541 s%@infodir@%$infodir%g
1542 s%@mandir@%$mandir%g
1543 s%@newlib_basedir@%$newlib_basedir%g
1545 s%@host_alias@%$host_alias%g
1546 s%@host_cpu@%$host_cpu%g
1547 s%@host_vendor@%$host_vendor%g
1548 s%@host_os@%$host_os%g
1549 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1550 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1551 s%@INSTALL_DATA@%$INSTALL_DATA%g
1552 s%@PACKAGE@%$PACKAGE%g
1553 s%@VERSION@%$VERSION%g
1554 s%@ACLOCAL@%$ACLOCAL%g
1555 s%@AUTOCONF@%$AUTOCONF%g
1556 s%@AUTOMAKE@%$AUTOMAKE%g
1557 s%@AUTOHEADER@%$AUTOHEADER%g
1558 s%@MAKEINFO@%$MAKEINFO%g
1559 s%@SET_MAKE@%$SET_MAKE%g
1562 s%@build_alias@%$build_alias%g
1563 s%@build_cpu@%$build_cpu%g
1564 s%@build_vendor@%$build_vendor%g
1565 s%@build_os@%$build_os%g
1568 s%@RANLIB@%$RANLIB%g
1569 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1570 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1572 s%@EXEEXT@%$EXEEXT%g
1573 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
1574 s%@machine_dir@%$machine_dir%g
1575 s%@sys_dir@%$sys_dir%g
1580 cat >> $CONFIG_STATUS <<\EOF
1582 # Split the substitutions into bite-sized pieces for seds with
1583 # small command number limits, like on Digital OSF/1 and HP-UX.
1584 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1585 ac_file=1 # Number of current file.
1586 ac_beg=1 # First line for current file.
1587 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1590 while $ac_more_lines; do
1591 if test $ac_beg -gt 1; then
1592 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1594 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1596 if test ! -s conftest.s$ac_file; then
1598 rm -f conftest.s$ac_file
1600 if test -z "$ac_sed_cmds"; then
1601 ac_sed_cmds="sed -f conftest.s$ac_file"
1603 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1605 ac_file=`expr $ac_file + 1`
1607 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1610 if test -z "$ac_sed_cmds"; then
1615 cat >> $CONFIG_STATUS <<EOF
1617 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1619 cat >> $CONFIG_STATUS <<\EOF
1620 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1621 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1623 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1624 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1625 *) ac_file_in="${ac_file}.in" ;;
1628 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1630 # Remove last slash and all that follows it. Not all systems have dirname.
1631 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1632 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1633 # The file is in a subdirectory.
1634 test ! -d "$ac_dir" && mkdir "$ac_dir"
1635 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1636 # A "../" for each directory in $ac_dir_suffix.
1637 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1639 ac_dir_suffix= ac_dots=
1642 case "$ac_given_srcdir" in
1644 if test -z "$ac_dots"; then top_srcdir=.
1645 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1646 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1648 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1649 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1652 case "$ac_given_INSTALL" in
1653 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1654 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1657 echo creating "$ac_file"
1659 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1661 *Makefile*) ac_comsub="1i\\
1662 # $configure_input" ;;
1666 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1668 s%@configure_input@%$configure_input%g
1669 s%@srcdir@%$srcdir%g
1670 s%@top_srcdir@%$top_srcdir%g
1671 s%@INSTALL@%$INSTALL%g
1672 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1677 cat >> $CONFIG_STATUS <<EOF
1680 cat >> $CONFIG_STATUS <<\EOF
1684 chmod +x $CONFIG_STATUS
1685 rm -fr confdefs* $ac_clean_files
1686 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1