3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-multilib build many library versions (default)"
17 --enable-target-optspace optimize for space"
19 --enable-malloc-debugging indicate malloc debugging requested"
21 --enable-newlib-mb enable multibyte support"
23 --enable-newlib-iconv enable iconv library support"
25 --enable-newlib-builtin-converters enable specific comma-separated list of iconv converters to be built-in"
27 --enable-newlib-multithread enable support for multiple threads"
29 --enable-newlib-elix-level supply desired elix library level (1-4)"
31 --disable-newlib-io-float disable printf/scanf family float support"
33 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
35 --enable-maintainer-mode enable make rules and dependencies not useful
36 (and sometimes confusing) to the casual installer"
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
42 cache_file
=.
/config.cache
51 program_transform_name
=s
,x
,x
,
59 bindir
='${exec_prefix}/bin'
60 sbindir
='${exec_prefix}/sbin'
61 libexecdir
='${exec_prefix}/libexec'
62 datadir
='${prefix}/share'
63 sysconfdir
='${prefix}/etc'
64 sharedstatedir
='${prefix}/com'
65 localstatedir
='${prefix}/var'
66 libdir
='${exec_prefix}/lib'
67 includedir
='${prefix}/include'
68 oldincludedir
='/usr/include'
69 infodir
='${prefix}/info'
70 mandir
='${prefix}/man'
72 # Initialize some other variables.
75 SHELL
=${CONFIG_SHELL-/bin/sh}
76 # Maximum number of lines to put in a shell here document.
83 # If the previous option needs an argument, assign it.
84 if test -n "$ac_prev"; then
85 eval "$ac_prev=\$ac_option"
91 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 # Accept the important Cygnus configure options, so we can diagnose typos.
99 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
101 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
102 bindir
="$ac_optarg" ;;
104 -build |
--build |
--buil |
--bui |
--bu)
106 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
107 build
="$ac_optarg" ;;
109 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
110 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
111 ac_prev
=cache_file
;;
112 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
113 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
114 cache_file
="$ac_optarg" ;;
116 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
118 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
120 datadir
="$ac_optarg" ;;
122 -disable-* |
--disable-*)
123 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}=no" ;;
131 -enable-* |
--enable-*)
132 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}='$ac_optarg'" ;;
144 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
145 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
146 |
--exec |
--exe |
--ex)
147 ac_prev
=exec_prefix
;;
148 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
149 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
150 |
--exec=* |
--exe=* |
--ex=*)
151 exec_prefix
="$ac_optarg" ;;
153 -gas |
--gas |
--ga |
--g)
154 # Obsolete; use --with-gas.
157 -help |
--help |
--hel |
--he)
158 # Omit some internal or obsolete options to make the list less imposing.
159 # This message is too long to be a string in the A/UX 3.1 sh.
161 Usage: configure [options] [host]
162 Options: [defaults in brackets after descriptions]
164 --cache-file=FILE cache test results in FILE
165 --help print this message
166 --no-create do not create output files
167 --quiet, --silent do not print \`checking...' messages
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host |
--host |
--hos |
--ho)
214 -host=* |
--host=* |
--hos=* |
--ho=*)
217 -includedir |
--includedir |
--includedi |
--included |
--include \
218 |
--includ |
--inclu |
--incl |
--inc)
219 ac_prev
=includedir
;;
220 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
221 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
222 includedir
="$ac_optarg" ;;
224 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
226 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
227 infodir
="$ac_optarg" ;;
229 -libdir |
--libdir |
--libdi |
--libd)
231 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
232 libdir
="$ac_optarg" ;;
234 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
235 |
--libexe |
--libex |
--libe)
236 ac_prev
=libexecdir
;;
237 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
238 |
--libexe=* |
--libex=* |
--libe=*)
239 libexecdir
="$ac_optarg" ;;
241 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
242 |
--localstate |
--localstat |
--localsta |
--localst \
243 |
--locals |
--local |
--loca |
--loc |
--lo)
244 ac_prev
=localstatedir
;;
245 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
246 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
247 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
248 localstatedir
="$ac_optarg" ;;
250 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
252 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
253 mandir
="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
263 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
264 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
267 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
268 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
269 |
--oldin |
--oldi |
--old |
--ol |
--o)
270 ac_prev
=oldincludedir
;;
271 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
272 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
273 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
274 oldincludedir
="$ac_optarg" ;;
276 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
278 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
279 prefix
="$ac_optarg" ;;
281 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
282 |
--program-pre |
--program-pr |
--program-p)
283 ac_prev
=program_prefix
;;
284 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
285 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
286 program_prefix
="$ac_optarg" ;;
288 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
289 |
--program-suf |
--program-su |
--program-s)
290 ac_prev
=program_suffix
;;
291 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
292 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
293 program_suffix
="$ac_optarg" ;;
295 -program-transform-name |
--program-transform-name \
296 |
--program-transform-nam |
--program-transform-na \
297 |
--program-transform-n |
--program-transform- \
298 |
--program-transform |
--program-transfor \
299 |
--program-transfo |
--program-transf \
300 |
--program-trans |
--program-tran \
301 |
--progr-tra |
--program-tr |
--program-t)
302 ac_prev
=program_transform_name
;;
303 -program-transform-name=* |
--program-transform-name=* \
304 |
--program-transform-nam=* |
--program-transform-na=* \
305 |
--program-transform-n=* |
--program-transform-=* \
306 |
--program-transform=* |
--program-transfor=* \
307 |
--program-transfo=* |
--program-transf=* \
308 |
--program-trans=* |
--program-tran=* \
309 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
310 program_transform_name
="$ac_optarg" ;;
312 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
313 |
-silent |
--silent |
--silen |
--sile |
--sil)
316 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
318 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
320 sbindir
="$ac_optarg" ;;
322 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
323 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
324 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
326 ac_prev
=sharedstatedir
;;
327 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
328 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
329 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
331 sharedstatedir
="$ac_optarg" ;;
333 -site |
--site |
--sit)
335 -site=* |
--site=* |
--sit=*)
338 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
340 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
341 srcdir
="$ac_optarg" ;;
343 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
344 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
345 ac_prev
=sysconfdir
;;
346 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
347 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
348 sysconfdir
="$ac_optarg" ;;
350 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
352 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
353 target
="$ac_optarg" ;;
355 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
358 -version |
--version |
--versio |
--versi |
--vers)
359 echo "configure generated by autoconf version 2.13"
363 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package
=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}='$ac_optarg'" ;;
375 -without-* |
--without-*)
376 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package
=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}=no" ;;
385 # Obsolete; use --with-x.
388 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
389 |
--x-incl |
--x-inc |
--x-in |
--x-i)
390 ac_prev
=x_includes
;;
391 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
392 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
393 x_includes
="$ac_optarg" ;;
395 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
396 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
397 ac_prev
=x_libraries
;;
398 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
399 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
400 x_libraries
="$ac_optarg" ;;
402 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
406 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
407 echo "configure: warning: $ac_option: invalid host type" 1>&2
409 if test "x$nonopt" != xNONE
; then
410 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418 if test -n "$ac_prev"; then
419 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424 # File descriptor usage:
427 # 2 errors and warnings
428 # 3 some systems may open it to /dev/tty
429 # 4 used on the Kubota Titan
430 # 6 checking for... messages and results
431 # 5 compiler messages saved in config.log
432 if test "$silent" = yes; then
440 This file contains any messages produced by compilers while
441 running configure, to aid debugging if configure makes a mistake.
444 # Strip out --no-create and --no-recursion so they do not pile up.
445 # Also quote any args containing shell metacharacters.
450 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
451 |
--no-cr |
--no-c) ;;
452 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
453 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
454 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
455 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
456 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
461 # Only set these to C if already set. These must not be set unconditionally
462 # because not all systems understand e.g. LANG=C (notably SCO).
463 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
464 # Non-C LC_CTYPE values break the ctype check.
465 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
466 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
467 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
468 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
471 rm -rf conftest
* confdefs.h
472 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475 # A filename unique to this package, relative to the directory that
476 # configure is in, which we can look for to find out if srcdir is correct.
477 ac_unique_file
=shuffle.c
479 # Find the source files, if location was not specified.
480 if test -z "$srcdir"; then
481 ac_srcdir_defaulted
=yes
482 # Try the directory containing this script, then its parent.
484 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
487 if test ! -r $srcdir/$ac_unique_file; then
491 ac_srcdir_defaulted
=no
493 if test ! -r $srcdir/$ac_unique_file; then
494 if test "$ac_srcdir_defaulted" = yes; then
495 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502 # Prefer explicitly selected file to automatically selected ones.
503 if test -z "$CONFIG_SITE"; then
504 if test "x$prefix" != xNONE
; then
505 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
507 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510 for ac_site_file
in $CONFIG_SITE; do
511 if test -r "$ac_site_file"; then
512 echo "loading site script $ac_site_file"
517 if test -r "$cache_file"; then
518 echo "loading cache $cache_file"
521 echo "creating cache $cache_file"
526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp
='$CPP $CPPFLAGS'
528 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling
=$ac_cv_prog_cc_cross
534 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
543 ac_n
= ac_c
='\c' ac_t
=
549 for ac_dir
in ..
/..
/..
/..
$srcdir/..
/..
/..
/..
; do
550 if test -f $ac_dir/install-sh
; then
552 ac_install_sh
="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh
; then
556 ac_install_sh
="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
563 ac_config_guess
=$ac_aux_dir/config.guess
564 ac_config_sub
=$ac_aux_dir/config.sub
565 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
568 am__api_version
="1.4"
569 # Find a good install program. We prefer a C program (faster),
570 # so one script is as good as another. But avoid the broken or
571 # incompatible versions:
572 # SysV /etc/install, /usr/sbin/install
573 # SunOS /usr/etc/install
576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
579 # ./install, which can be erroneously created by make from ./install.sh.
580 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
581 echo "configure:582: checking for a BSD compatible install" >&5
582 if test -z "$INSTALL"; then
583 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
587 for ac_dir
in $PATH; do
588 # Account for people who put trailing slashes in PATH elements.
590 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
592 # OSF1 and SCO ODT 3.0 have their own names for install.
593 # Don't use installbsd from OSF since it installs stuff as root
595 for ac_prog
in ginstall scoinst
install; do
596 if test -f $ac_dir/$ac_prog; then
597 if test $ac_prog = install &&
598 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
599 # AIX install. It has an incompatible calling convention.
602 ac_cv_path_install
="$ac_dir/$ac_prog -c"
613 if test "${ac_cv_path_install+set}" = set; then
614 INSTALL
="$ac_cv_path_install"
616 # As a last resort, use the slow shell script. We don't cache a
617 # path for INSTALL within a source directory, because that will
618 # break other packages using the cache if that directory is
619 # removed, or if the path is relative.
620 INSTALL
="$ac_install_sh"
623 echo "$ac_t""$INSTALL" 1>&6
625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
626 # It thinks the first close brace ends the variable substitution.
627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
631 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
633 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
634 echo "configure:635: checking whether build environment is sane" >&5
637 echo timestamp
> conftestfile
638 # Do `set' in a subshell so we don't clobber the current shell's
639 # arguments. Must try -L first in case configure is actually a
640 # symlink; some systems play weird games with the mod time of symlinks
641 # (eg FreeBSD returns the mod time of the symlink's containing
644 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
645 if test "$*" = "X"; then
647 set X
`ls -t $srcdir/configure conftestfile`
649 if test "$*" != "X $srcdir/configure conftestfile" \
650 && test "$*" != "X conftestfile $srcdir/configure"; then
652 # If neither matched, then we have a broken ls. This can happen
653 # if, for instance, CONFIG_SHELL is bash and it inherits a
654 # broken ls alias from the environment. This has actually
655 # happened. Such a system could not be considered "sane".
656 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
657 alias in your environment" 1>&2; exit 1; }
660 test "$2" = conftestfile
666 { echo "configure: error: newly created file is older than distributed files!
667 Check your system clock" 1>&2; exit 1; }
670 echo "$ac_t""yes" 1>&6
671 if test "$program_transform_name" = s
,x
,x
,; then
672 program_transform_name
=
674 # Double any \ or $. echo might interpret backslashes.
675 cat <<\EOF_SED
> conftestsed
676 s
,\\,\\\\,g
; s
,\$
,$$
,g
678 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
681 test "$program_prefix" != NONE
&&
682 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
683 # Use a double $ so make ignores it.
684 test "$program_suffix" != NONE
&&
685 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
687 # sed with no file args requires a program.
688 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
690 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
691 echo "configure:692: checking whether ${MAKE-make} sets \${MAKE}" >&5
692 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
693 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 cat > conftestmake
<<\EOF
698 @
echo 'ac_maketemp="${MAKE}"'
700 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
701 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
702 if test -n "$ac_maketemp"; then
703 eval ac_cv_prog_make_
${ac_make}_set
=yes
705 eval ac_cv_prog_make_
${ac_make}_set
=no
709 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
710 echo "$ac_t""yes" 1>&6
713 echo "$ac_t""no" 1>&6
714 SET_MAKE
="MAKE=${MAKE-make}"
717 if test $host != $build; then
718 ac_tool_prefix
=${host_alias}-
723 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
724 echo "configure:725: checking for Cygwin environment" >&5
725 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 cat > conftest.
$ac_ext <<EOF
729 #line 730 "configure"
730 #include "confdefs.h"
735 #define __CYGWIN__ __CYGWIN32__
740 if { (eval echo configure
:741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
744 echo "configure: failed program was:" >&5
745 cat conftest.
$ac_ext >&5
753 echo "$ac_t""$ac_cv_cygwin" 1>&6
755 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
756 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
757 echo "configure:758: checking for mingw32 environment" >&5
758 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 cat > conftest.
$ac_ext <<EOF
762 #line 763 "configure"
763 #include "confdefs.h"
769 if { (eval echo configure
:770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
773 echo "configure: failed program was:" >&5
774 cat conftest.
$ac_ext >&5
782 echo "$ac_t""$ac_cv_mingw32" 1>&6
784 test "$ac_cv_mingw32" = yes && MINGW32
=yes
786 # Check whether --enable-multilib or --disable-multilib was given.
787 if test "${enable_multilib+set}" = set; then
788 enableval
="$enable_multilib"
789 case "${enableval}" in
792 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
798 # Check whether --enable-target-optspace or --disable-target-optspace was given.
799 if test "${enable_target_optspace+set}" = set; then
800 enableval
="$enable_target_optspace"
801 case "${enableval}" in
802 yes) target_optspace
=yes ;;
803 no
) target_optspace
=no
;;
804 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
810 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
811 if test "${enable_malloc_debugging+set}" = set; then
812 enableval
="$enable_malloc_debugging"
813 case "${enableval}" in
814 yes) malloc_debugging
=yes ;;
815 no
) malloc_debugging
=no
;;
816 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
822 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
823 if test "${enable_newlib_mb+set}" = set; then
824 enableval
="$enable_newlib_mb"
825 case "${enableval}" in
826 yes) newlib_mb
=yes ;;
828 *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
834 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
835 if test "${enable_newlib_iconv+set}" = set; then
836 enableval
="$enable_newlib_iconv"
837 case "${enableval}" in
838 yes) newlib_iconv
=yes ;;
839 no
) newlib_iconv
=no
;;
840 *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;;
846 # Check whether --enable-newlib-builtin-converters or --disable-newlib-builtin-converters was given.
847 if test "${enable_newlib_builtin_converters+set}" = set; then
848 enableval
="$enable_newlib_builtin_converters"
849 if test x
${enableval} = x
; then
850 { echo "configure: error: bad value ${enableval} for newlib-builtin-converters option - use comma-separated list" 1>&2; exit 1; }
852 builtin_converters
=${enableval}
858 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
859 if test "${enable_newlib_multithread+set}" = set; then
860 enableval
="$enable_newlib_multithread"
861 case "${enableval}" in
862 yes) newlib_multithread
=yes ;;
863 no
) newlib_multithread
=no
;;
864 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
867 newlib_multithread
=yes
870 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
871 if test "${enable_newlib_elix_level+set}" = set; then
872 enableval
="$enable_newlib_elix_level"
873 case "${enableval}" in
874 0) newlib_elix_level
=0 ;;
875 1) newlib_elix_level
=1 ;;
876 2) newlib_elix_level
=2 ;;
877 3) newlib_elix_level
=3 ;;
878 4) newlib_elix_level
=4 ;;
879 *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
885 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
886 if test "${enable_newlib_io_float+set}" = set; then
887 enableval
="$enable_newlib_io_float"
888 case "${enableval}" in
889 yes) newlib_io_float
=yes ;;
890 no
) newlib_io_float
=no
;;
891 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
897 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
898 if test "${enable_newlib_supplied_syscalls+set}" = set; then
899 enableval
="$enable_newlib_supplied_syscalls"
900 case "${enableval}" in
901 yes) newlib_may_supply_syscalls
=yes ;;
902 no
) newlib_may_supply_syscalls
=no
;;
903 *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
906 newlib_may_supply_syscalls
=yes
911 if test x
${newlib_may_supply_syscalls} = xyes
; then
912 MAY_SUPPLY_SYSCALLS_TRUE
=
913 MAY_SUPPLY_SYSCALLS_FALSE
='#'
915 MAY_SUPPLY_SYSCALLS_TRUE
='#'
916 MAY_SUPPLY_SYSCALLS_FALSE
=
920 test -z "${with_target_subdir}" && with_target_subdir
=.
922 if test "${srcdir}" = "."; then
923 if test "${with_target_subdir}" != "."; then
924 newlib_basedir
="${srcdir}/${with_multisrctop}../../../.."
926 newlib_basedir
="${srcdir}/${with_multisrctop}../../.."
929 newlib_basedir
="${srcdir}/../../.."
934 # Do some error checking and defaulting for the host and target type.
936 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
939 # 1. You are not allowed to specify --host, --target, and nonopt at the
941 # 2. Host defaults to nonopt.
942 # 3. If nonopt is not specified, then host defaults to the current host,
943 # as determined by config.guess.
944 # 4. Target and build default to nonopt.
945 # 5. If nonopt is not specified, then target and build default to host.
947 # The aliases save the names the user supplied, while $host etc.
948 # will get canonicalized.
949 case $host---$target---$nonopt in
950 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
951 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
955 # Make sure we can run config.sub.
956 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
957 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
960 echo $ac_n "checking host system type""... $ac_c" 1>&6
961 echo "configure:962: checking host system type" >&5
964 case "$host_alias" in
968 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
969 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
971 *) host_alias
=$nonopt ;;
975 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
976 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
977 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
978 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
979 echo "$ac_t""$host" 1>&6
981 echo $ac_n "checking target system type""... $ac_c" 1>&6
982 echo "configure:983: checking target system type" >&5
985 case "$target_alias" in
988 NONE
) target_alias
=$host_alias ;;
989 *) target_alias
=$nonopt ;;
993 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
994 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
995 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
996 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
997 echo "$ac_t""$target" 1>&6
999 echo $ac_n "checking build system type""... $ac_c" 1>&6
1000 echo "configure:1001: checking build system type" >&5
1003 case "$build_alias" in
1006 NONE
) build_alias
=$host_alias ;;
1007 *) build_alias
=$nonopt ;;
1011 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1012 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1013 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1014 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1015 echo "$ac_t""$build" 1>&6
1017 test "$host_alias" != "$target_alias" &&
1018 test "$program_prefix$program_suffix$program_transform_name" = \
1020 program_prefix
=${target_alias}-
1028 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1029 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1031 cat >> confdefs.h
<<EOF
1032 #define PACKAGE "$PACKAGE"
1035 cat >> confdefs.h
<<EOF
1036 #define VERSION "$VERSION"
1041 missing_dir
=`cd $ac_aux_dir && pwd`
1042 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1043 echo "configure:1044: checking for working aclocal-${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 (aclocal-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
1048 ACLOCAL
=aclocal-
${am__api_version}
1049 echo "$ac_t""found" 1>&6
1051 ACLOCAL
="$missing_dir/missing aclocal-${am__api_version}"
1052 echo "$ac_t""missing" 1>&6
1055 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1056 echo "configure:1057: checking for working autoconf" >&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 (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1062 echo "$ac_t""found" 1>&6
1064 AUTOCONF
="$missing_dir/missing autoconf"
1065 echo "$ac_t""missing" 1>&6
1068 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1069 echo "configure:1070: checking for working automake-${am__api_version}" >&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 (automake-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
1074 AUTOMAKE
=automake-
${am__api_version}
1075 echo "$ac_t""found" 1>&6
1077 AUTOMAKE
="$missing_dir/missing automake-${am__api_version}"
1078 echo "$ac_t""missing" 1>&6
1081 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1082 echo "configure:1083: checking for working autoheader" >&5
1083 # Run test in a subshell; some versions of sh will print an error if
1084 # an executable is not found, even if stderr is redirected.
1085 # Redirect stdin to placate older versions of autoconf. Sigh.
1086 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1087 AUTOHEADER
=autoheader
1088 echo "$ac_t""found" 1>&6
1090 AUTOHEADER
="$missing_dir/missing autoheader"
1091 echo "$ac_t""missing" 1>&6
1094 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1095 echo "configure:1096: checking for working makeinfo" >&5
1096 # Run test in a subshell; some versions of sh will print an error if
1097 # an executable is not found, even if stderr is redirected.
1098 # Redirect stdin to placate older versions of autoconf. Sigh.
1099 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1101 echo "$ac_t""found" 1>&6
1103 MAKEINFO
="$missing_dir/missing makeinfo"
1104 echo "$ac_t""missing" 1>&6
1109 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1110 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1111 # are probably using a cross compiler, which will not be able to fully
1112 # link an executable. This should really be fixed in autoconf
1117 # Extract the first word of "gcc", so it can be a program name with args.
1118 set dummy gcc
; ac_word
=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 if test -n "$CC"; then
1125 ac_cv_prog_CC
="$CC" # Let the user override the test.
1127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1129 for ac_dir
in $ac_dummy; do
1130 test -z "$ac_dir" && ac_dir
=.
1131 if test -f $ac_dir/$ac_word; then
1140 if test -n "$CC"; then
1141 echo "$ac_t""$CC" 1>&6
1143 echo "$ac_t""no" 1>&6
1146 if test -z "$CC"; then
1147 # Extract the first word of "cc", so it can be a program name with args.
1148 set dummy cc
; ac_word
=$2
1149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1150 echo "configure:1151: checking for $ac_word" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 if test -n "$CC"; then
1155 ac_cv_prog_CC
="$CC" # Let the user override the test.
1157 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1160 for ac_dir
in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir
=.
1162 if test -f $ac_dir/$ac_word; then
1163 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1164 ac_prog_rejected
=yes
1172 if test $ac_prog_rejected = yes; then
1173 # We found a bogon in the path, so make sure we never use it.
1174 set dummy
$ac_cv_prog_CC
1176 if test $# -gt 0; then
1177 # We chose a different compiler from the bogus one.
1178 # However, it has the same basename, so the bogon will be chosen
1179 # first if we set CC to just the basename; use the full file name.
1181 set dummy
"$ac_dir/$ac_word" "$@"
1189 if test -n "$CC"; then
1190 echo "$ac_t""$CC" 1>&6
1192 echo "$ac_t""no" 1>&6
1195 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1198 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether we are using GNU C" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 cat > conftest.c
<<EOF
1208 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1215 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1217 if test $ac_cv_prog_gcc = yes; then
1219 ac_test_CFLAGS
="${CFLAGS+set}"
1220 ac_save_CFLAGS
="$CFLAGS"
1222 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1223 echo "configure:1224: checking whether ${CC-cc} accepts -g" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 echo 'void f(){}' > conftest.c
1228 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1237 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1238 if test "$ac_test_CFLAGS" = set; then
1239 CFLAGS
="$ac_save_CFLAGS"
1240 elif test $ac_cv_prog_cc_g = yes; then
1247 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1251 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1252 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1254 echo "configure:1255: checking for $ac_word" >&5
1255 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 if test -n "$AS"; then
1259 ac_cv_prog_AS
="$AS" # Let the user override the test.
1261 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1263 for ac_dir
in $ac_dummy; do
1264 test -z "$ac_dir" && ac_dir
=.
1265 if test -f $ac_dir/$ac_word; then
1266 ac_cv_prog_AS
="${ac_tool_prefix}as"
1271 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1275 if test -n "$AS"; then
1276 echo "$ac_t""$AS" 1>&6
1278 echo "$ac_t""no" 1>&6
1283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1284 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1286 echo "configure:1287: checking for $ac_word" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 if test -n "$AR"; then
1291 ac_cv_prog_AR
="$AR" # Let the user override the test.
1293 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1295 for ac_dir
in $ac_dummy; do
1296 test -z "$ac_dir" && ac_dir
=.
1297 if test -f $ac_dir/$ac_word; then
1298 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1303 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1307 if test -n "$AR"; then
1308 echo "$ac_t""$AR" 1>&6
1310 echo "$ac_t""no" 1>&6
1315 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1316 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1318 echo "configure:1319: checking for $ac_word" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 if test -n "$RANLIB"; then
1323 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1325 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1327 for ac_dir
in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir
=.
1329 if test -f $ac_dir/$ac_word; then
1330 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1337 RANLIB
="$ac_cv_prog_RANLIB"
1338 if test -n "$RANLIB"; then
1339 echo "$ac_t""$RANLIB" 1>&6
1341 echo "$ac_t""no" 1>&6
1345 if test -z "$ac_cv_prog_RANLIB"; then
1346 if test -n "$ac_tool_prefix"; then
1347 # Extract the first word of "ranlib", so it can be a program name with args.
1348 set dummy ranlib
; ac_word
=$2
1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1350 echo "configure:1351: checking for $ac_word" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 if test -n "$RANLIB"; then
1355 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1357 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1359 for ac_dir
in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir
=.
1361 if test -f $ac_dir/$ac_word; then
1362 ac_cv_prog_RANLIB
="ranlib"
1367 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1370 RANLIB
="$ac_cv_prog_RANLIB"
1371 if test -n "$RANLIB"; then
1372 echo "$ac_t""$RANLIB" 1>&6
1374 echo "$ac_t""no" 1>&6
1383 # Find a good install program. We prefer a C program (faster),
1384 # so one script is as good as another. But avoid the broken or
1385 # incompatible versions:
1386 # SysV /etc/install, /usr/sbin/install
1387 # SunOS /usr/etc/install
1388 # IRIX /sbin/install
1390 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1393 # ./install, which can be erroneously created by make from ./install.sh.
1394 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1395 echo "configure:1396: checking for a BSD compatible install" >&5
1396 if test -z "$INSTALL"; then
1397 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1401 for ac_dir
in $PATH; do
1402 # Account for people who put trailing slashes in PATH elements.
1404 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1406 # OSF1 and SCO ODT 3.0 have their own names for install.
1407 # Don't use installbsd from OSF since it installs stuff as root
1409 for ac_prog
in ginstall scoinst
install; do
1410 if test -f $ac_dir/$ac_prog; then
1411 if test $ac_prog = install &&
1412 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1413 # AIX install. It has an incompatible calling convention.
1416 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1427 if test "${ac_cv_path_install+set}" = set; then
1428 INSTALL
="$ac_cv_path_install"
1430 # As a last resort, use the slow shell script. We don't cache a
1431 # path for INSTALL within a source directory, because that will
1432 # break other packages using the cache if that directory is
1433 # removed, or if the path is relative.
1434 INSTALL
="$ac_install_sh"
1437 echo "$ac_t""$INSTALL" 1>&6
1439 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1440 # It thinks the first close brace ends the variable substitution.
1441 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1443 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1445 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1448 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1449 echo "configure:1450: checking whether to enable maintainer-specific portions of Makefiles" >&5
1450 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1451 if test "${enable_maintainer_mode+set}" = set; then
1452 enableval
="$enable_maintainer_mode"
1453 USE_MAINTAINER_MODE
=$enableval
1455 USE_MAINTAINER_MODE
=no
1458 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1461 if test $USE_MAINTAINER_MODE = yes; then
1462 MAINTAINER_MODE_TRUE
=
1463 MAINTAINER_MODE_FALSE
='#'
1465 MAINTAINER_MODE_TRUE
='#'
1466 MAINTAINER_MODE_FALSE
=
1468 MAINT
=$MAINTAINER_MODE_TRUE
1472 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1473 # at least currently, we never actually build a program, so we never
1474 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1475 # fails, because we are probably configuring with a cross compiler
1476 # which can't create executables. So we include AC_EXEEXT to keep
1477 # automake happy, but we don't execute it, since we don't care about
1482 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1483 echo "configure:1484: checking for executable suffix" >&5
1484 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1491 echo 'int main () { return 0; }' > conftest.
$ac_ext
1493 if { (eval echo configure
:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1494 for file in conftest.
*; do
1496 *.c |
*.o |
*.obj
) ;;
1497 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1501 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1504 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1509 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1510 echo "$ac_t""${ac_cv_exeext}" 1>&6
1515 .
${newlib_basedir}/configure.
host
1517 newlib_cflags
="${newlib_cflags} -fno-builtin"
1519 NEWLIB_CFLAGS
=${newlib_cflags}
1527 if test x
${newlib_elix_level} = x0
; then
1529 ELIX_LEVEL_0_FALSE
='#'
1531 ELIX_LEVEL_0_TRUE
='#'
1536 if test x
${newlib_elix_level} = x1
; then
1538 ELIX_LEVEL_1_FALSE
='#'
1540 ELIX_LEVEL_1_TRUE
='#'
1545 if test x
${newlib_elix_level} = x2
; then
1547 ELIX_LEVEL_2_FALSE
='#'
1549 ELIX_LEVEL_2_TRUE
='#'
1554 if test x
${newlib_elix_level} = x3
; then
1556 ELIX_LEVEL_3_FALSE
='#'
1558 ELIX_LEVEL_3_TRUE
='#'
1563 if test x
${newlib_elix_level} = x4
; then
1565 ELIX_LEVEL_4_FALSE
='#'
1567 ELIX_LEVEL_4_TRUE
='#'
1573 if test x
${use_libtool} = xyes
; then
1575 USE_LIBTOOL_FALSE
='#'
1577 USE_LIBTOOL_TRUE
='#'
1581 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
1582 # use oext, which is set in configure.host based on the target platform.
1595 cat > confcache
<<\EOF
1596 # This file is a shell script that caches the results of configure
1597 # tests run on this system so they can be shared between configure
1598 # scripts and configure runs. It is not useful on other systems.
1599 # If it contains results you don't want to keep, you may remove or edit it.
1601 # By default, configure uses ./config.cache as the cache file,
1602 # creating it if it does not exist already. You can give configure
1603 # the --cache-file=FILE option to use a different cache file; that is
1604 # what configure does when it calls configure scripts in
1605 # subdirectories, so they share the cache.
1606 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1607 # config.status only pays attention to the cache file if you give it the
1608 # --recheck option to rerun configure.
1611 # The following way of writing the cache mishandles newlines in values,
1612 # but we know of no workaround that is simple, portable, and efficient.
1613 # So, don't put newlines in cache variables' values.
1614 # Ultrix sh set writes to stderr and can't be redirected directly,
1615 # and sets the high bit in the cache file unless we assign to the vars.
1617 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1619 # `set' does not quote correctly, so add quotes (double-quote substitution
1620 # turns \\\\ into \\, and sed turns \\ into \).
1622 -e "s/'/'\\\\''/g" \
1623 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1626 # `set' quotes correctly as required by POSIX, so do not add quotes.
1627 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1630 if cmp -s $cache_file confcache
; then
1633 if test -w $cache_file; then
1634 echo "updating cache $cache_file"
1635 cat confcache
> $cache_file
1637 echo "not updating unwritable cache $cache_file"
1642 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1644 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1645 # Let make expand exec_prefix.
1646 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1648 # Any assignment to VPATH causes Sun make to only execute
1649 # the first set of double-colon rules, so remove it if not needed.
1650 # If there is a colon in the path, we need to keep it.
1651 if test "x$srcdir" = x.
; then
1652 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1655 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1657 # Transform confdefs.h into DEFS.
1658 # Protect against shell expansion while executing Makefile rules.
1659 # Protect against Makefile macro expansion.
1660 cat > conftest.defs
<<\EOF
1661 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1662 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1667 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
1671 # Without the "./", some shells look in PATH for config.status.
1672 : ${CONFIG_STATUS=./config.status}
1674 echo creating $CONFIG_STATUS
1675 rm -f $CONFIG_STATUS
1676 cat > $CONFIG_STATUS <<EOF
1678 # Generated automatically by configure.
1679 # Run this file to recreate the current configuration.
1680 # This directory was configured as follows,
1681 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
1683 # $0 $ac_configure_args
1685 # Compiler output produced by configure, useful for debugging
1686 # configure, is in ./config.log if it exists.
1688 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1691 case "\$ac_option" in
1692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1693 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1694 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1695 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1696 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1698 -help | --help | --hel | --he | --h)
1699 echo "\$ac_cs_usage"; exit 0 ;;
1700 *) echo "\$ac_cs_usage"; exit 1 ;;
1704 ac_given_srcdir=$srcdir
1705 ac_given_INSTALL="$INSTALL"
1707 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1709 cat >> $CONFIG_STATUS <<EOF
1711 # Protect against being on the right side of a sed subst in config.status.
1712 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1713 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1717 s%@CFLAGS@%$CFLAGS%g
1718 s%@CPPFLAGS@%$CPPFLAGS%g
1719 s%@CXXFLAGS@%$CXXFLAGS%g
1720 s%@FFLAGS@%$FFLAGS%g
1722 s%@LDFLAGS@%$LDFLAGS%g
1724 s%@exec_prefix@%$exec_prefix%g
1725 s%@prefix@%$prefix%g
1726 s%@program_transform_name@%$program_transform_name%g
1727 s%@bindir@%$bindir%g
1728 s%@sbindir@%$sbindir%g
1729 s%@libexecdir@%$libexecdir%g
1730 s%@datadir@%$datadir%g
1731 s%@sysconfdir@%$sysconfdir%g
1732 s%@sharedstatedir@%$sharedstatedir%g
1733 s%@localstatedir@%$localstatedir%g
1734 s%@libdir@%$libdir%g
1735 s%@includedir@%$includedir%g
1736 s%@oldincludedir@%$oldincludedir%g
1737 s%@infodir@%$infodir%g
1738 s%@mandir@%$mandir%g
1739 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
1740 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
1741 s%@newlib_basedir@%$newlib_basedir%g
1743 s%@host_alias@%$host_alias%g
1744 s%@host_cpu@%$host_cpu%g
1745 s%@host_vendor@%$host_vendor%g
1746 s%@host_os@%$host_os%g
1747 s%@target@%$target%g
1748 s%@target_alias@%$target_alias%g
1749 s%@target_cpu@%$target_cpu%g
1750 s%@target_vendor@%$target_vendor%g
1751 s%@target_os@%$target_os%g
1753 s%@build_alias@%$build_alias%g
1754 s%@build_cpu@%$build_cpu%g
1755 s%@build_vendor@%$build_vendor%g
1756 s%@build_os@%$build_os%g
1757 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1758 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1759 s%@INSTALL_DATA@%$INSTALL_DATA%g
1760 s%@PACKAGE@%$PACKAGE%g
1761 s%@VERSION@%$VERSION%g
1762 s%@ACLOCAL@%$ACLOCAL%g
1763 s%@AUTOCONF@%$AUTOCONF%g
1764 s%@AUTOMAKE@%$AUTOMAKE%g
1765 s%@AUTOHEADER@%$AUTOHEADER%g
1766 s%@MAKEINFO@%$MAKEINFO%g
1767 s%@SET_MAKE@%$SET_MAKE%g
1771 s%@RANLIB@%$RANLIB%g
1772 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1773 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1775 s%@EXEEXT@%$EXEEXT%g
1776 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
1777 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
1778 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
1779 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
1780 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
1781 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
1782 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
1783 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
1784 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
1785 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
1786 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
1787 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
1788 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
1789 s%@OBJEXT@%$OBJEXT%g
1792 s%@libm_machine_dir@%$libm_machine_dir%g
1793 s%@machine_dir@%$machine_dir%g
1794 s%@sys_dir@%$sys_dir%g
1799 cat >> $CONFIG_STATUS <<\EOF
1801 # Split the substitutions into bite-sized pieces for seds with
1802 # small command number limits, like on Digital OSF/1 and HP-UX.
1803 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1804 ac_file=1 # Number of current file.
1805 ac_beg=1 # First line for current file.
1806 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1809 while $ac_more_lines; do
1810 if test $ac_beg -gt 1; then
1811 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1813 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1815 if test ! -s conftest.s$ac_file; then
1817 rm -f conftest.s$ac_file
1819 if test -z "$ac_sed_cmds"; then
1820 ac_sed_cmds="sed -f conftest.s$ac_file"
1822 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1824 ac_file=`expr $ac_file + 1`
1826 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1829 if test -z "$ac_sed_cmds"; then
1834 cat >> $CONFIG_STATUS <<EOF
1836 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1838 cat >> $CONFIG_STATUS <<\EOF
1839 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1840 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1842 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
1843 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
1844 *) ac_file_in="${ac_file}.in" ;;
1847 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1849 # Remove last slash and all that follows it. Not all systems have dirname.
1850 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1851 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1852 # The file is in a subdirectory.
1853 test ! -d "$ac_dir" && mkdir "$ac_dir"
1854 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
1855 # A "../" for each directory in $ac_dir_suffix.
1856 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
1858 ac_dir_suffix= ac_dots=
1861 case "$ac_given_srcdir" in
1863 if test -z "$ac_dots"; then top_srcdir=.
1864 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
1865 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1867 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1868 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1871 case "$ac_given_INSTALL" in
1872 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1873 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1876 echo creating "$ac_file"
1878 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
1880 *Makefile*) ac_comsub="1i\\
1881 # $configure_input" ;;
1885 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1887 s%@configure_input@%$configure_input%g
1888 s%@srcdir@%$srcdir%g
1889 s%@top_srcdir@%$top_srcdir%g
1890 s%@INSTALL@%$INSTALL%g
1891 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1896 cat >> $CONFIG_STATUS <<EOF
1899 cat >> $CONFIG_STATUS <<\EOF
1903 chmod +x $CONFIG_STATUS
1904 rm -fr confdefs* $ac_clean_files
1905 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1