3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-multilib build many library versions (default)"
17 --enable-target-optspace optimize for space"
19 --enable-malloc-debugging indicate malloc debugging requested"
21 --enable-newlib-multithread enable support for multiple threads"
23 --enable-newlib-iconv enable iconv library support"
25 --enable-newlib-elix-level supply desired elix library level (1-4)"
27 --disable-newlib-io-float disable printf/scanf family float support"
29 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
31 --enable-maintainer-mode enable make rules and dependencies not useful
32 (and sometimes confusing) to the casual installer"
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
38 cache_file=./config.cache
47 program_transform_name=s,x,x,
55 bindir='${exec_prefix}/bin'
56 sbindir='${exec_prefix}/sbin'
57 libexecdir='${exec_prefix}/libexec'
58 datadir='${prefix}/share'
59 sysconfdir='${prefix}/etc'
60 sharedstatedir='${prefix}/com'
61 localstatedir='${prefix}/var'
62 libdir='${exec_prefix}/lib'
63 includedir='${prefix}/include'
64 oldincludedir='/usr/include'
65 infodir='${prefix}/info'
66 mandir='${prefix}/man'
68 # Initialize some other variables.
71 SHELL=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
100 -build | --build | --buil | --bui | --bu)
102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103 build="$ac_optarg" ;;
105 -cache-file | --cache-file | --cache-fil | --cache-fi \
106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107 ac_prev=cache_file ;;
108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110 cache_file="$ac_optarg" ;;
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116 datadir="$ac_optarg" ;;
118 -disable-* | --disable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* | --enable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142 | --exec | --exe | --ex)
143 ac_prev=exec_prefix ;;
144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146 | --exec=* | --exe=* | --ex=*)
147 exec_prefix="$ac_optarg" ;;
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
153 -help | --help | --hel | --he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host | --host | --hos | --ho)
210 -host=* | --host=* | --hos=* | --ho=*)
213 -includedir | --includedir | --includedi | --included | --include \
214 | --includ | --inclu | --incl | --inc)
215 ac_prev=includedir ;;
216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217 | --includ=* | --inclu=* | --incl=* | --inc=*)
218 includedir="$ac_optarg" ;;
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
225 -libdir | --libdir | --libdi | --libd)
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231 | --libexe | --libex | --libe)
232 ac_prev=libexecdir ;;
233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234 | --libexe=* | --libex=* | --libe=*)
235 libexecdir="$ac_optarg" ;;
237 -localstatedir | --localstatedir | --localstatedi | --localstated \
238 | --localstate | --localstat | --localsta | --localst \
239 | --locals | --local | --loca | --loc | --lo)
240 ac_prev=localstatedir ;;
241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244 localstatedir="$ac_optarg" ;;
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265 | --oldin | --oldi | --old | --ol | --o)
266 ac_prev=oldincludedir ;;
267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270 oldincludedir="$ac_optarg" ;;
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
278 | --program-pre | --program-pr | --program-p)
279 ac_prev=program_prefix ;;
280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282 program_prefix="$ac_optarg" ;;
284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
285 | --program-suf | --program-su | --program-s)
286 ac_prev=program_suffix ;;
287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
299 -program-transform-name=* | --program-transform-name=* \
300 | --program-transform-nam=* | --program-transform-na=* \
301 | --program-transform-n=* | --program-transform-=* \
302 | --program-transform=* | --program-transfor=* \
303 | --program-transfo=* | --program-transf=* \
304 | --program-trans=* | --program-tran=* \
305 | --progr-tra=* | --program-tr=* | --program-t=*)
306 program_transform_name="$ac_optarg" ;;
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316 sbindir="$ac_optarg" ;;
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327 sharedstatedir="$ac_optarg" ;;
329 -site | --site | --sit)
331 -site=* | --site=* | --sit=*)
334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337 srcdir="$ac_optarg" ;;
339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340 | --syscon | --sysco | --sysc | --sys | --sy)
341 ac_prev=sysconfdir ;;
342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344 sysconfdir="$ac_optarg" ;;
346 -target | --target | --targe | --targ | --tar | --ta | --t)
348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349 target="$ac_optarg" ;;
351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 -version | --version | --versio | --versi | --vers)
355 echo "configure generated by autoconf version 2.13"
359 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* | --without-*)
372 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385 | --x-incl | --x-inc | --x-in | --x-i)
386 ac_prev=x_includes ;;
387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389 x_includes="$ac_optarg" ;;
391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393 ac_prev=x_libraries ;;
394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396 x_libraries="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c) ;;
448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=setjmp.S
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted=yes
478 # Try the directory containing this script, then its parent.
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE; then
501 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539 ac_n= ac_c='\c' ac_t=
545 for ac_dir in ../../../.. $srcdir/../../../..; do
546 if test -f $ac_dir/install-sh; then
548 ac_install_sh="$ac_aux_dir/install-sh -c"
550 elif test -f $ac_dir/install.sh; then
552 ac_install_sh="$ac_aux_dir/install.sh -c"
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
559 ac_config_guess=$ac_aux_dir/config.guess
560 ac_config_sub=$ac_aux_dir/config.sub
561 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
564 am__api_version="1.4"
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-malloc-debugging or --disable-malloc-debugging was given.
807 if test "${enable_malloc_debugging+set}" = set; then
808 enableval="$enable_malloc_debugging"
809 case "${enableval}" in
810 yes) malloc_debugging=yes ;;
811 no) malloc_debugging=no ;;
812 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
818 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
819 if test "${enable_newlib_multithread+set}" = set; then
820 enableval="$enable_newlib_multithread"
821 case "${enableval}" in
822 yes) newlib_multithread=yes ;;
823 no) newlib_multithread=no ;;
824 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
827 newlib_multithread=yes
830 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
831 if test "${enable_newlib_iconv+set}" = set; then
832 enableval="$enable_newlib_iconv"
833 if test "${newlib_iconv+set}" != set; then
834 case "${enableval}" in
835 yes) newlib_iconv=yes ;;
836 no) newlib_iconv=no ;;
837 *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;;
841 newlib_iconv=${newlib_iconv}
844 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
845 if test "${enable_newlib_elix_level+set}" = set; then
846 enableval="$enable_newlib_elix_level"
847 case "${enableval}" in
848 0) newlib_elix_level=0 ;;
849 1) newlib_elix_level=1 ;;
850 2) newlib_elix_level=2 ;;
851 3) newlib_elix_level=3 ;;
852 4) newlib_elix_level=4 ;;
853 *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
859 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
860 if test "${enable_newlib_io_float+set}" = set; then
861 enableval="$enable_newlib_io_float"
862 case "${enableval}" in
863 yes) newlib_io_float=yes ;;
864 no) newlib_io_float=no ;;
865 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
871 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
872 if test "${enable_newlib_supplied_syscalls+set}" = set; then
873 enableval="$enable_newlib_supplied_syscalls"
874 case "${enableval}" in
875 yes) newlib_may_supply_syscalls=yes ;;
876 no) newlib_may_supply_syscalls=no ;;
877 *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
880 newlib_may_supply_syscalls=yes
885 if test x${newlib_may_supply_syscalls} = xyes; then
886 MAY_SUPPLY_SYSCALLS_TRUE=
887 MAY_SUPPLY_SYSCALLS_FALSE='#'
889 MAY_SUPPLY_SYSCALLS_TRUE='#'
890 MAY_SUPPLY_SYSCALLS_FALSE=
894 test -z "${with_target_subdir}" && with_target_subdir=.
896 if test "${srcdir}" = "."; then
897 if test "${with_target_subdir}" != "."; then
898 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
900 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
903 newlib_basedir="${srcdir}/../../.."
908 # Do some error checking and defaulting for the host and target type.
910 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
913 # 1. You are not allowed to specify --host, --target, and nonopt at the
915 # 2. Host defaults to nonopt.
916 # 3. If nonopt is not specified, then host defaults to the current host,
917 # as determined by config.guess.
918 # 4. Target and build default to nonopt.
919 # 5. If nonopt is not specified, then target and build default to host.
921 # The aliases save the names the user supplied, while $host etc.
922 # will get canonicalized.
923 case $host---$target---$nonopt in
924 NONE---*---* | *---NONE---* | *---*---NONE) ;;
925 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
929 # Make sure we can run config.sub.
930 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
931 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
934 echo $ac_n "checking host system type""... $ac_c" 1>&6
935 echo "configure:936: checking host system type" >&5
938 case "$host_alias" in
942 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
943 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
945 *) host_alias=$nonopt ;;
949 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
950 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
951 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
952 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
953 echo "$ac_t""$host" 1>&6
955 echo $ac_n "checking target system type""... $ac_c" 1>&6
956 echo "configure:957: checking target system type" >&5
959 case "$target_alias" in
962 NONE) target_alias=$host_alias ;;
963 *) target_alias=$nonopt ;;
967 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
968 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
969 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
970 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
971 echo "$ac_t""$target" 1>&6
973 echo $ac_n "checking build system type""... $ac_c" 1>&6
974 echo "configure:975: checking build system type" >&5
977 case "$build_alias" in
980 NONE) build_alias=$host_alias ;;
981 *) build_alias=$nonopt ;;
985 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
986 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
987 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
988 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
989 echo "$ac_t""$build" 1>&6
991 test "$host_alias" != "$target_alias" &&
992 test "$program_prefix$program_suffix$program_transform_name" = \
994 program_prefix=${target_alias}-
1002 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1003 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1005 cat >> confdefs.h <<EOF
1006 #define PACKAGE "$PACKAGE"
1009 cat >> confdefs.h <<EOF
1010 #define VERSION "$VERSION"
1015 missing_dir=`cd $ac_aux_dir && pwd`
1016 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1017 echo "configure:1018: checking for working aclocal-${am__api_version}" >&5
1018 # Run test in a subshell; some versions of sh will print an error if
1019 # an executable is not found, even if stderr is redirected.
1020 # Redirect stdin to placate older versions of autoconf. Sigh.
1021 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1022 ACLOCAL=aclocal-${am__api_version}
1023 echo "$ac_t""found" 1>&6
1025 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1026 echo "$ac_t""missing" 1>&6
1029 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1030 echo "configure:1031: checking for working autoconf" >&5
1031 # Run test in a subshell; some versions of sh will print an error if
1032 # an executable is not found, even if stderr is redirected.
1033 # Redirect stdin to placate older versions of autoconf. Sigh.
1034 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1036 echo "$ac_t""found" 1>&6
1038 AUTOCONF="$missing_dir/missing autoconf"
1039 echo "$ac_t""missing" 1>&6
1042 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1043 echo "configure:1044: checking for working automake-${am__api_version}" >&5
1044 # Run test in a subshell; some versions of sh will print an error if
1045 # an executable is not found, even if stderr is redirected.
1046 # Redirect stdin to placate older versions of autoconf. Sigh.
1047 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1048 AUTOMAKE=automake-${am__api_version}
1049 echo "$ac_t""found" 1>&6
1051 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1052 echo "$ac_t""missing" 1>&6
1055 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1056 echo "configure:1057: checking for working autoheader" >&5
1057 # Run test in a subshell; some versions of sh will print an error if
1058 # an executable is not found, even if stderr is redirected.
1059 # Redirect stdin to placate older versions of autoconf. Sigh.
1060 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1061 AUTOHEADER=autoheader
1062 echo "$ac_t""found" 1>&6
1064 AUTOHEADER="$missing_dir/missing autoheader"
1065 echo "$ac_t""missing" 1>&6
1068 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1069 echo "configure:1070: checking for working makeinfo" >&5
1070 # Run test in a subshell; some versions of sh will print an error if
1071 # an executable is not found, even if stderr is redirected.
1072 # Redirect stdin to placate older versions of autoconf. Sigh.
1073 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1075 echo "$ac_t""found" 1>&6
1077 MAKEINFO="$missing_dir/missing makeinfo"
1078 echo "$ac_t""missing" 1>&6
1083 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1084 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1085 # are probably using a cross compiler, which will not be able to fully
1086 # link an executable. This should really be fixed in autoconf
1091 # Extract the first word of "gcc", so it can be a program name with args.
1092 set dummy gcc; ac_word=$2
1093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1094 echo "configure:1095: checking for $ac_word" >&5
1095 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 if test -n "$CC"; then
1099 ac_cv_prog_CC="$CC" # Let the user override the test.
1101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1103 for ac_dir in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir=.
1105 if test -f $ac_dir/$ac_word; then
1114 if test -n "$CC"; then
1115 echo "$ac_t""$CC" 1>&6
1117 echo "$ac_t""no" 1>&6
1120 if test -z "$CC"; then
1121 # Extract the first word of "cc", so it can be a program name with args.
1122 set dummy cc; ac_word=$2
1123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1124 echo "configure:1125: checking for $ac_word" >&5
1125 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1128 if test -n "$CC"; then
1129 ac_cv_prog_CC="$CC" # Let the user override the test.
1131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1134 for ac_dir in $ac_dummy; do
1135 test -z "$ac_dir" && ac_dir=.
1136 if test -f $ac_dir/$ac_word; then
1137 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1138 ac_prog_rejected=yes
1146 if test $ac_prog_rejected = yes; then
1147 # We found a bogon in the path, so make sure we never use it.
1148 set dummy $ac_cv_prog_CC
1150 if test $# -gt 0; then
1151 # We chose a different compiler from the bogus one.
1152 # However, it has the same basename, so the bogon will be chosen
1153 # first if we set CC to just the basename; use the full file name.
1155 set dummy "$ac_dir/$ac_word" "$@"
1163 if test -n "$CC"; then
1164 echo "$ac_t""$CC" 1>&6
1166 echo "$ac_t""no" 1>&6
1169 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1172 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1173 echo "configure:1174: checking whether we are using GNU C" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 cat > conftest.c <<EOF
1182 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1189 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1191 if test $ac_cv_prog_gcc = yes; then
1193 ac_test_CFLAGS="${CFLAGS+set}"
1194 ac_save_CFLAGS="$CFLAGS"
1196 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether ${CC-cc} accepts -g" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 echo 'void f(){}' > conftest.c
1202 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1211 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1212 if test "$ac_test_CFLAGS" = set; then
1213 CFLAGS="$ac_save_CFLAGS"
1214 elif test $ac_cv_prog_cc_g = yes; then
1221 test "${CFLAGS+set}" = set || CFLAGS="-g"
1225 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1226 set dummy ${ac_tool_prefix}as; ac_word=$2
1227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1228 echo "configure:1229: checking for $ac_word" >&5
1229 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 if test -n "$AS"; then
1233 ac_cv_prog_AS="$AS" # Let the user override the test.
1235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1237 for ac_dir in $ac_dummy; do
1238 test -z "$ac_dir" && ac_dir=.
1239 if test -f $ac_dir/$ac_word; then
1240 ac_cv_prog_AS="${ac_tool_prefix}as"
1245 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1249 if test -n "$AS"; then
1250 echo "$ac_t""$AS" 1>&6
1252 echo "$ac_t""no" 1>&6
1257 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1258 set dummy ${ac_tool_prefix}ar; ac_word=$2
1259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1260 echo "configure:1261: checking for $ac_word" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 if test -n "$AR"; then
1265 ac_cv_prog_AR="$AR" # Let the user override the test.
1267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1269 for ac_dir in $ac_dummy; do
1270 test -z "$ac_dir" && ac_dir=.
1271 if test -f $ac_dir/$ac_word; then
1272 ac_cv_prog_AR="${ac_tool_prefix}ar"
1277 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1281 if test -n "$AR"; then
1282 echo "$ac_t""$AR" 1>&6
1284 echo "$ac_t""no" 1>&6
1289 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1290 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1292 echo "configure:1293: checking for $ac_word" >&5
1293 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 if test -n "$RANLIB"; then
1297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1301 for ac_dir in $ac_dummy; do
1302 test -z "$ac_dir" && ac_dir=.
1303 if test -f $ac_dir/$ac_word; then
1304 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1311 RANLIB="$ac_cv_prog_RANLIB"
1312 if test -n "$RANLIB"; then
1313 echo "$ac_t""$RANLIB" 1>&6
1315 echo "$ac_t""no" 1>&6
1319 if test -z "$ac_cv_prog_RANLIB"; then
1320 if test -n "$ac_tool_prefix"; then
1321 # Extract the first word of "ranlib", so it can be a program name with args.
1322 set dummy ranlib; ac_word=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 if test -n "$RANLIB"; then
1329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1333 for ac_dir in $ac_dummy; do
1334 test -z "$ac_dir" && ac_dir=.
1335 if test -f $ac_dir/$ac_word; then
1336 ac_cv_prog_RANLIB="ranlib"
1341 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1344 RANLIB="$ac_cv_prog_RANLIB"
1345 if test -n "$RANLIB"; then
1346 echo "$ac_t""$RANLIB" 1>&6
1348 echo "$ac_t""no" 1>&6
1357 # Find a good install program. We prefer a C program (faster),
1358 # so one script is as good as another. But avoid the broken or
1359 # incompatible versions:
1360 # SysV /etc/install, /usr/sbin/install
1361 # SunOS /usr/etc/install
1362 # IRIX /sbin/install
1364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1367 # ./install, which can be erroneously created by make from ./install.sh.
1368 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1369 echo "configure:1370: checking for a BSD compatible install" >&5
1370 if test -z "$INSTALL"; then
1371 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1374 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1375 for ac_dir in $PATH; do
1376 # Account for people who put trailing slashes in PATH elements.
1378 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1380 # OSF1 and SCO ODT 3.0 have their own names for install.
1381 # Don't use installbsd from OSF since it installs stuff as root
1383 for ac_prog in ginstall scoinst install; do
1384 if test -f $ac_dir/$ac_prog; then
1385 if test $ac_prog = install &&
1386 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1387 # AIX install. It has an incompatible calling convention.
1390 ac_cv_path_install="$ac_dir/$ac_prog -c"
1401 if test "${ac_cv_path_install+set}" = set; then
1402 INSTALL="$ac_cv_path_install"
1404 # As a last resort, use the slow shell script. We don't cache a
1405 # path for INSTALL within a source directory, because that will
1406 # break other packages using the cache if that directory is
1407 # removed, or if the path is relative.
1408 INSTALL="$ac_install_sh"
1411 echo "$ac_t""$INSTALL" 1>&6
1413 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1414 # It thinks the first close brace ends the variable substitution.
1415 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1417 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1423 echo "configure:1424: checking whether to enable maintainer-specific portions of Makefiles" >&5
1424 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1425 if test "${enable_maintainer_mode+set}" = set; then
1426 enableval="$enable_maintainer_mode"
1427 USE_MAINTAINER_MODE=$enableval
1429 USE_MAINTAINER_MODE=no
1432 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1435 if test $USE_MAINTAINER_MODE = yes; then
1436 MAINTAINER_MODE_TRUE=
1437 MAINTAINER_MODE_FALSE='#'
1439 MAINTAINER_MODE_TRUE='#'
1440 MAINTAINER_MODE_FALSE=
1442 MAINT=$MAINTAINER_MODE_TRUE
1446 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1447 # at least currently, we never actually build a program, so we never
1448 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1449 # fails, because we are probably configuring with a cross compiler
1450 # which can't create executables. So we include AC_EXEEXT to keep
1451 # automake happy, but we don't execute it, since we don't care about
1456 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1457 echo "configure:1458: checking for executable suffix" >&5
1458 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1465 echo 'int main () { return 0; }' > conftest.$ac_ext
1467 if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1468 for file in conftest.*; do
1470 *.c | *.o | *.obj) ;;
1471 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1475 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1478 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1483 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1484 echo "$ac_t""${ac_cv_exeext}" 1>&6
1489 . ${newlib_basedir}/configure.host
1491 newlib_cflags="${newlib_cflags} -fno-builtin"
1493 NEWLIB_CFLAGS=${newlib_cflags}
1501 if test x${newlib_elix_level} = x0; then
1503 ELIX_LEVEL_0_FALSE='#'
1505 ELIX_LEVEL_0_TRUE='#'
1510 if test x${newlib_elix_level} = x1; then
1512 ELIX_LEVEL_1_FALSE='#'
1514 ELIX_LEVEL_1_TRUE='#'
1519 if test x${newlib_elix_level} = x2; then
1521 ELIX_LEVEL_2_FALSE='#'
1523 ELIX_LEVEL_2_TRUE='#'
1528 if test x${newlib_elix_level} = x3; then
1530 ELIX_LEVEL_3_FALSE='#'
1532 ELIX_LEVEL_3_TRUE='#'
1537 if test x${newlib_elix_level} = x4; then
1539 ELIX_LEVEL_4_FALSE='#'
1541 ELIX_LEVEL_4_TRUE='#'
1547 if test x${use_libtool} = xyes; then
1549 USE_LIBTOOL_FALSE='#'
1551 USE_LIBTOOL_TRUE='#'
1555 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
1556 # use oext, which is set in configure.host based on the target platform.
1569 cat > confcache <<\EOF
1570 # This file is a shell script that caches the results of configure
1571 # tests run on this system so they can be shared between configure
1572 # scripts and configure runs. It is not useful on other systems.
1573 # If it contains results you don't want to keep, you may remove or edit it.
1575 # By default, configure uses ./config.cache as the cache file,
1576 # creating it if it does not exist already. You can give configure
1577 # the --cache-file=FILE option to use a different cache file; that is
1578 # what configure does when it calls configure scripts in
1579 # subdirectories, so they share the cache.
1580 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1581 # config.status only pays attention to the cache file if you give it the
1582 # --recheck option to rerun configure.
1585 # The following way of writing the cache mishandles newlines in values,
1586 # but we know of no workaround that is simple, portable, and efficient.
1587 # So, don't put newlines in cache variables' values.
1588 # Ultrix sh set writes to stderr and can't be redirected directly,
1589 # and sets the high bit in the cache file unless we assign to the vars.
1591 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1593 # `set' does not quote correctly, so add quotes (double-quote substitution
1594 # turns \\\\ into \\, and sed turns \\ into \).
1596 -e "s/'/'\\\\''/g" \
1597 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1600 # `set' quotes correctly as required by POSIX, so do not add quotes.
1601 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1604 if cmp -s $cache_file confcache; then
1607 if test -w $cache_file; then
1608 echo "updating cache $cache_file"
1609 cat confcache > $cache_file
1611 echo "not updating unwritable cache $cache_file"
1616 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1619 # Let make expand exec_prefix.
1620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1622 # Any assignment to VPATH causes Sun make to only execute
1623 # the first set of double-colon rules, so remove it if not needed.
1624 # If there is a colon in the path, we need to keep it.
1625 if test "x$srcdir" = x.; then
1626 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1629 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1631 # Transform confdefs.h into DEFS.
1632 # Protect against shell expansion while executing Makefile rules.
1633 # Protect against Makefile macro expansion.
1634 cat > conftest.defs <<\EOF
1635 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1636 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1641 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1645 # Without the "./", some shells look in PATH for config.status.
1646 : ${CONFIG_STATUS=./config.status}
1648 echo creating $CONFIG_STATUS
1649 rm -f $CONFIG_STATUS
1650 cat > $CONFIG_STATUS <<EOF
1652 # Generated automatically by configure.
1653 # Run this file to recreate the current configuration.
1654 # This directory was configured as follows,
1655 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1657 # $0 $ac_configure_args
1659 # Compiler output produced by configure, useful for debugging
1660 # configure, is in ./config.log if it exists.
1662 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1665 case "\$ac_option" in
1666 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1667 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1668 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1669 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1670 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1672 -help | --help | --hel | --he | --h)
1673 echo "\$ac_cs_usage"; exit 0 ;;
1674 *) echo "\$ac_cs_usage"; exit 1 ;;
1678 ac_given_srcdir=$srcdir
1679 ac_given_INSTALL="$INSTALL"
1681 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1683 cat >> $CONFIG_STATUS <<EOF
1685 # Protect against being on the right side of a sed subst in config.status.
1686 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1687 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1691 s%@CFLAGS@%$CFLAGS%g
1692 s%@CPPFLAGS@%$CPPFLAGS%g
1693 s%@CXXFLAGS@%$CXXFLAGS%g
1694 s%@FFLAGS@%$FFLAGS%g
1696 s%@LDFLAGS@%$LDFLAGS%g
1698 s%@exec_prefix@%$exec_prefix%g
1699 s%@prefix@%$prefix%g
1700 s%@program_transform_name@%$program_transform_name%g
1701 s%@bindir@%$bindir%g
1702 s%@sbindir@%$sbindir%g
1703 s%@libexecdir@%$libexecdir%g
1704 s%@datadir@%$datadir%g
1705 s%@sysconfdir@%$sysconfdir%g
1706 s%@sharedstatedir@%$sharedstatedir%g
1707 s%@localstatedir@%$localstatedir%g
1708 s%@libdir@%$libdir%g
1709 s%@includedir@%$includedir%g
1710 s%@oldincludedir@%$oldincludedir%g
1711 s%@infodir@%$infodir%g
1712 s%@mandir@%$mandir%g
1713 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
1714 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
1715 s%@newlib_basedir@%$newlib_basedir%g
1717 s%@host_alias@%$host_alias%g
1718 s%@host_cpu@%$host_cpu%g
1719 s%@host_vendor@%$host_vendor%g
1720 s%@host_os@%$host_os%g
1721 s%@target@%$target%g
1722 s%@target_alias@%$target_alias%g
1723 s%@target_cpu@%$target_cpu%g
1724 s%@target_vendor@%$target_vendor%g
1725 s%@target_os@%$target_os%g
1727 s%@build_alias@%$build_alias%g
1728 s%@build_cpu@%$build_cpu%g
1729 s%@build_vendor@%$build_vendor%g
1730 s%@build_os@%$build_os%g
1731 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1732 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1733 s%@INSTALL_DATA@%$INSTALL_DATA%g
1734 s%@PACKAGE@%$PACKAGE%g
1735 s%@VERSION@%$VERSION%g
1736 s%@ACLOCAL@%$ACLOCAL%g
1737 s%@AUTOCONF@%$AUTOCONF%g
1738 s%@AUTOMAKE@%$AUTOMAKE%g
1739 s%@AUTOHEADER@%$AUTOHEADER%g
1740 s%@MAKEINFO@%$MAKEINFO%g
1741 s%@SET_MAKE@%$SET_MAKE%g
1745 s%@RANLIB@%$RANLIB%g
1746 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1747 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1749 s%@EXEEXT@%$EXEEXT%g
1750 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
1751 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
1752 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
1753 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
1754 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
1755 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
1756 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
1757 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
1758 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
1759 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
1760 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
1761 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
1762 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
1763 s%@OBJEXT@%$OBJEXT%g
1766 s%@libm_machine_dir@%$libm_machine_dir%g
1767 s%@machine_dir@%$machine_dir%g
1768 s%@sys_dir@%$sys_dir%g
1773 cat >> $CONFIG_STATUS <<\EOF
1775 # Split the substitutions into bite-sized pieces for seds with
1776 # small command number limits, like on Digital OSF/1 and HP-UX.
1777 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1778 ac_file=1 # Number of current file.
1779 ac_beg=1 # First line for current file.
1780 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1783 while $ac_more_lines; do
1784 if test $ac_beg -gt 1; then
1785 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1787 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1789 if test ! -s conftest.s$ac_file; then
1791 rm -f conftest.s$ac_file
1793 if test -z "$ac_sed_cmds"; then
1794 ac_sed_cmds="sed -f conftest.s$ac_file"
1796 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1798 ac_file=`expr $ac_file + 1`
1800 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1803 if test -z "$ac_sed_cmds"; then
1808 cat >> $CONFIG_STATUS <<EOF
1810 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1812 cat >> $CONFIG_STATUS <<\EOF
1813 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1814 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1816 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1817 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1818 *) ac_file_in="${ac_file}.in" ;;
1821 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1823 # Remove last slash and all that follows it. Not all systems have dirname.
1824 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1825 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1826 # The file is in a subdirectory.
1827 test ! -d "$ac_dir" && mkdir "$ac_dir"
1828 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1829 # A "../" for each directory in $ac_dir_suffix.
1830 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1832 ac_dir_suffix= ac_dots=
1835 case "$ac_given_srcdir" in
1837 if test -z "$ac_dots"; then top_srcdir=.
1838 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1839 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1841 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1842 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1845 case "$ac_given_INSTALL" in
1846 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1847 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1850 echo creating "$ac_file"
1852 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1854 *Makefile*) ac_comsub="1i\\
1855 # $configure_input" ;;
1859 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1861 s%@configure_input@%$configure_input%g
1862 s%@srcdir@%$srcdir%g
1863 s%@top_srcdir@%$top_srcdir%g
1864 s%@INSTALL@%$INSTALL%g
1865 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1870 cat >> $CONFIG_STATUS <<EOF
1873 cat >> $CONFIG_STATUS <<\EOF
1877 chmod +x $CONFIG_STATUS
1878 rm -fr confdefs* $ac_clean_files
1879 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1