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-elix-level supply desired elix library level (1-4)"
25 --disable-newlib-io-float disable printf/scanf family float support"
27 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file=./config.cache
45 program_transform_name=s,x,x,
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
69 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.13"
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=setjmp.S
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
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"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
537 ac_n= ac_c='\c' ac_t=
543 for ac_dir in ../../../.. $srcdir/../../../..; do
544 if test -f $ac_dir/install-sh; then
546 ac_install_sh="$ac_aux_dir/install-sh -c"
548 elif test -f $ac_dir/install.sh; then
550 ac_install_sh="$ac_aux_dir/install.sh -c"
554 if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
557 ac_config_guess=$ac_aux_dir/config.guess
558 ac_config_sub=$ac_aux_dir/config.sub
559 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
562 am__api_version="1.4"
563 # Find a good install program. We prefer a C program (faster),
564 # so one script is as good as another. But avoid the broken or
565 # incompatible versions:
566 # SysV /etc/install, /usr/sbin/install
567 # SunOS /usr/etc/install
570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
573 # ./install, which can be erroneously created by make from ./install.sh.
574 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
575 echo "configure:576: checking for a BSD compatible install" >&5
576 if test -z "$INSTALL"; then
577 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
578 echo $ac_n "(cached) $ac_c" 1>&6
580 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
581 for ac_dir in $PATH; do
582 # Account for people who put trailing slashes in PATH elements.
584 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
586 # OSF1 and SCO ODT 3.0 have their own names for install.
587 # Don't use installbsd from OSF since it installs stuff as root
589 for ac_prog in ginstall scoinst install; do
590 if test -f $ac_dir/$ac_prog; then
591 if test $ac_prog = install &&
592 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
593 # AIX install. It has an incompatible calling convention.
596 ac_cv_path_install="$ac_dir/$ac_prog -c"
607 if test "${ac_cv_path_install+set}" = set; then
608 INSTALL="$ac_cv_path_install"
610 # As a last resort, use the slow shell script. We don't cache a
611 # path for INSTALL within a source directory, because that will
612 # break other packages using the cache if that directory is
613 # removed, or if the path is relative.
614 INSTALL="$ac_install_sh"
617 echo "$ac_t""$INSTALL" 1>&6
619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
620 # It thinks the first close brace ends the variable substitution.
621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
625 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
627 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
628 echo "configure:629: checking whether build environment is sane" >&5
631 echo timestamp > conftestfile
632 # Do `set' in a subshell so we don't clobber the current shell's
633 # arguments. Must try -L first in case configure is actually a
634 # symlink; some systems play weird games with the mod time of symlinks
635 # (eg FreeBSD returns the mod time of the symlink's containing
638 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
639 if test "$*" = "X"; then
641 set X `ls -t $srcdir/configure conftestfile`
643 if test "$*" != "X $srcdir/configure conftestfile" \
644 && test "$*" != "X conftestfile $srcdir/configure"; then
646 # If neither matched, then we have a broken ls. This can happen
647 # if, for instance, CONFIG_SHELL is bash and it inherits a
648 # broken ls alias from the environment. This has actually
649 # happened. Such a system could not be considered "sane".
650 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
651 alias in your environment" 1>&2; exit 1; }
654 test "$2" = conftestfile
660 { echo "configure: error: newly created file is older than distributed files!
661 Check your system clock" 1>&2; exit 1; }
664 echo "$ac_t""yes" 1>&6
665 if test "$program_transform_name" = s,x,x,; then
666 program_transform_name=
668 # Double any \ or $. echo might interpret backslashes.
669 cat <<\EOF_SED > conftestsed
670 s,\\,\\\\,g; s,\$,$$,g
672 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
675 test "$program_prefix" != NONE &&
676 program_transform_name="s,^,${program_prefix},; $program_transform_name"
677 # Use a double $ so make ignores it.
678 test "$program_suffix" != NONE &&
679 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
681 # sed with no file args requires a program.
682 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
684 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
685 echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5
686 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
687 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
688 echo $ac_n "(cached) $ac_c" 1>&6
690 cat > conftestmake <<\EOF
692 @echo 'ac_maketemp="${MAKE}"'
694 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
695 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
696 if test -n "$ac_maketemp"; then
697 eval ac_cv_prog_make_${ac_make}_set=yes
699 eval ac_cv_prog_make_${ac_make}_set=no
703 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
704 echo "$ac_t""yes" 1>&6
707 echo "$ac_t""no" 1>&6
708 SET_MAKE="MAKE=${MAKE-make}"
711 if test $host != $build; then
712 ac_tool_prefix=${host_alias}-
717 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
718 echo "configure:719: checking for Cygwin environment" >&5
719 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
720 echo $ac_n "(cached) $ac_c" 1>&6
722 cat > conftest.$ac_ext <<EOF
723 #line 724 "configure"
724 #include "confdefs.h"
729 #define __CYGWIN__ __CYGWIN32__
734 if { (eval echo configure:735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
738 echo "configure: failed program was:" >&5
739 cat conftest.$ac_ext >&5
747 echo "$ac_t""$ac_cv_cygwin" 1>&6
749 test "$ac_cv_cygwin" = yes && CYGWIN=yes
750 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
751 echo "configure:752: checking for mingw32 environment" >&5
752 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 cat > conftest.$ac_ext <<EOF
756 #line 757 "configure"
757 #include "confdefs.h"
763 if { (eval echo configure:764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
767 echo "configure: failed program was:" >&5
768 cat conftest.$ac_ext >&5
776 echo "$ac_t""$ac_cv_mingw32" 1>&6
778 test "$ac_cv_mingw32" = yes && MINGW32=yes
780 # Check whether --enable-multilib or --disable-multilib was given.
781 if test "${enable_multilib+set}" = set; then
782 enableval="$enable_multilib"
783 case "${enableval}" in
786 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
792 # Check whether --enable-target-optspace or --disable-target-optspace was given.
793 if test "${enable_target_optspace+set}" = set; then
794 enableval="$enable_target_optspace"
795 case "${enableval}" in
796 yes) target_optspace=yes ;;
797 no) target_optspace=no ;;
798 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
804 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
805 if test "${enable_malloc_debugging+set}" = set; then
806 enableval="$enable_malloc_debugging"
807 case "${enableval}" in
808 yes) malloc_debugging=yes ;;
809 no) malloc_debugging=no ;;
810 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
816 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
817 if test "${enable_newlib_multithread+set}" = set; then
818 enableval="$enable_newlib_multithread"
819 case "${enableval}" in
820 yes) newlib_multithread=yes ;;
821 no) newlib_multithread=no ;;
822 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
825 newlib_multithread=yes
828 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
829 if test "${enable_newlib_elix_level+set}" = set; then
830 enableval="$enable_newlib_elix_level"
831 case "${enableval}" in
832 0) newlib_elix_level=0 ;;
833 1) newlib_elix_level=1 ;;
834 2) newlib_elix_level=2 ;;
835 3) newlib_elix_level=3 ;;
836 4) newlib_elix_level=4 ;;
837 *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
843 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
844 if test "${enable_newlib_io_float+set}" = set; then
845 enableval="$enable_newlib_io_float"
846 case "${enableval}" in
847 yes) newlib_io_float=yes ;;
848 no) newlib_io_float=no ;;
849 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
855 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
856 if test "${enable_newlib_supplied_syscalls+set}" = set; then
857 enableval="$enable_newlib_supplied_syscalls"
858 case "${enableval}" in
859 yes) newlib_may_supply_syscalls=yes ;;
860 no) newlib_may_supply_syscalls=no ;;
861 *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
864 newlib_may_supply_syscalls=yes
869 if test x${newlib_may_supply_syscalls} = xyes; then
870 MAY_SUPPLY_SYSCALLS_TRUE=
871 MAY_SUPPLY_SYSCALLS_FALSE='#'
873 MAY_SUPPLY_SYSCALLS_TRUE='#'
874 MAY_SUPPLY_SYSCALLS_FALSE=
878 test -z "${with_target_subdir}" && with_target_subdir=.
880 if test "${srcdir}" = "."; then
881 if test "${with_target_subdir}" != "."; then
882 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
884 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
887 newlib_basedir="${srcdir}/../../.."
892 # Do some error checking and defaulting for the host and target type.
894 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
897 # 1. You are not allowed to specify --host, --target, and nonopt at the
899 # 2. Host defaults to nonopt.
900 # 3. If nonopt is not specified, then host defaults to the current host,
901 # as determined by config.guess.
902 # 4. Target and build default to nonopt.
903 # 5. If nonopt is not specified, then target and build default to host.
905 # The aliases save the names the user supplied, while $host etc.
906 # will get canonicalized.
907 case $host---$target---$nonopt in
908 NONE---*---* | *---NONE---* | *---*---NONE) ;;
909 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
913 # Make sure we can run config.sub.
914 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
915 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
918 echo $ac_n "checking host system type""... $ac_c" 1>&6
919 echo "configure:920: checking host system type" >&5
922 case "$host_alias" in
926 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
927 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
929 *) host_alias=$nonopt ;;
933 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
934 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
935 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
936 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
937 echo "$ac_t""$host" 1>&6
939 echo $ac_n "checking target system type""... $ac_c" 1>&6
940 echo "configure:941: checking target system type" >&5
943 case "$target_alias" in
946 NONE) target_alias=$host_alias ;;
947 *) target_alias=$nonopt ;;
951 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
952 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
953 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
954 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
955 echo "$ac_t""$target" 1>&6
957 echo $ac_n "checking build system type""... $ac_c" 1>&6
958 echo "configure:959: checking build system type" >&5
961 case "$build_alias" in
964 NONE) build_alias=$host_alias ;;
965 *) build_alias=$nonopt ;;
969 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
970 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
971 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
972 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
973 echo "$ac_t""$build" 1>&6
975 test "$host_alias" != "$target_alias" &&
976 test "$program_prefix$program_suffix$program_transform_name" = \
978 program_prefix=${target_alias}-
986 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
987 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
989 cat >> confdefs.h <<EOF
990 #define PACKAGE "$PACKAGE"
993 cat >> confdefs.h <<EOF
994 #define VERSION "$VERSION"
999 missing_dir=`cd $ac_aux_dir && pwd`
1000 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1001 echo "configure:1002: checking for working aclocal-${am__api_version}" >&5
1002 # Run test in a subshell; some versions of sh will print an error if
1003 # an executable is not found, even if stderr is redirected.
1004 # Redirect stdin to placate older versions of autoconf. Sigh.
1005 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1006 ACLOCAL=aclocal-${am__api_version}
1007 echo "$ac_t""found" 1>&6
1009 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1010 echo "$ac_t""missing" 1>&6
1013 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1014 echo "configure:1015: checking for working autoconf" >&5
1015 # Run test in a subshell; some versions of sh will print an error if
1016 # an executable is not found, even if stderr is redirected.
1017 # Redirect stdin to placate older versions of autoconf. Sigh.
1018 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1020 echo "$ac_t""found" 1>&6
1022 AUTOCONF="$missing_dir/missing autoconf"
1023 echo "$ac_t""missing" 1>&6
1026 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1027 echo "configure:1028: checking for working automake-${am__api_version}" >&5
1028 # Run test in a subshell; some versions of sh will print an error if
1029 # an executable is not found, even if stderr is redirected.
1030 # Redirect stdin to placate older versions of autoconf. Sigh.
1031 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1032 AUTOMAKE=automake-${am__api_version}
1033 echo "$ac_t""found" 1>&6
1035 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1036 echo "$ac_t""missing" 1>&6
1039 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1040 echo "configure:1041: checking for working autoheader" >&5
1041 # Run test in a subshell; some versions of sh will print an error if
1042 # an executable is not found, even if stderr is redirected.
1043 # Redirect stdin to placate older versions of autoconf. Sigh.
1044 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1045 AUTOHEADER=autoheader
1046 echo "$ac_t""found" 1>&6
1048 AUTOHEADER="$missing_dir/missing autoheader"
1049 echo "$ac_t""missing" 1>&6
1052 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1053 echo "configure:1054: checking for working makeinfo" >&5
1054 # Run test in a subshell; some versions of sh will print an error if
1055 # an executable is not found, even if stderr is redirected.
1056 # Redirect stdin to placate older versions of autoconf. Sigh.
1057 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1059 echo "$ac_t""found" 1>&6
1061 MAKEINFO="$missing_dir/missing makeinfo"
1062 echo "$ac_t""missing" 1>&6
1067 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1068 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1069 # are probably using a cross compiler, which will not be able to fully
1070 # link an executable. This should really be fixed in autoconf
1075 # Extract the first word of "gcc", so it can be a program name with args.
1076 set dummy gcc; ac_word=$2
1077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1078 echo "configure:1079: checking for $ac_word" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 if test -n "$CC"; then
1083 ac_cv_prog_CC="$CC" # Let the user override the test.
1085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1087 for ac_dir in $ac_dummy; do
1088 test -z "$ac_dir" && ac_dir=.
1089 if test -f $ac_dir/$ac_word; then
1098 if test -n "$CC"; then
1099 echo "$ac_t""$CC" 1>&6
1101 echo "$ac_t""no" 1>&6
1104 if test -z "$CC"; then
1105 # Extract the first word of "cc", so it can be a program name with args.
1106 set dummy cc; ac_word=$2
1107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1108 echo "configure:1109: checking for $ac_word" >&5
1109 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 if test -n "$CC"; then
1113 ac_cv_prog_CC="$CC" # Let the user override the test.
1115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1118 for ac_dir in $ac_dummy; do
1119 test -z "$ac_dir" && ac_dir=.
1120 if test -f $ac_dir/$ac_word; then
1121 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1122 ac_prog_rejected=yes
1130 if test $ac_prog_rejected = yes; then
1131 # We found a bogon in the path, so make sure we never use it.
1132 set dummy $ac_cv_prog_CC
1134 if test $# -gt 0; then
1135 # We chose a different compiler from the bogus one.
1136 # However, it has the same basename, so the bogon will be chosen
1137 # first if we set CC to just the basename; use the full file name.
1139 set dummy "$ac_dir/$ac_word" "$@"
1147 if test -n "$CC"; then
1148 echo "$ac_t""$CC" 1>&6
1150 echo "$ac_t""no" 1>&6
1153 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1156 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1157 echo "configure:1158: checking whether we are using GNU C" >&5
1158 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 cat > conftest.c <<EOF
1166 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1173 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1175 if test $ac_cv_prog_gcc = yes; then
1177 ac_test_CFLAGS="${CFLAGS+set}"
1178 ac_save_CFLAGS="$CFLAGS"
1180 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether ${CC-cc} accepts -g" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 echo 'void f(){}' > conftest.c
1186 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1195 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1196 if test "$ac_test_CFLAGS" = set; then
1197 CFLAGS="$ac_save_CFLAGS"
1198 elif test $ac_cv_prog_cc_g = yes; then
1205 test "${CFLAGS+set}" = set || CFLAGS="-g"
1209 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1210 set dummy ${ac_tool_prefix}as; ac_word=$2
1211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1212 echo "configure:1213: checking for $ac_word" >&5
1213 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 if test -n "$AS"; then
1217 ac_cv_prog_AS="$AS" # Let the user override the test.
1219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1221 for ac_dir in $ac_dummy; do
1222 test -z "$ac_dir" && ac_dir=.
1223 if test -f $ac_dir/$ac_word; then
1224 ac_cv_prog_AS="${ac_tool_prefix}as"
1229 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1233 if test -n "$AS"; then
1234 echo "$ac_t""$AS" 1>&6
1236 echo "$ac_t""no" 1>&6
1241 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1242 set dummy ${ac_tool_prefix}ar; ac_word=$2
1243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1244 echo "configure:1245: checking for $ac_word" >&5
1245 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1248 if test -n "$AR"; then
1249 ac_cv_prog_AR="$AR" # Let the user override the test.
1251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1253 for ac_dir in $ac_dummy; do
1254 test -z "$ac_dir" && ac_dir=.
1255 if test -f $ac_dir/$ac_word; then
1256 ac_cv_prog_AR="${ac_tool_prefix}ar"
1261 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1265 if test -n "$AR"; then
1266 echo "$ac_t""$AR" 1>&6
1268 echo "$ac_t""no" 1>&6
1273 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1274 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1276 echo "configure:1277: checking for $ac_word" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 if test -n "$RANLIB"; then
1281 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1285 for ac_dir in $ac_dummy; do
1286 test -z "$ac_dir" && ac_dir=.
1287 if test -f $ac_dir/$ac_word; then
1288 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1295 RANLIB="$ac_cv_prog_RANLIB"
1296 if test -n "$RANLIB"; then
1297 echo "$ac_t""$RANLIB" 1>&6
1299 echo "$ac_t""no" 1>&6
1303 if test -z "$ac_cv_prog_RANLIB"; then
1304 if test -n "$ac_tool_prefix"; then
1305 # Extract the first word of "ranlib", so it can be a program name with args.
1306 set dummy ranlib; ac_word=$2
1307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1308 echo "configure:1309: checking for $ac_word" >&5
1309 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 if test -n "$RANLIB"; then
1313 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1317 for ac_dir in $ac_dummy; do
1318 test -z "$ac_dir" && ac_dir=.
1319 if test -f $ac_dir/$ac_word; then
1320 ac_cv_prog_RANLIB="ranlib"
1325 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1328 RANLIB="$ac_cv_prog_RANLIB"
1329 if test -n "$RANLIB"; then
1330 echo "$ac_t""$RANLIB" 1>&6
1332 echo "$ac_t""no" 1>&6
1341 # Find a good install program. We prefer a C program (faster),
1342 # so one script is as good as another. But avoid the broken or
1343 # incompatible versions:
1344 # SysV /etc/install, /usr/sbin/install
1345 # SunOS /usr/etc/install
1346 # IRIX /sbin/install
1348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1351 # ./install, which can be erroneously created by make from ./install.sh.
1352 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1353 echo "configure:1354: checking for a BSD compatible install" >&5
1354 if test -z "$INSTALL"; then
1355 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1359 for ac_dir in $PATH; do
1360 # Account for people who put trailing slashes in PATH elements.
1362 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1364 # OSF1 and SCO ODT 3.0 have their own names for install.
1365 # Don't use installbsd from OSF since it installs stuff as root
1367 for ac_prog in ginstall scoinst install; do
1368 if test -f $ac_dir/$ac_prog; then
1369 if test $ac_prog = install &&
1370 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1371 # AIX install. It has an incompatible calling convention.
1374 ac_cv_path_install="$ac_dir/$ac_prog -c"
1385 if test "${ac_cv_path_install+set}" = set; then
1386 INSTALL="$ac_cv_path_install"
1388 # As a last resort, use the slow shell script. We don't cache a
1389 # path for INSTALL within a source directory, because that will
1390 # break other packages using the cache if that directory is
1391 # removed, or if the path is relative.
1392 INSTALL="$ac_install_sh"
1395 echo "$ac_t""$INSTALL" 1>&6
1397 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1398 # It thinks the first close brace ends the variable substitution.
1399 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1401 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1403 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1406 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1407 echo "configure:1408: checking whether to enable maintainer-specific portions of Makefiles" >&5
1408 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1409 if test "${enable_maintainer_mode+set}" = set; then
1410 enableval="$enable_maintainer_mode"
1411 USE_MAINTAINER_MODE=$enableval
1413 USE_MAINTAINER_MODE=no
1416 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1419 if test $USE_MAINTAINER_MODE = yes; then
1420 MAINTAINER_MODE_TRUE=
1421 MAINTAINER_MODE_FALSE='#'
1423 MAINTAINER_MODE_TRUE='#'
1424 MAINTAINER_MODE_FALSE=
1426 MAINT=$MAINTAINER_MODE_TRUE
1430 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1431 # at least currently, we never actually build a program, so we never
1432 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1433 # fails, because we are probably configuring with a cross compiler
1434 # which can't create executables. So we include AC_EXEEXT to keep
1435 # automake happy, but we don't execute it, since we don't care about
1440 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1441 echo "configure:1442: checking for executable suffix" >&5
1442 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1449 echo 'int main () { return 0; }' > conftest.$ac_ext
1451 if { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1452 for file in conftest.*; do
1454 *.c | *.o | *.obj) ;;
1455 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1459 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1462 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1467 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1468 echo "$ac_t""${ac_cv_exeext}" 1>&6
1473 . ${newlib_basedir}/configure.host
1475 newlib_cflags="${newlib_cflags} -fno-builtin"
1477 NEWLIB_CFLAGS=${newlib_cflags}
1485 if test x${newlib_elix_level} = x0; then
1487 ELIX_LEVEL_0_FALSE='#'
1489 ELIX_LEVEL_0_TRUE='#'
1494 if test x${newlib_elix_level} = x1; then
1496 ELIX_LEVEL_1_FALSE='#'
1498 ELIX_LEVEL_1_TRUE='#'
1503 if test x${newlib_elix_level} = x2; then
1505 ELIX_LEVEL_2_FALSE='#'
1507 ELIX_LEVEL_2_TRUE='#'
1512 if test x${newlib_elix_level} = x3; then
1514 ELIX_LEVEL_3_FALSE='#'
1516 ELIX_LEVEL_3_TRUE='#'
1521 if test x${newlib_elix_level} = x4; then
1523 ELIX_LEVEL_4_FALSE='#'
1525 ELIX_LEVEL_4_TRUE='#'
1531 if test x${use_libtool} = xyes; then
1533 USE_LIBTOOL_FALSE='#'
1535 USE_LIBTOOL_TRUE='#'
1539 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
1540 # use oext, which is set in configure.host based on the target platform.
1553 cat > confcache <<\EOF
1554 # This file is a shell script that caches the results of configure
1555 # tests run on this system so they can be shared between configure
1556 # scripts and configure runs. It is not useful on other systems.
1557 # If it contains results you don't want to keep, you may remove or edit it.
1559 # By default, configure uses ./config.cache as the cache file,
1560 # creating it if it does not exist already. You can give configure
1561 # the --cache-file=FILE option to use a different cache file; that is
1562 # what configure does when it calls configure scripts in
1563 # subdirectories, so they share the cache.
1564 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1565 # config.status only pays attention to the cache file if you give it the
1566 # --recheck option to rerun configure.
1569 # The following way of writing the cache mishandles newlines in values,
1570 # but we know of no workaround that is simple, portable, and efficient.
1571 # So, don't put newlines in cache variables' values.
1572 # Ultrix sh set writes to stderr and can't be redirected directly,
1573 # and sets the high bit in the cache file unless we assign to the vars.
1575 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1577 # `set' does not quote correctly, so add quotes (double-quote substitution
1578 # turns \\\\ into \\, and sed turns \\ into \).
1580 -e "s/'/'\\\\''/g" \
1581 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1584 # `set' quotes correctly as required by POSIX, so do not add quotes.
1585 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1588 if cmp -s $cache_file confcache; then
1591 if test -w $cache_file; then
1592 echo "updating cache $cache_file"
1593 cat confcache > $cache_file
1595 echo "not updating unwritable cache $cache_file"
1600 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1602 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1603 # Let make expand exec_prefix.
1604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1606 # Any assignment to VPATH causes Sun make to only execute
1607 # the first set of double-colon rules, so remove it if not needed.
1608 # If there is a colon in the path, we need to keep it.
1609 if test "x$srcdir" = x.; then
1610 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1613 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1615 # Transform confdefs.h into DEFS.
1616 # Protect against shell expansion while executing Makefile rules.
1617 # Protect against Makefile macro expansion.
1618 cat > conftest.defs <<\EOF
1619 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1620 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1625 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1629 # Without the "./", some shells look in PATH for config.status.
1630 : ${CONFIG_STATUS=./config.status}
1632 echo creating $CONFIG_STATUS
1633 rm -f $CONFIG_STATUS
1634 cat > $CONFIG_STATUS <<EOF
1636 # Generated automatically by configure.
1637 # Run this file to recreate the current configuration.
1638 # This directory was configured as follows,
1639 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1641 # $0 $ac_configure_args
1643 # Compiler output produced by configure, useful for debugging
1644 # configure, is in ./config.log if it exists.
1646 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1649 case "\$ac_option" in
1650 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1651 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1652 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1653 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1654 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1656 -help | --help | --hel | --he | --h)
1657 echo "\$ac_cs_usage"; exit 0 ;;
1658 *) echo "\$ac_cs_usage"; exit 1 ;;
1662 ac_given_srcdir=$srcdir
1663 ac_given_INSTALL="$INSTALL"
1665 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1667 cat >> $CONFIG_STATUS <<EOF
1669 # Protect against being on the right side of a sed subst in config.status.
1670 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1671 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1675 s%@CFLAGS@%$CFLAGS%g
1676 s%@CPPFLAGS@%$CPPFLAGS%g
1677 s%@CXXFLAGS@%$CXXFLAGS%g
1678 s%@FFLAGS@%$FFLAGS%g
1680 s%@LDFLAGS@%$LDFLAGS%g
1682 s%@exec_prefix@%$exec_prefix%g
1683 s%@prefix@%$prefix%g
1684 s%@program_transform_name@%$program_transform_name%g
1685 s%@bindir@%$bindir%g
1686 s%@sbindir@%$sbindir%g
1687 s%@libexecdir@%$libexecdir%g
1688 s%@datadir@%$datadir%g
1689 s%@sysconfdir@%$sysconfdir%g
1690 s%@sharedstatedir@%$sharedstatedir%g
1691 s%@localstatedir@%$localstatedir%g
1692 s%@libdir@%$libdir%g
1693 s%@includedir@%$includedir%g
1694 s%@oldincludedir@%$oldincludedir%g
1695 s%@infodir@%$infodir%g
1696 s%@mandir@%$mandir%g
1697 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
1698 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
1699 s%@newlib_basedir@%$newlib_basedir%g
1701 s%@host_alias@%$host_alias%g
1702 s%@host_cpu@%$host_cpu%g
1703 s%@host_vendor@%$host_vendor%g
1704 s%@host_os@%$host_os%g
1705 s%@target@%$target%g
1706 s%@target_alias@%$target_alias%g
1707 s%@target_cpu@%$target_cpu%g
1708 s%@target_vendor@%$target_vendor%g
1709 s%@target_os@%$target_os%g
1711 s%@build_alias@%$build_alias%g
1712 s%@build_cpu@%$build_cpu%g
1713 s%@build_vendor@%$build_vendor%g
1714 s%@build_os@%$build_os%g
1715 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1716 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1717 s%@INSTALL_DATA@%$INSTALL_DATA%g
1718 s%@PACKAGE@%$PACKAGE%g
1719 s%@VERSION@%$VERSION%g
1720 s%@ACLOCAL@%$ACLOCAL%g
1721 s%@AUTOCONF@%$AUTOCONF%g
1722 s%@AUTOMAKE@%$AUTOMAKE%g
1723 s%@AUTOHEADER@%$AUTOHEADER%g
1724 s%@MAKEINFO@%$MAKEINFO%g
1725 s%@SET_MAKE@%$SET_MAKE%g
1729 s%@RANLIB@%$RANLIB%g
1730 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1731 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1733 s%@EXEEXT@%$EXEEXT%g
1734 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
1735 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
1736 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
1737 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
1738 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
1739 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
1740 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
1741 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
1742 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
1743 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
1744 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
1745 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
1746 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
1747 s%@OBJEXT@%$OBJEXT%g
1750 s%@libm_machine_dir@%$libm_machine_dir%g
1751 s%@machine_dir@%$machine_dir%g
1752 s%@sys_dir@%$sys_dir%g
1757 cat >> $CONFIG_STATUS <<\EOF
1759 # Split the substitutions into bite-sized pieces for seds with
1760 # small command number limits, like on Digital OSF/1 and HP-UX.
1761 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1762 ac_file=1 # Number of current file.
1763 ac_beg=1 # First line for current file.
1764 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1767 while $ac_more_lines; do
1768 if test $ac_beg -gt 1; then
1769 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1771 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1773 if test ! -s conftest.s$ac_file; then
1775 rm -f conftest.s$ac_file
1777 if test -z "$ac_sed_cmds"; then
1778 ac_sed_cmds="sed -f conftest.s$ac_file"
1780 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1782 ac_file=`expr $ac_file + 1`
1784 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1787 if test -z "$ac_sed_cmds"; then
1792 cat >> $CONFIG_STATUS <<EOF
1794 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1796 cat >> $CONFIG_STATUS <<\EOF
1797 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1798 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1800 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1801 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1802 *) ac_file_in="${ac_file}.in" ;;
1805 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1807 # Remove last slash and all that follows it. Not all systems have dirname.
1808 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1809 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1810 # The file is in a subdirectory.
1811 test ! -d "$ac_dir" && mkdir "$ac_dir"
1812 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1813 # A "../" for each directory in $ac_dir_suffix.
1814 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1816 ac_dir_suffix= ac_dots=
1819 case "$ac_given_srcdir" in
1821 if test -z "$ac_dots"; then top_srcdir=.
1822 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1823 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1825 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1826 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1829 case "$ac_given_INSTALL" in
1830 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1831 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1834 echo creating "$ac_file"
1836 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1838 *Makefile*) ac_comsub="1i\\
1839 # $configure_input" ;;
1843 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1845 s%@configure_input@%$configure_input%g
1846 s%@srcdir@%$srcdir%g
1847 s%@top_srcdir@%$top_srcdir%g
1848 s%@INSTALL@%$INSTALL%g
1849 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1854 cat >> $CONFIG_STATUS <<EOF
1857 cat >> $CONFIG_STATUS <<\EOF
1861 chmod +x $CONFIG_STATUS
1862 rm -fr confdefs* $ac_clean_files
1863 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1