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