]> sourceware.org Git - newlib-cygwin.git/blame - newlib/libc/machine/h8300/configure
2004-01-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
[newlib-cygwin.git] / newlib / libc / machine / h8300 / configure
CommitLineData
8a0efa53
CF
1#! /bin/sh
2
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.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-multilib build many library versions (default)"
16ac_help="$ac_help
17 --enable-target-optspace optimize for space"
3ac6f3a7
JJ
18ac_help="$ac_help
19 --enable-malloc-debugging indicate malloc debugging requested"
8a0efa53
CF
20ac_help="$ac_help
21 --enable-newlib-mb enable multibyte support"
786ab12c
JJ
22ac_help="$ac_help
23 --enable-newlib-iconv enable iconv library support"
24ac_help="$ac_help
25 --enable-newlib-builtin-converters enable specific comma-separated list of iconv converters to be built-in"
0c048a9a
TF
26ac_help="$ac_help
27 --enable-newlib-multithread enable support for multiple threads"
a8615092
JJ
28ac_help="$ac_help
29 --enable-newlib-elix-level supply desired elix library level (1-4)"
afecf2fa
JJ
30ac_help="$ac_help
31 --disable-newlib-io-float disable printf/scanf family float support"
313f1349
JJ
32ac_help="$ac_help
33 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
8a0efa53
CF
34ac_help="$ac_help
35 --enable-maintainer-mode enable make rules and dependencies not useful
36 (and sometimes confusing) to the casual installer"
37
38# Initialize some variables set by options.
39# The variables have the same names as the options, with
40# dashes changed to underlines.
41build=NONE
42cache_file=./config.cache
43exec_prefix=NONE
44host=NONE
45no_create=
46nonopt=NONE
47no_recursion=
48prefix=NONE
49program_prefix=NONE
50program_suffix=NONE
51program_transform_name=s,x,x,
52silent=
53site=
8a0efa53
CF
54srcdir=
55target=NONE
56verbose=
57x_includes=NONE
58x_libraries=NONE
59bindir='${exec_prefix}/bin'
60sbindir='${exec_prefix}/sbin'
61libexecdir='${exec_prefix}/libexec'
62datadir='${prefix}/share'
63sysconfdir='${prefix}/etc'
64sharedstatedir='${prefix}/com'
65localstatedir='${prefix}/var'
66libdir='${exec_prefix}/lib'
67includedir='${prefix}/include'
68oldincludedir='/usr/include'
69infodir='${prefix}/info'
70mandir='${prefix}/man'
71
72# Initialize some other variables.
73subdirs=
74MFLAGS= MAKEFLAGS=
75SHELL=${CONFIG_SHELL-/bin/sh}
76# Maximum number of lines to put in a shell here document.
77ac_max_here_lines=12
78
79ac_prev=
80for ac_option
81do
82
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
88 fi
89
90 case "$ac_option" in
91 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 *) ac_optarg= ;;
93 esac
94
95 # Accept the important Cygnus configure options, so we can diagnose typos.
96
97 case "$ac_option" in
98
99 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 ac_prev=bindir ;;
101 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
102 bindir="$ac_optarg" ;;
103
104 -build | --build | --buil | --bui | --bu)
105 ac_prev=build ;;
106 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
107 build="$ac_optarg" ;;
108
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" ;;
115
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" ;;
121
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; }
127 fi
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}=no" ;;
130
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; }
136 fi
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'" ;;
143
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" ;;
152
153 -gas | --gas | --ga | --g)
154 # Obsolete; use --with-gas.
155 with_gas=yes ;;
156
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
161Usage: configure [options] [host]
162Options: [defaults in brackets after descriptions]
163Configuration:
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
8a0efa53
CF
168 --version print the version of autoconf that created configure
169Directory 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
193EOF
194 cat << EOF
195Host 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]
199Features 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
206EOF
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
209 fi
210 exit 0 ;;
211
212 -host | --host | --hos | --ho)
213 ac_prev=host ;;
214 -host=* | --host=* | --hos=* | --ho=*)
215 host="$ac_optarg" ;;
216
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" ;;
223
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
225 ac_prev=infodir ;;
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
228
229 -libdir | --libdir | --libdi | --libd)
230 ac_prev=libdir ;;
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
233
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" ;;
240
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" ;;
249
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251 ac_prev=mandir ;;
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
254
255 -nfp | --nfp | --nf)
256 # Obsolete; use --without-fp.
257 with_fp=no ;;
258
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 | --no-cr | --no-c)
261 no_create=yes ;;
262
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 ;;
266
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" ;;
275
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277 ac_prev=prefix ;;
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
280
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" ;;
287
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" ;;
294
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" ;;
311
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
314 silent=yes ;;
315
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" ;;
321
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" ;;
332
333 -site | --site | --sit)
334 ac_prev=site ;;
335 -site=* | --site=* | --sit=*)
336 site="$ac_optarg" ;;
337
8a0efa53
CF
338 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
339 ac_prev=srcdir ;;
340 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
341 srcdir="$ac_optarg" ;;
342
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" ;;
349
350 -target | --target | --targe | --targ | --tar | --ta | --t)
351 ac_prev=target ;;
352 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
353 target="$ac_optarg" ;;
354
355 -v | -verbose | --verbose | --verbos | --verbo | --verb)
356 verbose=yes ;;
357
358 -version | --version | --versio | --versi | --vers)
359 echo "configure generated by autoconf version 2.13"
360 exit 0 ;;
361
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; }
367 fi
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'" ;;
374
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; }
380 fi
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}=no" ;;
383
384 --x)
385 # Obsolete; use --with-x.
386 with_x=yes ;;
387
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" ;;
394
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" ;;
401
402 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 ;;
404
405 *)
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
408 fi
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; }
411 fi
412 nonopt="$ac_option"
413 ;;
414
415 esac
416done
417
418if test -n "$ac_prev"; then
419 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420fi
421
422trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423
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
432if test "$silent" = yes; then
433 exec 6>/dev/null
434else
435 exec 6>&1
436fi
437exec 5>./config.log
438
439echo "\
440This file contains any messages produced by compilers while
441running configure, to aid debugging if configure makes a mistake.
442" 1>&5
443
444# Strip out --no-create and --no-recursion so they do not pile up.
445# Also quote any args containing shell metacharacters.
446ac_configure_args=
447for ac_arg
448do
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
458done
459
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.
465if test "${LANG+set}" = set; then LANG=C; export LANG; fi
466if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
467if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
468if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
469
470# confdefs.h avoids OS command line length limits that DEFS can exceed.
471rm -rf conftest* confdefs.h
472# AIX cpp loses on an empty file, so make sure it contains at least a newline.
473echo > confdefs.h
474
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.
477ac_unique_file=memcpy.S
478
479# Find the source files, if location was not specified.
480if 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=..
489 fi
490else
491 ac_srcdir_defaulted=no
492fi
493if 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; }
498 fi
499fi
500srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501
502# Prefer explicitly selected file to automatically selected ones.
786ab12c
JJ
503if 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"
8a0efa53 508 fi
8a0efa53
CF
509fi
510for 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"
514 fi
515done
516
517if test -r "$cache_file"; then
518 echo "loading cache $cache_file"
519 . $cache_file
520else
521 echo "creating cache $cache_file"
522 > $cache_file
523fi
524
525ac_ext=c
526# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527ac_cpp='$CPP $CPPFLAGS'
528ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530cross_compiling=$ac_cv_prog_cc_cross
531
532ac_exeext=
533ac_objext=o
534if (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=
541 fi
542else
543 ac_n= ac_c='\c' ac_t=
544fi
545
546
547
548ac_aux_dir=
549for 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
558 fi
559done
560if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
562fi
563ac_config_guess=$ac_aux_dir/config.guess
564ac_config_sub=$ac_aux_dir/config.sub
565ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
566
567
568# Find a good install program. We prefer a C program (faster),
569# so one script is as good as another. But avoid the broken or
570# incompatible versions:
571# SysV /etc/install, /usr/sbin/install
572# SunOS /usr/etc/install
573# IRIX /sbin/install
574# AIX /bin/install
575# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
576# AFS /usr/afsws/bin/install, which mishandles nonexistent args
577# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
578# ./install, which can be erroneously created by make from ./install.sh.
579echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
786ab12c 580echo "configure:581: checking for a BSD compatible install" >&5
8a0efa53
CF
581if test -z "$INSTALL"; then
582if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
583 echo $ac_n "(cached) $ac_c" 1>&6
584else
585 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
586 for ac_dir in $PATH; do
587 # Account for people who put trailing slashes in PATH elements.
588 case "$ac_dir/" in
589 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
590 *)
591 # OSF1 and SCO ODT 3.0 have their own names for install.
592 # Don't use installbsd from OSF since it installs stuff as root
593 # by default.
594 for ac_prog in ginstall scoinst install; do
595 if test -f $ac_dir/$ac_prog; then
596 if test $ac_prog = install &&
597 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
598 # AIX install. It has an incompatible calling convention.
599 :
600 else
601 ac_cv_path_install="$ac_dir/$ac_prog -c"
602 break 2
603 fi
604 fi
605 done
606 ;;
607 esac
608 done
609 IFS="$ac_save_IFS"
610
611fi
612 if test "${ac_cv_path_install+set}" = set; then
613 INSTALL="$ac_cv_path_install"
614 else
615 # As a last resort, use the slow shell script. We don't cache a
616 # path for INSTALL within a source directory, because that will
617 # break other packages using the cache if that directory is
618 # removed, or if the path is relative.
619 INSTALL="$ac_install_sh"
620 fi
621fi
622echo "$ac_t""$INSTALL" 1>&6
623
624# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
625# It thinks the first close brace ends the variable substitution.
626test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
627
628test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
629
630test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
631
632echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
786ab12c 633echo "configure:634: checking whether build environment is sane" >&5
8a0efa53
CF
634# Just in case
635sleep 1
636echo timestamp > conftestfile
637# Do `set' in a subshell so we don't clobber the current shell's
638# arguments. Must try -L first in case configure is actually a
639# symlink; some systems play weird games with the mod time of symlinks
640# (eg FreeBSD returns the mod time of the symlink's containing
641# directory).
642if (
643 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
644 if test "$*" = "X"; then
645 # -L didn't work.
646 set X `ls -t $srcdir/configure conftestfile`
647 fi
648 if test "$*" != "X $srcdir/configure conftestfile" \
649 && test "$*" != "X conftestfile $srcdir/configure"; then
650
651 # If neither matched, then we have a broken ls. This can happen
652 # if, for instance, CONFIG_SHELL is bash and it inherits a
653 # broken ls alias from the environment. This has actually
654 # happened. Such a system could not be considered "sane".
655 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
656alias in your environment" 1>&2; exit 1; }
657 fi
658
659 test "$2" = conftestfile
660 )
661then
662 # Ok.
663 :
664else
665 { echo "configure: error: newly created file is older than distributed files!
666Check your system clock" 1>&2; exit 1; }
667fi
668rm -f conftest*
669echo "$ac_t""yes" 1>&6
670if test "$program_transform_name" = s,x,x,; then
671 program_transform_name=
672else
673 # Double any \ or $. echo might interpret backslashes.
674 cat <<\EOF_SED > conftestsed
675s,\\,\\\\,g; s,\$,$$,g
676EOF_SED
677 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
678 rm -f conftestsed
679fi
680test "$program_prefix" != NONE &&
681 program_transform_name="s,^,${program_prefix},; $program_transform_name"
682# Use a double $ so make ignores it.
683test "$program_suffix" != NONE &&
684 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
685
686# sed with no file args requires a program.
687test "$program_transform_name" = "" && program_transform_name="s,x,x,"
688
689echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
786ab12c 690echo "configure:691: checking whether ${MAKE-make} sets \${MAKE}" >&5
8a0efa53
CF
691set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
692if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
694else
695 cat > conftestmake <<\EOF
696all:
697 @echo 'ac_maketemp="${MAKE}"'
698EOF
699# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
700eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
701if test -n "$ac_maketemp"; then
702 eval ac_cv_prog_make_${ac_make}_set=yes
703else
704 eval ac_cv_prog_make_${ac_make}_set=no
705fi
706rm -f conftestmake
707fi
708if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
709 echo "$ac_t""yes" 1>&6
710 SET_MAKE=
711else
712 echo "$ac_t""no" 1>&6
713 SET_MAKE="MAKE=${MAKE-make}"
714fi
715
716if test $host != $build; then
717 ac_tool_prefix=${host_alias}-
718else
719 ac_tool_prefix=
720fi
721
722echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
786ab12c 723echo "configure:724: checking for Cygwin environment" >&5
8a0efa53
CF
724if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
725 echo $ac_n "(cached) $ac_c" 1>&6
726else
727 cat > conftest.$ac_ext <<EOF
786ab12c 728#line 729 "configure"
8a0efa53
CF
729#include "confdefs.h"
730
731int main() {
732
733#ifndef __CYGWIN__
734#define __CYGWIN__ __CYGWIN32__
735#endif
736return __CYGWIN__;
737; return 0; }
738EOF
786ab12c 739if { (eval echo configure:740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8a0efa53
CF
740 rm -rf conftest*
741 ac_cv_cygwin=yes
742else
743 echo "configure: failed program was:" >&5
744 cat conftest.$ac_ext >&5
745 rm -rf conftest*
746 ac_cv_cygwin=no
747fi
748rm -f conftest*
749rm -f conftest*
750fi
751
752echo "$ac_t""$ac_cv_cygwin" 1>&6
753CYGWIN=
754test "$ac_cv_cygwin" = yes && CYGWIN=yes
755echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
786ab12c 756echo "configure:757: checking for mingw32 environment" >&5
8a0efa53
CF
757if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
758 echo $ac_n "(cached) $ac_c" 1>&6
759else
760 cat > conftest.$ac_ext <<EOF
786ab12c 761#line 762 "configure"
8a0efa53
CF
762#include "confdefs.h"
763
764int main() {
765return __MINGW32__;
766; return 0; }
767EOF
786ab12c 768if { (eval echo configure:769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8a0efa53
CF
769 rm -rf conftest*
770 ac_cv_mingw32=yes
771else
772 echo "configure: failed program was:" >&5
773 cat conftest.$ac_ext >&5
774 rm -rf conftest*
775 ac_cv_mingw32=no
776fi
777rm -f conftest*
778rm -f conftest*
779fi
780
781echo "$ac_t""$ac_cv_mingw32" 1>&6
782MINGW32=
783test "$ac_cv_mingw32" = yes && MINGW32=yes
784
785# Check whether --enable-multilib or --disable-multilib was given.
786if test "${enable_multilib+set}" = set; then
787 enableval="$enable_multilib"
788 case "${enableval}" in
789 yes) multilib=yes ;;
790 no) multilib=no ;;
791 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
792 esac
793else
794 multilib=yes
795fi
796
797# Check whether --enable-target-optspace or --disable-target-optspace was given.
798if test "${enable_target_optspace+set}" = set; then
799 enableval="$enable_target_optspace"
800 case "${enableval}" in
801 yes) target_optspace=yes ;;
802 no) target_optspace=no ;;
803 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
804 esac
805else
806 target_optspace=
807fi
808
3ac6f3a7
JJ
809# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
810if test "${enable_malloc_debugging+set}" = set; then
811 enableval="$enable_malloc_debugging"
812 case "${enableval}" in
813 yes) malloc_debugging=yes ;;
814 no) malloc_debugging=no ;;
815 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
816 esac
817else
818 malloc_debugging=
819fi
820
8a0efa53
CF
821# Check whether --enable-newlib-mb or --disable-newlib-mb was given.
822if test "${enable_newlib_mb+set}" = set; then
823 enableval="$enable_newlib_mb"
824 case "${enableval}" in
825 yes) newlib_mb=yes ;;
826 no) newlib_mb=no ;;
827 *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
828 esac
829else
a8615092 830 newlib_mb=
8a0efa53
CF
831fi
832
786ab12c
JJ
833# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
834if test "${enable_newlib_iconv+set}" = set; then
835 enableval="$enable_newlib_iconv"
836 case "${enableval}" in
837 yes) newlib_iconv=yes ;;
838 no) newlib_iconv=no ;;
839 *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;;
840 esac
841else
842 newlib_iconv=
843fi
844
845# Check whether --enable-newlib-builtin-converters or --disable-newlib-builtin-converters was given.
846if test "${enable_newlib_builtin_converters+set}" = set; then
847 enableval="$enable_newlib_builtin_converters"
848 if test x${enableval} = x; then
849 { echo "configure: error: bad value ${enableval} for newlib-builtin-converters option - use comma-separated list" 1>&2; exit 1; }
850 fi
851 builtin_converters=${enableval}
852
853else
854 builtin_converters=
855fi
856
0c048a9a
TF
857# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
858if test "${enable_newlib_multithread+set}" = set; then
859 enableval="$enable_newlib_multithread"
860 case "${enableval}" in
861 yes) newlib_multithread=yes ;;
862 no) newlib_multithread=no ;;
863 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
864 esac
865else
866 newlib_multithread=yes
867fi
868
a8615092
JJ
869# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
870if test "${enable_newlib_elix_level+set}" = set; then
871 enableval="$enable_newlib_elix_level"
872 case "${enableval}" in
873 0) newlib_elix_level=0 ;;
874 1) newlib_elix_level=1 ;;
875 2) newlib_elix_level=2 ;;
876 3) newlib_elix_level=3 ;;
877 4) newlib_elix_level=4 ;;
878 *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
879 esac
880else
881 newlib_elix_level=0
882fi
883
afecf2fa
JJ
884# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
885if test "${enable_newlib_io_float+set}" = set; then
886 enableval="$enable_newlib_io_float"
887 case "${enableval}" in
888 yes) newlib_io_float=yes ;;
889 no) newlib_io_float=no ;;
890 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
891 esac
892else
893 newlib_io_float=yes
894fi
895
313f1349
JJ
896# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
897if test "${enable_newlib_supplied_syscalls+set}" = set; then
898 enableval="$enable_newlib_supplied_syscalls"
899 case "${enableval}" in
900 yes) newlib_may_supply_syscalls=yes ;;
901 no) newlib_may_supply_syscalls=no ;;
902 *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
903 esac
904else
905 newlib_may_supply_syscalls=yes
906fi
907
908
909
910if test x${newlib_may_supply_syscalls} = xyes; then
911 MAY_SUPPLY_SYSCALLS_TRUE=
912 MAY_SUPPLY_SYSCALLS_FALSE='#'
913else
914 MAY_SUPPLY_SYSCALLS_TRUE='#'
915 MAY_SUPPLY_SYSCALLS_FALSE=
916fi
afecf2fa 917
8a0efa53
CF
918
919test -z "${with_target_subdir}" && with_target_subdir=.
920
921if test "${srcdir}" = "."; then
922 if test "${with_target_subdir}" != "."; then
923 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
924 else
925 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
926 fi
927else
928 newlib_basedir="${srcdir}/../../.."
929fi
930
931
932
eaa75b70
TF
933# Do some error checking and defaulting for the host and target type.
934# The inputs are:
935# configure --host=HOST --target=TARGET --build=BUILD NONOPT
936#
937# The rules are:
938# 1. You are not allowed to specify --host, --target, and nonopt at the
939# same time.
940# 2. Host defaults to nonopt.
941# 3. If nonopt is not specified, then host defaults to the current host,
942# as determined by config.guess.
943# 4. Target and build default to nonopt.
944# 5. If nonopt is not specified, then target and build default to host.
945
946# The aliases save the names the user supplied, while $host etc.
947# will get canonicalized.
948case $host---$target---$nonopt in
949NONE---*---* | *---NONE---* | *---*---NONE) ;;
950*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
951esac
952
953
8a0efa53
CF
954# Make sure we can run config.sub.
955if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
956else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
957fi
958
959echo $ac_n "checking host system type""... $ac_c" 1>&6
786ab12c 960echo "configure:961: checking host system type" >&5
8a0efa53
CF
961
962host_alias=$host
963case "$host_alias" in
964NONE)
965 case $nonopt in
966 NONE)
967 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
968 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
969 fi ;;
970 *) host_alias=$nonopt ;;
971 esac ;;
972esac
973
974host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
975host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
976host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
977host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
978echo "$ac_t""$host" 1>&6
979
eaa75b70 980echo $ac_n "checking target system type""... $ac_c" 1>&6
786ab12c 981echo "configure:982: checking target system type" >&5
eaa75b70
TF
982
983target_alias=$target
984case "$target_alias" in
985NONE)
986 case $nonopt in
987 NONE) target_alias=$host_alias ;;
988 *) target_alias=$nonopt ;;
989 esac ;;
990esac
991
992target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
993target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
994target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
995target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
996echo "$ac_t""$target" 1>&6
997
998echo $ac_n "checking build system type""... $ac_c" 1>&6
786ab12c 999echo "configure:1000: checking build system type" >&5
eaa75b70
TF
1000
1001build_alias=$build
1002case "$build_alias" in
1003NONE)
1004 case $nonopt in
1005 NONE) build_alias=$host_alias ;;
1006 *) build_alias=$nonopt ;;
1007 esac ;;
1008esac
1009
1010build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1011build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1012build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1013build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1014echo "$ac_t""$build" 1>&6
1015
1016test "$host_alias" != "$target_alias" &&
1017 test "$program_prefix$program_suffix$program_transform_name" = \
1018 NONENONEs,x,x, &&
1019 program_prefix=${target_alias}-
1020
8a0efa53
CF
1021
1022
1023PACKAGE=newlib
1024
60b0838f 1025VERSION=1.11.0
8a0efa53
CF
1026
1027if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1028 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1029fi
1030cat >> confdefs.h <<EOF
1031#define PACKAGE "$PACKAGE"
1032EOF
1033
1034cat >> confdefs.h <<EOF
1035#define VERSION "$VERSION"
1036EOF
1037
1038
1039
1040missing_dir=`cd $ac_aux_dir && pwd`
1041echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
786ab12c 1042echo "configure:1043: checking for working aclocal" >&5
8a0efa53
CF
1043# Run test in a subshell; some versions of sh will print an error if
1044# an executable is not found, even if stderr is redirected.
1045# Redirect stdin to placate older versions of autoconf. Sigh.
1046if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1047 ACLOCAL=aclocal
1048 echo "$ac_t""found" 1>&6
1049else
1050 ACLOCAL="$missing_dir/missing aclocal"
1051 echo "$ac_t""missing" 1>&6
1052fi
1053
1054echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
786ab12c 1055echo "configure:1056: checking for working autoconf" >&5
8a0efa53
CF
1056# Run test in a subshell; some versions of sh will print an error if
1057# an executable is not found, even if stderr is redirected.
1058# Redirect stdin to placate older versions of autoconf. Sigh.
1059if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1060 AUTOCONF=autoconf
1061 echo "$ac_t""found" 1>&6
1062else
1063 AUTOCONF="$missing_dir/missing autoconf"
1064 echo "$ac_t""missing" 1>&6
1065fi
1066
1067echo $ac_n "checking for working automake""... $ac_c" 1>&6
786ab12c 1068echo "configure:1069: checking for working automake" >&5
8a0efa53
CF
1069# Run test in a subshell; some versions of sh will print an error if
1070# an executable is not found, even if stderr is redirected.
1071# Redirect stdin to placate older versions of autoconf. Sigh.
1072if (automake --version) < /dev/null > /dev/null 2>&1; then
1073 AUTOMAKE=automake
1074 echo "$ac_t""found" 1>&6
1075else
1076 AUTOMAKE="$missing_dir/missing automake"
1077 echo "$ac_t""missing" 1>&6
1078fi
1079
1080echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
786ab12c 1081echo "configure:1082: checking for working autoheader" >&5
8a0efa53
CF
1082# Run test in a subshell; some versions of sh will print an error if
1083# an executable is not found, even if stderr is redirected.
1084# Redirect stdin to placate older versions of autoconf. Sigh.
1085if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1086 AUTOHEADER=autoheader
1087 echo "$ac_t""found" 1>&6
1088else
1089 AUTOHEADER="$missing_dir/missing autoheader"
1090 echo "$ac_t""missing" 1>&6
1091fi
1092
1093echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
786ab12c 1094echo "configure:1095: checking for working makeinfo" >&5
8a0efa53
CF
1095# Run test in a subshell; some versions of sh will print an error if
1096# an executable is not found, even if stderr is redirected.
1097# Redirect stdin to placate older versions of autoconf. Sigh.
1098if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1099 MAKEINFO=makeinfo
1100 echo "$ac_t""found" 1>&6
1101else
1102 MAKEINFO="$missing_dir/missing makeinfo"
1103 echo "$ac_t""missing" 1>&6
1104fi
1105
1106
1107
1108# FIXME: We temporarily define our own version of AC_PROG_CC. This is
1109# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1110# are probably using a cross compiler, which will not be able to fully
1111# link an executable. This should really be fixed in autoconf
1112# itself.
1113
1114
1115
1116# Extract the first word of "gcc", so it can be a program name with args.
1117set dummy gcc; ac_word=$2
1118echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1119echo "configure:1120: checking for $ac_word" >&5
8a0efa53
CF
1120if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1122else
1123 if test -n "$CC"; then
1124 ac_cv_prog_CC="$CC" # Let the user override the test.
1125else
1126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1127 ac_dummy="$PATH"
1128 for ac_dir in $ac_dummy; do
1129 test -z "$ac_dir" && ac_dir=.
1130 if test -f $ac_dir/$ac_word; then
1131 ac_cv_prog_CC="gcc"
1132 break
1133 fi
1134 done
1135 IFS="$ac_save_ifs"
1136fi
1137fi
1138CC="$ac_cv_prog_CC"
1139if test -n "$CC"; then
1140 echo "$ac_t""$CC" 1>&6
1141else
1142 echo "$ac_t""no" 1>&6
1143fi
1144
1145if test -z "$CC"; then
1146 # Extract the first word of "cc", so it can be a program name with args.
1147set dummy cc; ac_word=$2
1148echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1149echo "configure:1150: checking for $ac_word" >&5
8a0efa53
CF
1150if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1152else
1153 if test -n "$CC"; then
1154 ac_cv_prog_CC="$CC" # Let the user override the test.
1155else
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1157 ac_prog_rejected=no
1158 ac_dummy="$PATH"
1159 for ac_dir in $ac_dummy; do
1160 test -z "$ac_dir" && ac_dir=.
1161 if test -f $ac_dir/$ac_word; then
1162 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1163 ac_prog_rejected=yes
1164 continue
1165 fi
1166 ac_cv_prog_CC="cc"
1167 break
1168 fi
1169 done
1170 IFS="$ac_save_ifs"
1171if test $ac_prog_rejected = yes; then
1172 # We found a bogon in the path, so make sure we never use it.
1173 set dummy $ac_cv_prog_CC
1174 shift
1175 if test $# -gt 0; then
1176 # We chose a different compiler from the bogus one.
1177 # However, it has the same basename, so the bogon will be chosen
1178 # first if we set CC to just the basename; use the full file name.
1179 shift
1180 set dummy "$ac_dir/$ac_word" "$@"
1181 shift
1182 ac_cv_prog_CC="$@"
1183 fi
1184fi
1185fi
1186fi
1187CC="$ac_cv_prog_CC"
1188if test -n "$CC"; then
1189 echo "$ac_t""$CC" 1>&6
1190else
1191 echo "$ac_t""no" 1>&6
1192fi
1193
1194 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1195fi
1196
1197echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
786ab12c 1198echo "configure:1199: checking whether we are using GNU C" >&5
8a0efa53
CF
1199if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1201else
1202 cat > conftest.c <<EOF
1203#ifdef __GNUC__
1204 yes;
1205#endif
1206EOF
786ab12c 1207if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8a0efa53
CF
1208 ac_cv_prog_gcc=yes
1209else
1210 ac_cv_prog_gcc=no
1211fi
1212fi
1213
1214echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1215
1216if test $ac_cv_prog_gcc = yes; then
1217 GCC=yes
1218 ac_test_CFLAGS="${CFLAGS+set}"
1219 ac_save_CFLAGS="$CFLAGS"
1220 CFLAGS=
1221 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
786ab12c 1222echo "configure:1223: checking whether ${CC-cc} accepts -g" >&5
8a0efa53
CF
1223if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1225else
1226 echo 'void f(){}' > conftest.c
1227if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1228 ac_cv_prog_cc_g=yes
1229else
1230 ac_cv_prog_cc_g=no
1231fi
1232rm -f conftest*
1233
1234fi
1235
1236echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1237 if test "$ac_test_CFLAGS" = set; then
1238 CFLAGS="$ac_save_CFLAGS"
1239 elif test $ac_cv_prog_cc_g = yes; then
1240 CFLAGS="-g -O2"
1241 else
1242 CFLAGS="-O2"
1243 fi
1244else
1245 GCC=
1246 test "${CFLAGS+set}" = set || CFLAGS="-g"
1247fi
1248
1249
8a0efa53
CF
1250# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1251set dummy ${ac_tool_prefix}as; ac_word=$2
1252echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1253echo "configure:1254: checking for $ac_word" >&5
8a0efa53
CF
1254if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1256else
1257 if test -n "$AS"; then
1258 ac_cv_prog_AS="$AS" # Let the user override the test.
1259else
1260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1261 ac_dummy="$PATH"
1262 for ac_dir in $ac_dummy; do
1263 test -z "$ac_dir" && ac_dir=.
1264 if test -f $ac_dir/$ac_word; then
1265 ac_cv_prog_AS="${ac_tool_prefix}as"
1266 break
1267 fi
1268 done
1269 IFS="$ac_save_ifs"
1270 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1271fi
1272fi
1273AS="$ac_cv_prog_AS"
1274if test -n "$AS"; then
1275 echo "$ac_t""$AS" 1>&6
1276else
1277 echo "$ac_t""no" 1>&6
1278fi
1279
1280
1281
1282# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1283set dummy ${ac_tool_prefix}ar; ac_word=$2
1284echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1285echo "configure:1286: checking for $ac_word" >&5
8a0efa53
CF
1286if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1288else
1289 if test -n "$AR"; then
1290 ac_cv_prog_AR="$AR" # Let the user override the test.
1291else
1292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1293 ac_dummy="$PATH"
1294 for ac_dir in $ac_dummy; do
1295 test -z "$ac_dir" && ac_dir=.
1296 if test -f $ac_dir/$ac_word; then
1297 ac_cv_prog_AR="${ac_tool_prefix}ar"
1298 break
1299 fi
1300 done
1301 IFS="$ac_save_ifs"
1302 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1303fi
1304fi
1305AR="$ac_cv_prog_AR"
1306if test -n "$AR"; then
1307 echo "$ac_t""$AR" 1>&6
1308else
1309 echo "$ac_t""no" 1>&6
1310fi
1311
1312
1313
1314# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1315set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1316echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1317echo "configure:1318: checking for $ac_word" >&5
8a0efa53
CF
1318if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1320else
1321 if test -n "$RANLIB"; then
1322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1323else
1324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1325 ac_dummy="$PATH"
1326 for ac_dir in $ac_dummy; do
1327 test -z "$ac_dir" && ac_dir=.
1328 if test -f $ac_dir/$ac_word; then
1329 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1330 break
1331 fi
1332 done
1333 IFS="$ac_save_ifs"
1334fi
1335fi
1336RANLIB="$ac_cv_prog_RANLIB"
1337if test -n "$RANLIB"; then
1338 echo "$ac_t""$RANLIB" 1>&6
1339else
1340 echo "$ac_t""no" 1>&6
1341fi
1342
1343
1344if test -z "$ac_cv_prog_RANLIB"; then
1345if test -n "$ac_tool_prefix"; then
1346 # Extract the first word of "ranlib", so it can be a program name with args.
1347set dummy ranlib; ac_word=$2
1348echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1349echo "configure:1350: checking for $ac_word" >&5
8a0efa53
CF
1350if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1352else
1353 if test -n "$RANLIB"; then
1354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1355else
1356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1357 ac_dummy="$PATH"
1358 for ac_dir in $ac_dummy; do
1359 test -z "$ac_dir" && ac_dir=.
1360 if test -f $ac_dir/$ac_word; then
1361 ac_cv_prog_RANLIB="ranlib"
1362 break
1363 fi
1364 done
1365 IFS="$ac_save_ifs"
1366 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1367fi
1368fi
1369RANLIB="$ac_cv_prog_RANLIB"
1370if test -n "$RANLIB"; then
1371 echo "$ac_t""$RANLIB" 1>&6
1372else
1373 echo "$ac_t""no" 1>&6
1374fi
1375
1376else
1377 RANLIB=":"
1378fi
1379fi
1380
1381
1382# Find a good install program. We prefer a C program (faster),
1383# so one script is as good as another. But avoid the broken or
1384# incompatible versions:
1385# SysV /etc/install, /usr/sbin/install
1386# SunOS /usr/etc/install
1387# IRIX /sbin/install
1388# AIX /bin/install
1389# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1390# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1391# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1392# ./install, which can be erroneously created by make from ./install.sh.
1393echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
786ab12c 1394echo "configure:1395: checking for a BSD compatible install" >&5
8a0efa53
CF
1395if test -z "$INSTALL"; then
1396if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1398else
1399 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1400 for ac_dir in $PATH; do
1401 # Account for people who put trailing slashes in PATH elements.
1402 case "$ac_dir/" in
1403 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1404 *)
1405 # OSF1 and SCO ODT 3.0 have their own names for install.
1406 # Don't use installbsd from OSF since it installs stuff as root
1407 # by default.
1408 for ac_prog in ginstall scoinst install; do
1409 if test -f $ac_dir/$ac_prog; then
1410 if test $ac_prog = install &&
1411 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1412 # AIX install. It has an incompatible calling convention.
1413 :
1414 else
1415 ac_cv_path_install="$ac_dir/$ac_prog -c"
1416 break 2
1417 fi
1418 fi
1419 done
1420 ;;
1421 esac
1422 done
1423 IFS="$ac_save_IFS"
1424
1425fi
1426 if test "${ac_cv_path_install+set}" = set; then
1427 INSTALL="$ac_cv_path_install"
1428 else
1429 # As a last resort, use the slow shell script. We don't cache a
1430 # path for INSTALL within a source directory, because that will
1431 # break other packages using the cache if that directory is
1432 # removed, or if the path is relative.
1433 INSTALL="$ac_install_sh"
1434 fi
1435fi
1436echo "$ac_t""$INSTALL" 1>&6
1437
1438# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1439# It thinks the first close brace ends the variable substitution.
1440test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1441
1442test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1443
1444test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1445
1446
1447echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
786ab12c 1448echo "configure:1449: checking whether to enable maintainer-specific portions of Makefiles" >&5
8a0efa53
CF
1449 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1450if test "${enable_maintainer_mode+set}" = set; then
1451 enableval="$enable_maintainer_mode"
1452 USE_MAINTAINER_MODE=$enableval
1453else
1454 USE_MAINTAINER_MODE=no
1455fi
1456
1457 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1458
1459
1460if test $USE_MAINTAINER_MODE = yes; then
1461 MAINTAINER_MODE_TRUE=
1462 MAINTAINER_MODE_FALSE='#'
1463else
1464 MAINTAINER_MODE_TRUE='#'
1465 MAINTAINER_MODE_FALSE=
1466fi
1467 MAINT=$MAINTAINER_MODE_TRUE
1468
1469
1470
1471# We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1472# at least currently, we never actually build a program, so we never
1473# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1474# fails, because we are probably configuring with a cross compiler
1475# which can't create executables. So we include AC_EXEEXT to keep
1476# automake happy, but we don't execute it, since we don't care about
1477# the result.
1478if false; then
1479
1480
1481echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
786ab12c 1482echo "configure:1483: checking for executable suffix" >&5
8a0efa53
CF
1483if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1485else
1486 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1487 ac_cv_exeext=.exe
1488else
1489 rm -f conftest*
1490 echo 'int main () { return 0; }' > conftest.$ac_ext
1491 ac_cv_exeext=
786ab12c 1492 if { (eval echo configure:1493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8a0efa53
CF
1493 for file in conftest.*; do
1494 case $file in
786ab12c 1495 *.c | *.o | *.obj) ;;
8a0efa53
CF
1496 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1497 esac
1498 done
1499 else
1500 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1501 fi
1502 rm -f conftest*
1503 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1504fi
1505fi
1506
1507EXEEXT=""
1508test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1509echo "$ac_t""${ac_cv_exeext}" 1>&6
1510ac_exeext=$EXEEXT
1511
1512fi
1513
1514. ${newlib_basedir}/configure.host
1515
8a0efa53
CF
1516newlib_cflags="${newlib_cflags} -fno-builtin"
1517
1518NEWLIB_CFLAGS=${newlib_cflags}
1519
1520
2e1a7175
TF
1521LDFLAGS=${ldflags}
1522
1523
1524
1525
a8615092
JJ
1526if test x${newlib_elix_level} = x0; then
1527 ELIX_LEVEL_0_TRUE=
1528 ELIX_LEVEL_0_FALSE='#'
1529else
1530 ELIX_LEVEL_0_TRUE='#'
1531 ELIX_LEVEL_0_FALSE=
1532fi
1533
1534
1535if test x${newlib_elix_level} = x1; then
1536 ELIX_LEVEL_1_TRUE=
1537 ELIX_LEVEL_1_FALSE='#'
1538else
1539 ELIX_LEVEL_1_TRUE='#'
1540 ELIX_LEVEL_1_FALSE=
1541fi
1542
1543
1544if test x${newlib_elix_level} = x2; then
1545 ELIX_LEVEL_2_TRUE=
1546 ELIX_LEVEL_2_FALSE='#'
1547else
1548 ELIX_LEVEL_2_TRUE='#'
1549 ELIX_LEVEL_2_FALSE=
1550fi
1551
1552
1553if test x${newlib_elix_level} = x3; then
1554 ELIX_LEVEL_3_TRUE=
1555 ELIX_LEVEL_3_FALSE='#'
1556else
1557 ELIX_LEVEL_3_TRUE='#'
1558 ELIX_LEVEL_3_FALSE=
1559fi
1560
1561
1562if test x${newlib_elix_level} = x4; then
1563 ELIX_LEVEL_4_TRUE=
1564 ELIX_LEVEL_4_FALSE='#'
1565else
1566 ELIX_LEVEL_4_TRUE='#'
1567 ELIX_LEVEL_4_FALSE=
1568fi
1569
1570
1571
2e1a7175
TF
1572if test x${use_libtool} = xyes; then
1573 USE_LIBTOOL_TRUE=
1574 USE_LIBTOOL_FALSE='#'
1575else
1576 USE_LIBTOOL_TRUE='#'
1577 USE_LIBTOOL_FALSE=
1578fi
1579
0953fe64
TF
1580# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
1581# use oext, which is set in configure.host based on the target platform.
1582OBJEXT=${oext}
1583
1584
1585
2e1a7175
TF
1586
1587
1588
8a0efa53
CF
1589
1590
1591
1592
1593trap '' 1 2 15
1594cat > confcache <<\EOF
1595# This file is a shell script that caches the results of configure
1596# tests run on this system so they can be shared between configure
1597# scripts and configure runs. It is not useful on other systems.
1598# If it contains results you don't want to keep, you may remove or edit it.
1599#
1600# By default, configure uses ./config.cache as the cache file,
1601# creating it if it does not exist already. You can give configure
1602# the --cache-file=FILE option to use a different cache file; that is
1603# what configure does when it calls configure scripts in
1604# subdirectories, so they share the cache.
1605# Giving --cache-file=/dev/null disables caching, for debugging configure.
1606# config.status only pays attention to the cache file if you give it the
1607# --recheck option to rerun configure.
1608#
1609EOF
1610# The following way of writing the cache mishandles newlines in values,
1611# but we know of no workaround that is simple, portable, and efficient.
1612# So, don't put newlines in cache variables' values.
1613# Ultrix sh set writes to stderr and can't be redirected directly,
1614# and sets the high bit in the cache file unless we assign to the vars.
1615(set) 2>&1 |
1616 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1617 *ac_space=\ *)
1618 # `set' does not quote correctly, so add quotes (double-quote substitution
1619 # turns \\\\ into \\, and sed turns \\ into \).
1620 sed -n \
1621 -e "s/'/'\\\\''/g" \
1622 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1623 ;;
1624 *)
1625 # `set' quotes correctly as required by POSIX, so do not add quotes.
1626 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1627 ;;
1628 esac >> confcache
1629if cmp -s $cache_file confcache; then
1630 :
1631else
1632 if test -w $cache_file; then
1633 echo "updating cache $cache_file"
1634 cat confcache > $cache_file
1635 else
1636 echo "not updating unwritable cache $cache_file"
1637 fi
1638fi
1639rm -f confcache
1640
1641trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1642
1643test "x$prefix" = xNONE && prefix=$ac_default_prefix
1644# Let make expand exec_prefix.
1645test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1646
1647# Any assignment to VPATH causes Sun make to only execute
1648# the first set of double-colon rules, so remove it if not needed.
1649# If there is a colon in the path, we need to keep it.
1650if test "x$srcdir" = x.; then
1651 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1652fi
1653
1654trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1655
1656# Transform confdefs.h into DEFS.
1657# Protect against shell expansion while executing Makefile rules.
1658# Protect against Makefile macro expansion.
1659cat > conftest.defs <<\EOF
1660s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1661s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1662s%\[%\\&%g
1663s%\]%\\&%g
1664s%\$%$$%g
1665EOF
1666DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1667rm -f conftest.defs
1668
1669
1670# Without the "./", some shells look in PATH for config.status.
1671: ${CONFIG_STATUS=./config.status}
1672
1673echo creating $CONFIG_STATUS
1674rm -f $CONFIG_STATUS
1675cat > $CONFIG_STATUS <<EOF
1676#! /bin/sh
1677# Generated automatically by configure.
1678# Run this file to recreate the current configuration.
1679# This directory was configured as follows,
1680# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1681#
1682# $0 $ac_configure_args
1683#
1684# Compiler output produced by configure, useful for debugging
1685# configure, is in ./config.log if it exists.
1686
1687ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1688for ac_option
1689do
1690 case "\$ac_option" in
1691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1692 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1693 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1694 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1695 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1696 exit 0 ;;
1697 -help | --help | --hel | --he | --h)
1698 echo "\$ac_cs_usage"; exit 0 ;;
1699 *) echo "\$ac_cs_usage"; exit 1 ;;
1700 esac
1701done
1702
1703ac_given_srcdir=$srcdir
1704ac_given_INSTALL="$INSTALL"
1705
1706trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1707EOF
1708cat >> $CONFIG_STATUS <<EOF
1709
1710# Protect against being on the right side of a sed subst in config.status.
1711sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1712 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1713$ac_vpsub
1714$extrasub
1715s%@SHELL@%$SHELL%g
1716s%@CFLAGS@%$CFLAGS%g
1717s%@CPPFLAGS@%$CPPFLAGS%g
1718s%@CXXFLAGS@%$CXXFLAGS%g
1719s%@FFLAGS@%$FFLAGS%g
1720s%@DEFS@%$DEFS%g
1721s%@LDFLAGS@%$LDFLAGS%g
1722s%@LIBS@%$LIBS%g
1723s%@exec_prefix@%$exec_prefix%g
1724s%@prefix@%$prefix%g
1725s%@program_transform_name@%$program_transform_name%g
1726s%@bindir@%$bindir%g
1727s%@sbindir@%$sbindir%g
1728s%@libexecdir@%$libexecdir%g
1729s%@datadir@%$datadir%g
1730s%@sysconfdir@%$sysconfdir%g
1731s%@sharedstatedir@%$sharedstatedir%g
1732s%@localstatedir@%$localstatedir%g
1733s%@libdir@%$libdir%g
1734s%@includedir@%$includedir%g
1735s%@oldincludedir@%$oldincludedir%g
1736s%@infodir@%$infodir%g
1737s%@mandir@%$mandir%g
313f1349
JJ
1738s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
1739s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
8a0efa53
CF
1740s%@newlib_basedir@%$newlib_basedir%g
1741s%@host@%$host%g
1742s%@host_alias@%$host_alias%g
1743s%@host_cpu@%$host_cpu%g
1744s%@host_vendor@%$host_vendor%g
1745s%@host_os@%$host_os%g
eaa75b70
TF
1746s%@target@%$target%g
1747s%@target_alias@%$target_alias%g
1748s%@target_cpu@%$target_cpu%g
1749s%@target_vendor@%$target_vendor%g
1750s%@target_os@%$target_os%g
1751s%@build@%$build%g
1752s%@build_alias@%$build_alias%g
1753s%@build_cpu@%$build_cpu%g
1754s%@build_vendor@%$build_vendor%g
1755s%@build_os@%$build_os%g
8a0efa53
CF
1756s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1757s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1758s%@INSTALL_DATA@%$INSTALL_DATA%g
1759s%@PACKAGE@%$PACKAGE%g
1760s%@VERSION@%$VERSION%g
1761s%@ACLOCAL@%$ACLOCAL%g
1762s%@AUTOCONF@%$AUTOCONF%g
1763s%@AUTOMAKE@%$AUTOMAKE%g
1764s%@AUTOHEADER@%$AUTOHEADER%g
1765s%@MAKEINFO@%$MAKEINFO%g
1766s%@SET_MAKE@%$SET_MAKE%g
1767s%@CC@%$CC%g
8a0efa53
CF
1768s%@AS@%$AS%g
1769s%@AR@%$AR%g
1770s%@RANLIB@%$RANLIB%g
1771s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1772s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1773s%@MAINT@%$MAINT%g
1774s%@EXEEXT@%$EXEEXT%g
1775s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
a8615092
JJ
1776s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
1777s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
1778s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
1779s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
1780s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
1781s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
1782s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
1783s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
1784s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
1785s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
2e1a7175
TF
1786s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
1787s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
0953fe64 1788s%@OBJEXT@%$OBJEXT%g
2e1a7175
TF
1789s%@oext@%$oext%g
1790s%@aext@%$aext%g
1791s%@libm_machine_dir@%$libm_machine_dir%g
8a0efa53
CF
1792s%@machine_dir@%$machine_dir%g
1793s%@sys_dir@%$sys_dir%g
1794
1795CEOF
1796EOF
1797
1798cat >> $CONFIG_STATUS <<\EOF
1799
1800# Split the substitutions into bite-sized pieces for seds with
1801# small command number limits, like on Digital OSF/1 and HP-UX.
786ab12c 1802ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8a0efa53
CF
1803ac_file=1 # Number of current file.
1804ac_beg=1 # First line for current file.
1805ac_end=$ac_max_sed_cmds # Line after last line for current file.
1806ac_more_lines=:
1807ac_sed_cmds=""
1808while $ac_more_lines; do
1809 if test $ac_beg -gt 1; then
1810 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1811 else
1812 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1813 fi
1814 if test ! -s conftest.s$ac_file; then
1815 ac_more_lines=false
1816 rm -f conftest.s$ac_file
1817 else
1818 if test -z "$ac_sed_cmds"; then
1819 ac_sed_cmds="sed -f conftest.s$ac_file"
1820 else
1821 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1822 fi
1823 ac_file=`expr $ac_file + 1`
1824 ac_beg=$ac_end
1825 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1826 fi
1827done
1828if test -z "$ac_sed_cmds"; then
1829 ac_sed_cmds=cat
1830fi
1831EOF
1832
1833cat >> $CONFIG_STATUS <<EOF
1834
1835CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1836EOF
1837cat >> $CONFIG_STATUS <<\EOF
1838for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1840 case "$ac_file" in
1841 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1842 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1843 *) ac_file_in="${ac_file}.in" ;;
1844 esac
1845
1846 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1847
1848 # Remove last slash and all that follows it. Not all systems have dirname.
1849 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1850 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1851 # The file is in a subdirectory.
1852 test ! -d "$ac_dir" && mkdir "$ac_dir"
1853 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1854 # A "../" for each directory in $ac_dir_suffix.
1855 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1856 else
1857 ac_dir_suffix= ac_dots=
1858 fi
1859
1860 case "$ac_given_srcdir" in
1861 .) srcdir=.
1862 if test -z "$ac_dots"; then top_srcdir=.
1863 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1864 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1865 *) # Relative path.
1866 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1867 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1868 esac
1869
1870 case "$ac_given_INSTALL" in
1871 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1872 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1873 esac
1874
1875 echo creating "$ac_file"
1876 rm -f "$ac_file"
1877 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1878 case "$ac_file" in
1879 *Makefile*) ac_comsub="1i\\
1880# $configure_input" ;;
1881 *) ac_comsub= ;;
1882 esac
1883
1884 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1885 sed -e "$ac_comsub
1886s%@configure_input@%$configure_input%g
1887s%@srcdir@%$srcdir%g
1888s%@top_srcdir@%$top_srcdir%g
1889s%@INSTALL@%$INSTALL%g
1890" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1891fi; done
1892rm -f conftest.s*
1893
1894EOF
1895cat >> $CONFIG_STATUS <<EOF
1896
1897EOF
1898cat >> $CONFIG_STATUS <<\EOF
1899
1900exit 0
1901EOF
1902chmod +x $CONFIG_STATUS
1903rm -fr confdefs* $ac_clean_files
1904test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1905
This page took 0.274175 seconds and 5 git commands to generate.