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