fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / machine / sh / configure
blobc3fa002c7faea5069d9e17ca4835c827de639702
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build many library versions (default)"
16 ac_help="$ac_help
17 --enable-target-optspace optimize for space"
18 ac_help="$ac_help
19 --enable-malloc-debugging indicate malloc debugging requested"
20 ac_help="$ac_help
21 --enable-newlib-mb enable multibyte support"
22 ac_help="$ac_help
23 --enable-newlib-iconv enable iconv library support"
24 ac_help="$ac_help
25 --enable-newlib-builtin-converters enable specific comma-separated list of iconv converters to be built-in"
26 ac_help="$ac_help
27 --enable-newlib-multithread enable support for multiple threads"
28 ac_help="$ac_help
29 --enable-newlib-elix-level supply desired elix library level (1-4)"
30 ac_help="$ac_help
31 --disable-newlib-io-float disable printf/scanf family float support"
32 ac_help="$ac_help
33 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
34 ac_help="$ac_help
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.
41 build=NONE
42 cache_file=./config.cache
43 exec_prefix=NONE
44 host=NONE
45 no_create=
46 nonopt=NONE
47 no_recursion=
48 prefix=NONE
49 program_prefix=NONE
50 program_suffix=NONE
51 program_transform_name=s,x,x,
52 silent=
53 site=
54 srcdir=
55 target=NONE
56 verbose=
57 x_includes=NONE
58 x_libraries=NONE
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.
73 subdirs=
74 MFLAGS= MAKEFLAGS=
75 SHELL=${CONFIG_SHELL-/bin/sh}
76 # Maximum number of lines to put in a shell here document.
77 ac_max_here_lines=12
79 ac_prev=
80 for ac_option
83 # If the previous option needs an argument, assign it.
84 if test -n "$ac_prev"; then
85 eval "$ac_prev=\$ac_option"
86 ac_prev=
87 continue
90 case "$ac_option" in
91 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 *) ac_optarg= ;;
93 esac
95 # Accept the important Cygnus configure options, so we can diagnose typos.
97 case "$ac_option" in
99 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 ac_prev=bindir ;;
101 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
102 bindir="$ac_optarg" ;;
104 -build | --build | --buil | --bui | --bu)
105 ac_prev=build ;;
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)
117 ac_prev=datadir ;;
118 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119 | --da=*)
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'`
138 case "$ac_option" in
139 *=*) ;;
140 *) ac_optarg=yes ;;
141 esac
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.
155 with_gas=yes ;;
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.
160 cat << EOF
161 Usage: configure [options] [host]
162 Options: [defaults in brackets after descriptions]
163 Configuration:
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
171 [$ac_default_prefix]
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
173 [same as prefix]
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
178 [PREFIX/share]
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
181 [PREFIX/com]
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
194 cat << EOF
195 Host type:
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"
210 exit 0 ;;
212 -host | --host | --hos | --ho)
213 ac_prev=host ;;
214 -host=* | --host=* | --hos=* | --ho=*)
215 host="$ac_optarg" ;;
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)
225 ac_prev=infodir ;;
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
229 -libdir | --libdir | --libdi | --libd)
230 ac_prev=libdir ;;
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)
251 ac_prev=mandir ;;
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
255 -nfp | --nfp | --nf)
256 # Obsolete; use --without-fp.
257 with_fp=no ;;
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 | --no-cr | --no-c)
261 no_create=yes ;;
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265 no_recursion=yes ;;
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)
277 ac_prev=prefix ;;
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)
314 silent=yes ;;
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317 ac_prev=sbindir ;;
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319 | --sbi=* | --sb=*)
320 sbindir="$ac_optarg" ;;
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
325 | --sha | --sh)
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330 | --sha=* | --sh=*)
331 sharedstatedir="$ac_optarg" ;;
333 -site | --site | --sit)
334 ac_prev=site ;;
335 -site=* | --site=* | --sit=*)
336 site="$ac_optarg" ;;
338 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
339 ac_prev=srcdir ;;
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)
351 ac_prev=target ;;
352 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
353 target="$ac_optarg" ;;
355 -v | -verbose | --verbose | --verbos | --verbo | --verb)
356 verbose=yes ;;
358 -version | --version | --versio | --versi | --vers)
359 echo "configure generated by autoconf version 2.13"
360 exit 0 ;;
362 -with-* | --with-*)
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'`
369 case "$ac_option" in
370 *=*) ;;
371 *) ac_optarg=yes ;;
372 esac
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" ;;
384 --x)
385 # Obsolete; use --with-x.
386 with_x=yes ;;
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; }
412 nonopt="$ac_option"
415 esac
416 done
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:
425 # 0 standard input
426 # 1 file creation
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
433 exec 6>/dev/null
434 else
435 exec 6>&1
437 exec 5>./config.log
439 echo "\
440 This file contains any messages produced by compilers while
441 running configure, to aid debugging if configure makes a mistake.
442 " 1>&5
444 # Strip out --no-create and --no-recursion so they do not pile up.
445 # Also quote any args containing shell metacharacters.
446 ac_configure_args=
447 for ac_arg
449 case "$ac_arg" in
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" ;;
457 esac
458 done
460 # NLS nuisances.
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.
473 echo > confdefs.h
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=asm.h
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.
483 ac_prog=$0
484 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
486 srcdir=$ac_confdir
487 if test ! -r $srcdir/$ac_unique_file; then
488 srcdir=..
490 else
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; }
496 else
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"
506 else
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"
513 . "$ac_site_file"
515 done
517 if test -r "$cache_file"; then
518 echo "loading cache $cache_file"
519 . $cache_file
520 else
521 echo "creating cache $cache_file"
522 > $cache_file
525 ac_ext=c
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
532 ac_exeext=
533 ac_objext=o
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
537 ac_n= ac_c='
538 ' ac_t=' '
539 else
540 ac_n=-n ac_c= ac_t=
542 else
543 ac_n= ac_c='\c' ac_t=
548 ac_aux_dir=
549 for ac_dir in ../../../.. $srcdir/../../../..; do
550 if test -f $ac_dir/install-sh; then
551 ac_aux_dir=$ac_dir
552 ac_install_sh="$ac_aux_dir/install-sh -c"
553 break
554 elif test -f $ac_dir/install.sh; then
555 ac_aux_dir=$ac_dir
556 ac_install_sh="$ac_aux_dir/install.sh -c"
557 break
559 done
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
574 # IRIX /sbin/install
575 # AIX /bin/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
585 else
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.
589 case "$ac_dir/" in
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
594 # by default.
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.
601 else
602 ac_cv_path_install="$ac_dir/$ac_prog -c"
603 break 2
606 done
608 esac
609 done
610 IFS="$ac_save_IFS"
613 if test "${ac_cv_path_install+set}" = set; then
614 INSTALL="$ac_cv_path_install"
615 else
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
635 # Just in case
636 sleep 1
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
642 # directory).
643 if (
644 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
645 if test "$*" = "X"; then
646 # -L didn't work.
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
662 then
663 # Ok.
665 else
666 { echo "configure: error: newly created file is older than distributed files!
667 Check your system clock" 1>&2; exit 1; }
669 rm -f conftest*
670 echo "$ac_t""yes" 1>&6
671 if test "$program_transform_name" = s,x,x,; then
672 program_transform_name=
673 else
674 # Double any \ or $. echo might interpret backslashes.
675 cat <<\EOF_SED > conftestsed
676 s,\\,\\\\,g; s,\$,$$,g
677 EOF_SED
678 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
679 rm -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
695 else
696 cat > conftestmake <<\EOF
697 all:
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
704 else
705 eval ac_cv_prog_make_${ac_make}_set=no
707 rm -f conftestmake
709 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
710 echo "$ac_t""yes" 1>&6
711 SET_MAKE=
712 else
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}-
719 else
720 ac_tool_prefix=
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
727 else
728 cat > conftest.$ac_ext <<EOF
729 #line 730 "configure"
730 #include "confdefs.h"
732 int main() {
734 #ifndef __CYGWIN__
735 #define __CYGWIN__ __CYGWIN32__
736 #endif
737 return __CYGWIN__;
738 ; return 0; }
740 if { (eval echo configure:741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
741 rm -rf conftest*
742 ac_cv_cygwin=yes
743 else
744 echo "configure: failed program was:" >&5
745 cat conftest.$ac_ext >&5
746 rm -rf conftest*
747 ac_cv_cygwin=no
749 rm -f conftest*
750 rm -f conftest*
753 echo "$ac_t""$ac_cv_cygwin" 1>&6
754 CYGWIN=
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
760 else
761 cat > conftest.$ac_ext <<EOF
762 #line 763 "configure"
763 #include "confdefs.h"
765 int main() {
766 return __MINGW32__;
767 ; return 0; }
769 if { (eval echo configure:770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
770 rm -rf conftest*
771 ac_cv_mingw32=yes
772 else
773 echo "configure: failed program was:" >&5
774 cat conftest.$ac_ext >&5
775 rm -rf conftest*
776 ac_cv_mingw32=no
778 rm -f conftest*
779 rm -f conftest*
782 echo "$ac_t""$ac_cv_mingw32" 1>&6
783 MINGW32=
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
790 yes) multilib=yes ;;
791 no) multilib=no ;;
792 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
793 esac
794 else
795 multilib=yes
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; } ;;
805 esac
806 else
807 target_optspace=
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; } ;;
817 esac
818 else
819 malloc_debugging=
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 ;;
827 no) newlib_mb=no ;;
828 *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
829 esac
830 else
831 newlib_mb=
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; } ;;
841 esac
842 else
843 newlib_iconv=
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}
854 else
855 builtin_converters=
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; } ;;
865 esac
866 else
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; } ;;
880 esac
881 else
882 newlib_elix_level=0
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; } ;;
892 esac
893 else
894 newlib_io_float=yes
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; } ;;
904 esac
905 else
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='#'
914 else
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}../../../.."
925 else
926 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
928 else
929 newlib_basedir="${srcdir}/../../.."
934 # Do some error checking and defaulting for the host and target type.
935 # The inputs are:
936 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
938 # The rules are:
939 # 1. You are not allowed to specify --host, --target, and nonopt at the
940 # same time.
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; } ;;
952 esac
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
963 host_alias=$host
964 case "$host_alias" in
965 NONE)
966 case $nonopt in
967 NONE)
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; }
970 fi ;;
971 *) host_alias=$nonopt ;;
972 esac ;;
973 esac
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
984 target_alias=$target
985 case "$target_alias" in
986 NONE)
987 case $nonopt in
988 NONE) target_alias=$host_alias ;;
989 *) target_alias=$nonopt ;;
990 esac ;;
991 esac
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
1002 build_alias=$build
1003 case "$build_alias" in
1004 NONE)
1005 case $nonopt in
1006 NONE) build_alias=$host_alias ;;
1007 *) build_alias=$nonopt ;;
1008 esac ;;
1009 esac
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" = \
1019 NONENONEs,x,x, &&
1020 program_prefix=${target_alias}-
1024 PACKAGE=newlib
1026 VERSION=1.12.0
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
1050 else
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
1061 AUTOCONF=autoconf
1062 echo "$ac_t""found" 1>&6
1063 else
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
1076 else
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
1089 else
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
1100 MAKEINFO=makeinfo
1101 echo "$ac_t""found" 1>&6
1102 else
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
1113 # itself.
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
1123 else
1124 if test -n "$CC"; then
1125 ac_cv_prog_CC="$CC" # Let the user override the test.
1126 else
1127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1128 ac_dummy="$PATH"
1129 for ac_dir in $ac_dummy; do
1130 test -z "$ac_dir" && ac_dir=.
1131 if test -f $ac_dir/$ac_word; then
1132 ac_cv_prog_CC="gcc"
1133 break
1135 done
1136 IFS="$ac_save_ifs"
1139 CC="$ac_cv_prog_CC"
1140 if test -n "$CC"; then
1141 echo "$ac_t""$CC" 1>&6
1142 else
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
1153 else
1154 if test -n "$CC"; then
1155 ac_cv_prog_CC="$CC" # Let the user override the test.
1156 else
1157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1158 ac_prog_rejected=no
1159 ac_dummy="$PATH"
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
1165 continue
1167 ac_cv_prog_CC="cc"
1168 break
1170 done
1171 IFS="$ac_save_ifs"
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
1175 shift
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.
1180 shift
1181 set dummy "$ac_dir/$ac_word" "$@"
1182 shift
1183 ac_cv_prog_CC="$@"
1188 CC="$ac_cv_prog_CC"
1189 if test -n "$CC"; then
1190 echo "$ac_t""$CC" 1>&6
1191 else
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
1202 else
1203 cat > conftest.c <<EOF
1204 #ifdef __GNUC__
1205 yes;
1206 #endif
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
1209 ac_cv_prog_gcc=yes
1210 else
1211 ac_cv_prog_gcc=no
1215 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1217 if test $ac_cv_prog_gcc = yes; then
1218 GCC=yes
1219 ac_test_CFLAGS="${CFLAGS+set}"
1220 ac_save_CFLAGS="$CFLAGS"
1221 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
1226 else
1227 echo 'void f(){}' > conftest.c
1228 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1229 ac_cv_prog_cc_g=yes
1230 else
1231 ac_cv_prog_cc_g=no
1233 rm -f conftest*
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
1241 CFLAGS="-g -O2"
1242 else
1243 CFLAGS="-O2"
1245 else
1246 GCC=
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
1257 else
1258 if test -n "$AS"; then
1259 ac_cv_prog_AS="$AS" # Let the user override the test.
1260 else
1261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1262 ac_dummy="$PATH"
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"
1267 break
1269 done
1270 IFS="$ac_save_ifs"
1271 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1274 AS="$ac_cv_prog_AS"
1275 if test -n "$AS"; then
1276 echo "$ac_t""$AS" 1>&6
1277 else
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
1289 else
1290 if test -n "$AR"; then
1291 ac_cv_prog_AR="$AR" # Let the user override the test.
1292 else
1293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1294 ac_dummy="$PATH"
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"
1299 break
1301 done
1302 IFS="$ac_save_ifs"
1303 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1306 AR="$ac_cv_prog_AR"
1307 if test -n "$AR"; then
1308 echo "$ac_t""$AR" 1>&6
1309 else
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
1321 else
1322 if test -n "$RANLIB"; then
1323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1324 else
1325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1326 ac_dummy="$PATH"
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"
1331 break
1333 done
1334 IFS="$ac_save_ifs"
1337 RANLIB="$ac_cv_prog_RANLIB"
1338 if test -n "$RANLIB"; then
1339 echo "$ac_t""$RANLIB" 1>&6
1340 else
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
1353 else
1354 if test -n "$RANLIB"; then
1355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1356 else
1357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1358 ac_dummy="$PATH"
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"
1363 break
1365 done
1366 IFS="$ac_save_ifs"
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
1373 else
1374 echo "$ac_t""no" 1>&6
1377 else
1378 RANLIB=":"
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
1389 # AIX /bin/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
1399 else
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.
1403 case "$ac_dir/" in
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
1408 # by default.
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.
1415 else
1416 ac_cv_path_install="$ac_dir/$ac_prog -c"
1417 break 2
1420 done
1422 esac
1423 done
1424 IFS="$ac_save_IFS"
1427 if test "${ac_cv_path_install+set}" = set; then
1428 INSTALL="$ac_cv_path_install"
1429 else
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
1454 else
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='#'
1464 else
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
1478 # the result.
1479 if false; then
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
1486 else
1487 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1488 ac_cv_exeext=.exe
1489 else
1490 rm -f conftest*
1491 echo 'int main () { return 0; }' > conftest.$ac_ext
1492 ac_cv_exeext=
1493 if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1494 for file in conftest.*; do
1495 case $file in
1496 *.c | *.o | *.obj) ;;
1497 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1498 esac
1499 done
1500 else
1501 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1503 rm -f conftest*
1504 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1508 EXEEXT=""
1509 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1510 echo "$ac_t""${ac_cv_exeext}" 1>&6
1511 ac_exeext=$EXEEXT
1515 . ${newlib_basedir}/configure.host
1517 newlib_cflags="${newlib_cflags} -fno-builtin"
1519 NEWLIB_CFLAGS=${newlib_cflags}
1522 LDFLAGS=${ldflags}
1527 if test x${newlib_elix_level} = x0; then
1528 ELIX_LEVEL_0_TRUE=
1529 ELIX_LEVEL_0_FALSE='#'
1530 else
1531 ELIX_LEVEL_0_TRUE='#'
1532 ELIX_LEVEL_0_FALSE=
1536 if test x${newlib_elix_level} = x1; then
1537 ELIX_LEVEL_1_TRUE=
1538 ELIX_LEVEL_1_FALSE='#'
1539 else
1540 ELIX_LEVEL_1_TRUE='#'
1541 ELIX_LEVEL_1_FALSE=
1545 if test x${newlib_elix_level} = x2; then
1546 ELIX_LEVEL_2_TRUE=
1547 ELIX_LEVEL_2_FALSE='#'
1548 else
1549 ELIX_LEVEL_2_TRUE='#'
1550 ELIX_LEVEL_2_FALSE=
1554 if test x${newlib_elix_level} = x3; then
1555 ELIX_LEVEL_3_TRUE=
1556 ELIX_LEVEL_3_FALSE='#'
1557 else
1558 ELIX_LEVEL_3_TRUE='#'
1559 ELIX_LEVEL_3_FALSE=
1563 if test x${newlib_elix_level} = x4; then
1564 ELIX_LEVEL_4_TRUE=
1565 ELIX_LEVEL_4_FALSE='#'
1566 else
1567 ELIX_LEVEL_4_TRUE='#'
1568 ELIX_LEVEL_4_FALSE=
1573 if test x${use_libtool} = xyes; then
1574 USE_LIBTOOL_TRUE=
1575 USE_LIBTOOL_FALSE='#'
1576 else
1577 USE_LIBTOOL_TRUE='#'
1578 USE_LIBTOOL_FALSE=
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.
1583 OBJEXT=${oext}
1594 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1595 echo "configure:1596: checking how to run the C preprocessor" >&5
1596 # On Suns, sometimes $CPP names a directory.
1597 if test -n "$CPP" && test -d "$CPP"; then
1598 CPP=
1600 if test -z "$CPP"; then
1601 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1603 else
1604 # This must be in double quotes, not single quotes, because CPP may get
1605 # substituted into the Makefile and "${CC-cc}" will confuse make.
1606 CPP="${CC-cc} -E"
1607 # On the NeXT, cc -E runs the code through the compiler's parser,
1608 # not just through cpp.
1609 cat > conftest.$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1612 #include <assert.h>
1613 Syntax Error
1615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1616 { (eval echo configure:1617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1618 if test -z "$ac_err"; then
1620 else
1621 echo "$ac_err" >&5
1622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
1624 rm -rf conftest*
1625 CPP="${CC-cc} -E -traditional-cpp"
1626 cat > conftest.$ac_ext <<EOF
1627 #line 1628 "configure"
1628 #include "confdefs.h"
1629 #include <assert.h>
1630 Syntax Error
1632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1633 { (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1635 if test -z "$ac_err"; then
1637 else
1638 echo "$ac_err" >&5
1639 echo "configure: failed program was:" >&5
1640 cat conftest.$ac_ext >&5
1641 rm -rf conftest*
1642 CPP="${CC-cc} -nologo -E"
1643 cat > conftest.$ac_ext <<EOF
1644 #line 1645 "configure"
1645 #include "confdefs.h"
1646 #include <assert.h>
1647 Syntax Error
1649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1650 { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1652 if test -z "$ac_err"; then
1654 else
1655 echo "$ac_err" >&5
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1658 rm -rf conftest*
1659 CPP=/lib/cpp
1661 rm -f conftest*
1663 rm -f conftest*
1665 rm -f conftest*
1666 ac_cv_prog_CPP="$CPP"
1668 CPP="$ac_cv_prog_CPP"
1669 else
1670 ac_cv_prog_CPP="$CPP"
1672 echo "$ac_t""$CPP" 1>&6
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1678 #if __SH5__
1680 #endif
1683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1684 egrep "sh5" >/dev/null 2>&1; then
1685 rm -rf conftest*
1686 have_sh64=yes
1687 else
1688 rm -rf conftest*
1689 have_sh64=no
1691 rm -f conftest*
1695 if test $have_sh64 = yes; then
1696 SH64_TRUE=
1697 SH64_FALSE='#'
1698 else
1699 SH64_TRUE='#'
1700 SH64_FALSE=
1703 trap '' 1 2 15
1704 cat > confcache <<\EOF
1705 # This file is a shell script that caches the results of configure
1706 # tests run on this system so they can be shared between configure
1707 # scripts and configure runs. It is not useful on other systems.
1708 # If it contains results you don't want to keep, you may remove or edit it.
1710 # By default, configure uses ./config.cache as the cache file,
1711 # creating it if it does not exist already. You can give configure
1712 # the --cache-file=FILE option to use a different cache file; that is
1713 # what configure does when it calls configure scripts in
1714 # subdirectories, so they share the cache.
1715 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1716 # config.status only pays attention to the cache file if you give it the
1717 # --recheck option to rerun configure.
1720 # The following way of writing the cache mishandles newlines in values,
1721 # but we know of no workaround that is simple, portable, and efficient.
1722 # So, don't put newlines in cache variables' values.
1723 # Ultrix sh set writes to stderr and can't be redirected directly,
1724 # and sets the high bit in the cache file unless we assign to the vars.
1725 (set) 2>&1 |
1726 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1727 *ac_space=\ *)
1728 # `set' does not quote correctly, so add quotes (double-quote substitution
1729 # turns \\\\ into \\, and sed turns \\ into \).
1730 sed -n \
1731 -e "s/'/'\\\\''/g" \
1732 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1735 # `set' quotes correctly as required by POSIX, so do not add quotes.
1736 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1738 esac >> confcache
1739 if cmp -s $cache_file confcache; then
1741 else
1742 if test -w $cache_file; then
1743 echo "updating cache $cache_file"
1744 cat confcache > $cache_file
1745 else
1746 echo "not updating unwritable cache $cache_file"
1749 rm -f confcache
1751 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1753 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1754 # Let make expand exec_prefix.
1755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1757 # Any assignment to VPATH causes Sun make to only execute
1758 # the first set of double-colon rules, so remove it if not needed.
1759 # If there is a colon in the path, we need to keep it.
1760 if test "x$srcdir" = x.; then
1761 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1764 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1766 # Transform confdefs.h into DEFS.
1767 # Protect against shell expansion while executing Makefile rules.
1768 # Protect against Makefile macro expansion.
1769 cat > conftest.defs <<\EOF
1770 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1771 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1772 s%\[%\\&%g
1773 s%\]%\\&%g
1774 s%\$%$$%g
1776 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1777 rm -f conftest.defs
1780 # Without the "./", some shells look in PATH for config.status.
1781 : ${CONFIG_STATUS=./config.status}
1783 echo creating $CONFIG_STATUS
1784 rm -f $CONFIG_STATUS
1785 cat > $CONFIG_STATUS <<EOF
1786 #! /bin/sh
1787 # Generated automatically by configure.
1788 # Run this file to recreate the current configuration.
1789 # This directory was configured as follows,
1790 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1792 # $0 $ac_configure_args
1794 # Compiler output produced by configure, useful for debugging
1795 # configure, is in ./config.log if it exists.
1797 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1798 for ac_option
1800 case "\$ac_option" in
1801 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1802 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1803 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1804 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1805 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1806 exit 0 ;;
1807 -help | --help | --hel | --he | --h)
1808 echo "\$ac_cs_usage"; exit 0 ;;
1809 *) echo "\$ac_cs_usage"; exit 1 ;;
1810 esac
1811 done
1813 ac_given_srcdir=$srcdir
1814 ac_given_INSTALL="$INSTALL"
1816 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1818 cat >> $CONFIG_STATUS <<EOF
1820 # Protect against being on the right side of a sed subst in config.status.
1821 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1822 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1823 $ac_vpsub
1824 $extrasub
1825 s%@SHELL@%$SHELL%g
1826 s%@CFLAGS@%$CFLAGS%g
1827 s%@CPPFLAGS@%$CPPFLAGS%g
1828 s%@CXXFLAGS@%$CXXFLAGS%g
1829 s%@FFLAGS@%$FFLAGS%g
1830 s%@DEFS@%$DEFS%g
1831 s%@LDFLAGS@%$LDFLAGS%g
1832 s%@LIBS@%$LIBS%g
1833 s%@exec_prefix@%$exec_prefix%g
1834 s%@prefix@%$prefix%g
1835 s%@program_transform_name@%$program_transform_name%g
1836 s%@bindir@%$bindir%g
1837 s%@sbindir@%$sbindir%g
1838 s%@libexecdir@%$libexecdir%g
1839 s%@datadir@%$datadir%g
1840 s%@sysconfdir@%$sysconfdir%g
1841 s%@sharedstatedir@%$sharedstatedir%g
1842 s%@localstatedir@%$localstatedir%g
1843 s%@libdir@%$libdir%g
1844 s%@includedir@%$includedir%g
1845 s%@oldincludedir@%$oldincludedir%g
1846 s%@infodir@%$infodir%g
1847 s%@mandir@%$mandir%g
1848 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
1849 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
1850 s%@newlib_basedir@%$newlib_basedir%g
1851 s%@host@%$host%g
1852 s%@host_alias@%$host_alias%g
1853 s%@host_cpu@%$host_cpu%g
1854 s%@host_vendor@%$host_vendor%g
1855 s%@host_os@%$host_os%g
1856 s%@target@%$target%g
1857 s%@target_alias@%$target_alias%g
1858 s%@target_cpu@%$target_cpu%g
1859 s%@target_vendor@%$target_vendor%g
1860 s%@target_os@%$target_os%g
1861 s%@build@%$build%g
1862 s%@build_alias@%$build_alias%g
1863 s%@build_cpu@%$build_cpu%g
1864 s%@build_vendor@%$build_vendor%g
1865 s%@build_os@%$build_os%g
1866 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1867 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1868 s%@INSTALL_DATA@%$INSTALL_DATA%g
1869 s%@PACKAGE@%$PACKAGE%g
1870 s%@VERSION@%$VERSION%g
1871 s%@ACLOCAL@%$ACLOCAL%g
1872 s%@AUTOCONF@%$AUTOCONF%g
1873 s%@AUTOMAKE@%$AUTOMAKE%g
1874 s%@AUTOHEADER@%$AUTOHEADER%g
1875 s%@MAKEINFO@%$MAKEINFO%g
1876 s%@SET_MAKE@%$SET_MAKE%g
1877 s%@CC@%$CC%g
1878 s%@AS@%$AS%g
1879 s%@AR@%$AR%g
1880 s%@RANLIB@%$RANLIB%g
1881 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1882 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1883 s%@MAINT@%$MAINT%g
1884 s%@EXEEXT@%$EXEEXT%g
1885 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
1886 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
1887 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
1888 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
1889 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
1890 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
1891 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
1892 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
1893 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
1894 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
1895 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
1896 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
1897 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
1898 s%@OBJEXT@%$OBJEXT%g
1899 s%@oext@%$oext%g
1900 s%@aext@%$aext%g
1901 s%@libm_machine_dir@%$libm_machine_dir%g
1902 s%@machine_dir@%$machine_dir%g
1903 s%@sys_dir@%$sys_dir%g
1904 s%@CPP@%$CPP%g
1905 s%@SH64_TRUE@%$SH64_TRUE%g
1906 s%@SH64_FALSE@%$SH64_FALSE%g
1908 CEOF
1911 cat >> $CONFIG_STATUS <<\EOF
1913 # Split the substitutions into bite-sized pieces for seds with
1914 # small command number limits, like on Digital OSF/1 and HP-UX.
1915 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1916 ac_file=1 # Number of current file.
1917 ac_beg=1 # First line for current file.
1918 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1919 ac_more_lines=:
1920 ac_sed_cmds=""
1921 while $ac_more_lines; do
1922 if test $ac_beg -gt 1; then
1923 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1924 else
1925 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1927 if test ! -s conftest.s$ac_file; then
1928 ac_more_lines=false
1929 rm -f conftest.s$ac_file
1930 else
1931 if test -z "$ac_sed_cmds"; then
1932 ac_sed_cmds="sed -f conftest.s$ac_file"
1933 else
1934 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1936 ac_file=`expr $ac_file + 1`
1937 ac_beg=$ac_end
1938 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1940 done
1941 if test -z "$ac_sed_cmds"; then
1942 ac_sed_cmds=cat
1946 cat >> $CONFIG_STATUS <<EOF
1948 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1950 cat >> $CONFIG_STATUS <<\EOF
1951 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1952 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1953 case "$ac_file" in
1954 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1955 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1956 *) ac_file_in="${ac_file}.in" ;;
1957 esac
1959 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1961 # Remove last slash and all that follows it. Not all systems have dirname.
1962 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1963 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1964 # The file is in a subdirectory.
1965 test ! -d "$ac_dir" && mkdir "$ac_dir"
1966 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1967 # A "../" for each directory in $ac_dir_suffix.
1968 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1969 else
1970 ac_dir_suffix= ac_dots=
1973 case "$ac_given_srcdir" in
1974 .) srcdir=.
1975 if test -z "$ac_dots"; then top_srcdir=.
1976 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1977 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1978 *) # Relative path.
1979 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1980 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1981 esac
1983 case "$ac_given_INSTALL" in
1984 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1985 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1986 esac
1988 echo creating "$ac_file"
1989 rm -f "$ac_file"
1990 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1991 case "$ac_file" in
1992 *Makefile*) ac_comsub="1i\\
1993 # $configure_input" ;;
1994 *) ac_comsub= ;;
1995 esac
1997 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1998 sed -e "$ac_comsub
1999 s%@configure_input@%$configure_input%g
2000 s%@srcdir@%$srcdir%g
2001 s%@top_srcdir@%$top_srcdir%g
2002 s%@INSTALL@%$INSTALL%g
2003 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2004 fi; done
2005 rm -f conftest.s*
2008 cat >> $CONFIG_STATUS <<EOF
2011 cat >> $CONFIG_STATUS <<\EOF
2013 exit 0
2015 chmod +x $CONFIG_STATUS
2016 rm -fr confdefs* $ac_clean_files
2017 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1