]> sourceware.org Git - newlib-cygwin.git/blame - newlib/libc/configure
2004-01-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
[newlib-cygwin.git] / newlib / libc / 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:
037240a2
JJ
14ac_help="$ac_help
15 --enable-newlib-io-pos-args enable printf-family positional arg support"
8a0efa53
CF
16ac_help="$ac_help
17 --enable-multilib build many library versions (default)"
18ac_help="$ac_help
19 --enable-target-optspace optimize for space"
3ac6f3a7
JJ
20ac_help="$ac_help
21 --enable-malloc-debugging indicate malloc debugging requested"
8a0efa53
CF
22ac_help="$ac_help
23 --enable-newlib-mb enable multibyte support"
786ab12c
JJ
24ac_help="$ac_help
25 --enable-newlib-iconv enable iconv library support"
26ac_help="$ac_help
27 --enable-newlib-builtin-converters enable specific comma-separated list of iconv converters to be built-in"
0c048a9a
TF
28ac_help="$ac_help
29 --enable-newlib-multithread enable support for multiple threads"
90b65e2d
JJ
30ac_help="$ac_help
31 --enable-newlib-elix-level supply desired elix library level (1-4)"
afecf2fa
JJ
32ac_help="$ac_help
33 --disable-newlib-io-float disable printf/scanf family float support"
313f1349
JJ
34ac_help="$ac_help
35 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
8a0efa53
CF
36ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
2e1a7175
TF
39ac_help="$ac_help
40 --enable-shared[=PKGS] build shared libraries [default=yes]"
41ac_help="$ac_help
42 --enable-static[=PKGS] build static libraries [default=yes]"
43ac_help="$ac_help
44 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
45ac_help="$ac_help
46 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
47ac_help="$ac_help
48 --disable-libtool-lock avoid locking (might break parallel builds)"
0953fe64
TF
49ac_help="$ac_help
50 --with-pic try to use only PIC/non-PIC objects [default=use both]"
8a0efa53
CF
51
52# Initialize some variables set by options.
53# The variables have the same names as the options, with
54# dashes changed to underlines.
55build=NONE
56cache_file=./config.cache
57exec_prefix=NONE
58host=NONE
59no_create=
60nonopt=NONE
61no_recursion=
62prefix=NONE
63program_prefix=NONE
64program_suffix=NONE
65program_transform_name=s,x,x,
66silent=
67site=
8a0efa53
CF
68srcdir=
69target=NONE
70verbose=
71x_includes=NONE
72x_libraries=NONE
73bindir='${exec_prefix}/bin'
74sbindir='${exec_prefix}/sbin'
75libexecdir='${exec_prefix}/libexec'
76datadir='${prefix}/share'
77sysconfdir='${prefix}/etc'
78sharedstatedir='${prefix}/com'
79localstatedir='${prefix}/var'
80libdir='${exec_prefix}/lib'
81includedir='${prefix}/include'
82oldincludedir='/usr/include'
83infodir='${prefix}/info'
84mandir='${prefix}/man'
85
86# Initialize some other variables.
87subdirs=
88MFLAGS= MAKEFLAGS=
89SHELL=${CONFIG_SHELL-/bin/sh}
90# Maximum number of lines to put in a shell here document.
91ac_max_here_lines=12
92
93ac_prev=
94for ac_option
95do
96
97 # If the previous option needs an argument, assign it.
98 if test -n "$ac_prev"; then
99 eval "$ac_prev=\$ac_option"
100 ac_prev=
101 continue
102 fi
103
104 case "$ac_option" in
105 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
106 *) ac_optarg= ;;
107 esac
108
109 # Accept the important Cygnus configure options, so we can diagnose typos.
110
111 case "$ac_option" in
112
113 -bindir | --bindir | --bindi | --bind | --bin | --bi)
114 ac_prev=bindir ;;
115 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
116 bindir="$ac_optarg" ;;
117
118 -build | --build | --buil | --bui | --bu)
119 ac_prev=build ;;
120 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
121 build="$ac_optarg" ;;
122
123 -cache-file | --cache-file | --cache-fil | --cache-fi \
124 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
125 ac_prev=cache_file ;;
126 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
127 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
128 cache_file="$ac_optarg" ;;
129
130 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
131 ac_prev=datadir ;;
132 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
133 | --da=*)
134 datadir="$ac_optarg" ;;
135
136 -disable-* | --disable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 fi
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}=no" ;;
144
145 -enable-* | --enable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 fi
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 case "$ac_option" in
153 *=*) ;;
154 *) ac_optarg=yes ;;
155 esac
156 eval "enable_${ac_feature}='$ac_optarg'" ;;
157
158 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
159 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
160 | --exec | --exe | --ex)
161 ac_prev=exec_prefix ;;
162 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
163 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
164 | --exec=* | --exe=* | --ex=*)
165 exec_prefix="$ac_optarg" ;;
166
167 -gas | --gas | --ga | --g)
168 # Obsolete; use --with-gas.
169 with_gas=yes ;;
170
171 -help | --help | --hel | --he)
172 # Omit some internal or obsolete options to make the list less imposing.
173 # This message is too long to be a string in the A/UX 3.1 sh.
174 cat << EOF
175Usage: configure [options] [host]
176Options: [defaults in brackets after descriptions]
177Configuration:
178 --cache-file=FILE cache test results in FILE
179 --help print this message
180 --no-create do not create output files
181 --quiet, --silent do not print \`checking...' messages
8a0efa53
CF
182 --version print the version of autoconf that created configure
183Directory and file names:
184 --prefix=PREFIX install architecture-independent files in PREFIX
185 [$ac_default_prefix]
186 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
187 [same as prefix]
188 --bindir=DIR user executables in DIR [EPREFIX/bin]
189 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
190 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
191 --datadir=DIR read-only architecture-independent data in DIR
192 [PREFIX/share]
193 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
194 --sharedstatedir=DIR modifiable architecture-independent data in DIR
195 [PREFIX/com]
196 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
197 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
198 --includedir=DIR C header files in DIR [PREFIX/include]
199 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
200 --infodir=DIR info documentation in DIR [PREFIX/info]
201 --mandir=DIR man documentation in DIR [PREFIX/man]
202 --srcdir=DIR find the sources in DIR [configure dir or ..]
203 --program-prefix=PREFIX prepend PREFIX to installed program names
204 --program-suffix=SUFFIX append SUFFIX to installed program names
205 --program-transform-name=PROGRAM
206 run sed PROGRAM on installed program names
207EOF
208 cat << EOF
209Host type:
210 --build=BUILD configure for building on BUILD [BUILD=HOST]
211 --host=HOST configure for HOST [guessed]
212 --target=TARGET configure for TARGET [TARGET=HOST]
213Features and packages:
214 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
215 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
216 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
217 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
218 --x-includes=DIR X include files are in DIR
219 --x-libraries=DIR X library files are in DIR
220EOF
221 if test -n "$ac_help"; then
222 echo "--enable and --with options recognized:$ac_help"
223 fi
224 exit 0 ;;
225
226 -host | --host | --hos | --ho)
227 ac_prev=host ;;
228 -host=* | --host=* | --hos=* | --ho=*)
229 host="$ac_optarg" ;;
230
231 -includedir | --includedir | --includedi | --included | --include \
232 | --includ | --inclu | --incl | --inc)
233 ac_prev=includedir ;;
234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
235 | --includ=* | --inclu=* | --incl=* | --inc=*)
236 includedir="$ac_optarg" ;;
237
238 -infodir | --infodir | --infodi | --infod | --info | --inf)
239 ac_prev=infodir ;;
240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
241 infodir="$ac_optarg" ;;
242
243 -libdir | --libdir | --libdi | --libd)
244 ac_prev=libdir ;;
245 -libdir=* | --libdir=* | --libdi=* | --libd=*)
246 libdir="$ac_optarg" ;;
247
248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
249 | --libexe | --libex | --libe)
250 ac_prev=libexecdir ;;
251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
252 | --libexe=* | --libex=* | --libe=*)
253 libexecdir="$ac_optarg" ;;
254
255 -localstatedir | --localstatedir | --localstatedi | --localstated \
256 | --localstate | --localstat | --localsta | --localst \
257 | --locals | --local | --loca | --loc | --lo)
258 ac_prev=localstatedir ;;
259 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
260 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
261 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
262 localstatedir="$ac_optarg" ;;
263
264 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
265 ac_prev=mandir ;;
266 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
267 mandir="$ac_optarg" ;;
268
269 -nfp | --nfp | --nf)
270 # Obsolete; use --without-fp.
271 with_fp=no ;;
272
273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274 | --no-cr | --no-c)
275 no_create=yes ;;
276
277 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
278 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
279 no_recursion=yes ;;
280
281 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
282 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
283 | --oldin | --oldi | --old | --ol | --o)
284 ac_prev=oldincludedir ;;
285 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
286 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
287 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
288 oldincludedir="$ac_optarg" ;;
289
290 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
291 ac_prev=prefix ;;
292 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
293 prefix="$ac_optarg" ;;
294
295 -program-prefix | --program-prefix | --program-prefi | --program-pref \
296 | --program-pre | --program-pr | --program-p)
297 ac_prev=program_prefix ;;
298 -program-prefix=* | --program-prefix=* | --program-prefi=* \
299 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
300 program_prefix="$ac_optarg" ;;
301
302 -program-suffix | --program-suffix | --program-suffi | --program-suff \
303 | --program-suf | --program-su | --program-s)
304 ac_prev=program_suffix ;;
305 -program-suffix=* | --program-suffix=* | --program-suffi=* \
306 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
307 program_suffix="$ac_optarg" ;;
308
309 -program-transform-name | --program-transform-name \
310 | --program-transform-nam | --program-transform-na \
311 | --program-transform-n | --program-transform- \
312 | --program-transform | --program-transfor \
313 | --program-transfo | --program-transf \
314 | --program-trans | --program-tran \
315 | --progr-tra | --program-tr | --program-t)
316 ac_prev=program_transform_name ;;
317 -program-transform-name=* | --program-transform-name=* \
318 | --program-transform-nam=* | --program-transform-na=* \
319 | --program-transform-n=* | --program-transform-=* \
320 | --program-transform=* | --program-transfor=* \
321 | --program-transfo=* | --program-transf=* \
322 | --program-trans=* | --program-tran=* \
323 | --progr-tra=* | --program-tr=* | --program-t=*)
324 program_transform_name="$ac_optarg" ;;
325
326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
327 | -silent | --silent | --silen | --sile | --sil)
328 silent=yes ;;
329
330 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
331 ac_prev=sbindir ;;
332 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
333 | --sbi=* | --sb=*)
334 sbindir="$ac_optarg" ;;
335
336 -sharedstatedir | --sharedstatedir | --sharedstatedi \
337 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
338 | --sharedst | --shareds | --shared | --share | --shar \
339 | --sha | --sh)
340 ac_prev=sharedstatedir ;;
341 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
342 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
343 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
344 | --sha=* | --sh=*)
345 sharedstatedir="$ac_optarg" ;;
346
347 -site | --site | --sit)
348 ac_prev=site ;;
349 -site=* | --site=* | --sit=*)
350 site="$ac_optarg" ;;
351
8a0efa53
CF
352 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
353 ac_prev=srcdir ;;
354 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
355 srcdir="$ac_optarg" ;;
356
357 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
358 | --syscon | --sysco | --sysc | --sys | --sy)
359 ac_prev=sysconfdir ;;
360 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
361 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
362 sysconfdir="$ac_optarg" ;;
363
364 -target | --target | --targe | --targ | --tar | --ta | --t)
365 ac_prev=target ;;
366 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
367 target="$ac_optarg" ;;
368
369 -v | -verbose | --verbose | --verbos | --verbo | --verb)
370 verbose=yes ;;
371
372 -version | --version | --versio | --versi | --vers)
373 echo "configure generated by autoconf version 2.13"
374 exit 0 ;;
375
376 -with-* | --with-*)
377 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 fi
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 case "$ac_option" in
384 *=*) ;;
385 *) ac_optarg=yes ;;
386 esac
387 eval "with_${ac_package}='$ac_optarg'" ;;
388
389 -without-* | --without-*)
390 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 fi
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}=no" ;;
397
398 --x)
399 # Obsolete; use --with-x.
400 with_x=yes ;;
401
402 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
403 | --x-incl | --x-inc | --x-in | --x-i)
404 ac_prev=x_includes ;;
405 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
406 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
407 x_includes="$ac_optarg" ;;
408
409 -x-libraries | --x-libraries | --x-librarie | --x-librari \
410 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
411 ac_prev=x_libraries ;;
412 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
413 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
414 x_libraries="$ac_optarg" ;;
415
416 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
417 ;;
418
419 *)
420 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
421 echo "configure: warning: $ac_option: invalid host type" 1>&2
422 fi
423 if test "x$nonopt" != xNONE; then
424 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 fi
426 nonopt="$ac_option"
427 ;;
428
429 esac
430done
431
432if test -n "$ac_prev"; then
433 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
434fi
435
436trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437
438# File descriptor usage:
439# 0 standard input
440# 1 file creation
441# 2 errors and warnings
442# 3 some systems may open it to /dev/tty
443# 4 used on the Kubota Titan
444# 6 checking for... messages and results
445# 5 compiler messages saved in config.log
446if test "$silent" = yes; then
447 exec 6>/dev/null
448else
449 exec 6>&1
450fi
451exec 5>./config.log
452
453echo "\
454This file contains any messages produced by compilers while
455running configure, to aid debugging if configure makes a mistake.
456" 1>&5
457
458# Strip out --no-create and --no-recursion so they do not pile up.
459# Also quote any args containing shell metacharacters.
460ac_configure_args=
461for ac_arg
462do
463 case "$ac_arg" in
464 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
465 | --no-cr | --no-c) ;;
466 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
467 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
469 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
470 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
471 esac
472done
473
474# NLS nuisances.
475# Only set these to C if already set. These must not be set unconditionally
476# because not all systems understand e.g. LANG=C (notably SCO).
477# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
478# Non-C LC_CTYPE values break the ctype check.
479if test "${LANG+set}" = set; then LANG=C; export LANG; fi
480if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
481if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
482if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
483
484# confdefs.h avoids OS command line length limits that DEFS can exceed.
485rm -rf conftest* confdefs.h
486# AIX cpp loses on an empty file, so make sure it contains at least a newline.
487echo > confdefs.h
488
489# A filename unique to this package, relative to the directory that
490# configure is in, which we can look for to find out if srcdir is correct.
491ac_unique_file=sys.tex
492
493# Find the source files, if location was not specified.
494if test -z "$srcdir"; then
495 ac_srcdir_defaulted=yes
496 # Try the directory containing this script, then its parent.
497 ac_prog=$0
498 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
499 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
500 srcdir=$ac_confdir
501 if test ! -r $srcdir/$ac_unique_file; then
502 srcdir=..
503 fi
504else
505 ac_srcdir_defaulted=no
506fi
507if test ! -r $srcdir/$ac_unique_file; then
508 if test "$ac_srcdir_defaulted" = yes; then
509 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
510 else
511 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
512 fi
513fi
514srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515
516# Prefer explicitly selected file to automatically selected ones.
786ab12c
JJ
517if test -z "$CONFIG_SITE"; then
518 if test "x$prefix" != xNONE; then
519 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
520 else
521 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
8a0efa53 522 fi
8a0efa53
CF
523fi
524for ac_site_file in $CONFIG_SITE; do
525 if test -r "$ac_site_file"; then
526 echo "loading site script $ac_site_file"
527 . "$ac_site_file"
528 fi
529done
530
531if test -r "$cache_file"; then
532 echo "loading cache $cache_file"
533 . $cache_file
534else
535 echo "creating cache $cache_file"
536 > $cache_file
537fi
538
539ac_ext=c
540# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
541ac_cpp='$CPP $CPPFLAGS'
542ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
543ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
544cross_compiling=$ac_cv_prog_cc_cross
545
546ac_exeext=
547ac_objext=o
548if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
549 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
550 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
551 ac_n= ac_c='
552' ac_t=' '
553 else
554 ac_n=-n ac_c= ac_t=
555 fi
556else
557 ac_n= ac_c='\c' ac_t=
558fi
559
560
561
562ac_aux_dir=
563for ac_dir in ../.. $srcdir/../..; do
564 if test -f $ac_dir/install-sh; then
565 ac_aux_dir=$ac_dir
566 ac_install_sh="$ac_aux_dir/install-sh -c"
567 break
568 elif test -f $ac_dir/install.sh; then
569 ac_aux_dir=$ac_dir
570 ac_install_sh="$ac_aux_dir/install.sh -c"
571 break
572 fi
573done
574if test -z "$ac_aux_dir"; then
575 { echo "configure: error: can not find install-sh or install.sh in ../.. $srcdir/../.." 1>&2; exit 1; }
576fi
577ac_config_guess=$ac_aux_dir/config.guess
578ac_config_sub=$ac_aux_dir/config.sub
579ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
580
581
037240a2
JJ
582# Check whether --enable-newlib-io-pos-args or --disable-newlib-io-pos-args was given.
583if test "${enable_newlib_io_pos_args+set}" = set; then
584 enableval="$enable_newlib_io_pos_args"
585 case "${enableval}" in
586 yes) newlib_io_pos_args=yes ;;
587 no) newlib_io_pos_args=no ;;
588 *) { echo "configure: error: bad value ${enableval} for newlib-io-pos-args option" 1>&2; exit 1; } ;;
589 esac
590else
591 newlib_io_pos_args=no
592fi
593
8a0efa53
CF
594# Find a good install program. We prefer a C program (faster),
595# so one script is as good as another. But avoid the broken or
596# incompatible versions:
597# SysV /etc/install, /usr/sbin/install
598# SunOS /usr/etc/install
599# IRIX /sbin/install
600# AIX /bin/install
601# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
602# AFS /usr/afsws/bin/install, which mishandles nonexistent args
603# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
604# ./install, which can be erroneously created by make from ./install.sh.
605echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
786ab12c 606echo "configure:607: checking for a BSD compatible install" >&5
8a0efa53
CF
607if test -z "$INSTALL"; then
608if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
609 echo $ac_n "(cached) $ac_c" 1>&6
610else
611 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
612 for ac_dir in $PATH; do
613 # Account for people who put trailing slashes in PATH elements.
614 case "$ac_dir/" in
615 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
616 *)
617 # OSF1 and SCO ODT 3.0 have their own names for install.
618 # Don't use installbsd from OSF since it installs stuff as root
619 # by default.
620 for ac_prog in ginstall scoinst install; do
621 if test -f $ac_dir/$ac_prog; then
622 if test $ac_prog = install &&
623 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
624 # AIX install. It has an incompatible calling convention.
625 :
626 else
627 ac_cv_path_install="$ac_dir/$ac_prog -c"
628 break 2
629 fi
630 fi
631 done
632 ;;
633 esac
634 done
635 IFS="$ac_save_IFS"
636
637fi
638 if test "${ac_cv_path_install+set}" = set; then
639 INSTALL="$ac_cv_path_install"
640 else
641 # As a last resort, use the slow shell script. We don't cache a
642 # path for INSTALL within a source directory, because that will
643 # break other packages using the cache if that directory is
644 # removed, or if the path is relative.
645 INSTALL="$ac_install_sh"
646 fi
647fi
648echo "$ac_t""$INSTALL" 1>&6
649
650# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
651# It thinks the first close brace ends the variable substitution.
652test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
653
654test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
655
656test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
657
658echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
786ab12c 659echo "configure:660: checking whether build environment is sane" >&5
8a0efa53
CF
660# Just in case
661sleep 1
662echo timestamp > conftestfile
663# Do `set' in a subshell so we don't clobber the current shell's
664# arguments. Must try -L first in case configure is actually a
665# symlink; some systems play weird games with the mod time of symlinks
666# (eg FreeBSD returns the mod time of the symlink's containing
667# directory).
668if (
669 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
670 if test "$*" = "X"; then
671 # -L didn't work.
672 set X `ls -t $srcdir/configure conftestfile`
673 fi
674 if test "$*" != "X $srcdir/configure conftestfile" \
675 && test "$*" != "X conftestfile $srcdir/configure"; then
676
677 # If neither matched, then we have a broken ls. This can happen
678 # if, for instance, CONFIG_SHELL is bash and it inherits a
679 # broken ls alias from the environment. This has actually
680 # happened. Such a system could not be considered "sane".
681 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
682alias in your environment" 1>&2; exit 1; }
683 fi
684
685 test "$2" = conftestfile
686 )
687then
688 # Ok.
689 :
690else
691 { echo "configure: error: newly created file is older than distributed files!
692Check your system clock" 1>&2; exit 1; }
693fi
694rm -f conftest*
695echo "$ac_t""yes" 1>&6
696if test "$program_transform_name" = s,x,x,; then
697 program_transform_name=
698else
699 # Double any \ or $. echo might interpret backslashes.
700 cat <<\EOF_SED > conftestsed
701s,\\,\\\\,g; s,\$,$$,g
702EOF_SED
703 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
704 rm -f conftestsed
705fi
706test "$program_prefix" != NONE &&
707 program_transform_name="s,^,${program_prefix},; $program_transform_name"
708# Use a double $ so make ignores it.
709test "$program_suffix" != NONE &&
710 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
711
712# sed with no file args requires a program.
713test "$program_transform_name" = "" && program_transform_name="s,x,x,"
714
715echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
786ab12c 716echo "configure:717: checking whether ${MAKE-make} sets \${MAKE}" >&5
8a0efa53
CF
717set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
718if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
719 echo $ac_n "(cached) $ac_c" 1>&6
720else
721 cat > conftestmake <<\EOF
722all:
723 @echo 'ac_maketemp="${MAKE}"'
724EOF
725# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
726eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
727if test -n "$ac_maketemp"; then
728 eval ac_cv_prog_make_${ac_make}_set=yes
729else
730 eval ac_cv_prog_make_${ac_make}_set=no
731fi
732rm -f conftestmake
733fi
734if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
735 echo "$ac_t""yes" 1>&6
736 SET_MAKE=
737else
738 echo "$ac_t""no" 1>&6
739 SET_MAKE="MAKE=${MAKE-make}"
740fi
741
742if test $host != $build; then
743 ac_tool_prefix=${host_alias}-
744else
745 ac_tool_prefix=
746fi
747
748echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
786ab12c 749echo "configure:750: checking for Cygwin environment" >&5
8a0efa53
CF
750if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
752else
753 cat > conftest.$ac_ext <<EOF
786ab12c 754#line 755 "configure"
8a0efa53
CF
755#include "confdefs.h"
756
757int main() {
758
759#ifndef __CYGWIN__
760#define __CYGWIN__ __CYGWIN32__
761#endif
762return __CYGWIN__;
763; return 0; }
764EOF
786ab12c 765if { (eval echo configure:766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8a0efa53
CF
766 rm -rf conftest*
767 ac_cv_cygwin=yes
768else
769 echo "configure: failed program was:" >&5
770 cat conftest.$ac_ext >&5
771 rm -rf conftest*
772 ac_cv_cygwin=no
773fi
774rm -f conftest*
775rm -f conftest*
776fi
777
778echo "$ac_t""$ac_cv_cygwin" 1>&6
779CYGWIN=
780test "$ac_cv_cygwin" = yes && CYGWIN=yes
781echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
786ab12c 782echo "configure:783: checking for mingw32 environment" >&5
8a0efa53
CF
783if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
785else
786 cat > conftest.$ac_ext <<EOF
786ab12c 787#line 788 "configure"
8a0efa53
CF
788#include "confdefs.h"
789
790int main() {
791return __MINGW32__;
792; return 0; }
793EOF
786ab12c 794if { (eval echo configure:795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8a0efa53
CF
795 rm -rf conftest*
796 ac_cv_mingw32=yes
797else
798 echo "configure: failed program was:" >&5
799 cat conftest.$ac_ext >&5
800 rm -rf conftest*
801 ac_cv_mingw32=no
802fi
803rm -f conftest*
804rm -f conftest*
805fi
806
807echo "$ac_t""$ac_cv_mingw32" 1>&6
808MINGW32=
809test "$ac_cv_mingw32" = yes && MINGW32=yes
810
811# Check whether --enable-multilib or --disable-multilib was given.
812if test "${enable_multilib+set}" = set; then
813 enableval="$enable_multilib"
814 case "${enableval}" in
815 yes) multilib=yes ;;
816 no) multilib=no ;;
817 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
818 esac
819else
820 multilib=yes
821fi
822
823# Check whether --enable-target-optspace or --disable-target-optspace was given.
824if test "${enable_target_optspace+set}" = set; then
825 enableval="$enable_target_optspace"
826 case "${enableval}" in
827 yes) target_optspace=yes ;;
828 no) target_optspace=no ;;
829 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
830 esac
831else
832 target_optspace=
833fi
834
3ac6f3a7
JJ
835# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
836if test "${enable_malloc_debugging+set}" = set; then
837 enableval="$enable_malloc_debugging"
838 case "${enableval}" in
839 yes) malloc_debugging=yes ;;
840 no) malloc_debugging=no ;;
841 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
842 esac
843else
844 malloc_debugging=
845fi
846
8a0efa53
CF
847# Check whether --enable-newlib-mb or --disable-newlib-mb was given.
848if test "${enable_newlib_mb+set}" = set; then
849 enableval="$enable_newlib_mb"
850 case "${enableval}" in
851 yes) newlib_mb=yes ;;
852 no) newlib_mb=no ;;
853 *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
854 esac
855else
a8615092 856 newlib_mb=
8a0efa53
CF
857fi
858
786ab12c
JJ
859# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
860if test "${enable_newlib_iconv+set}" = set; then
861 enableval="$enable_newlib_iconv"
862 case "${enableval}" in
863 yes) newlib_iconv=yes ;;
864 no) newlib_iconv=no ;;
865 *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;;
866 esac
867else
868 newlib_iconv=
869fi
870
871# Check whether --enable-newlib-builtin-converters or --disable-newlib-builtin-converters was given.
872if test "${enable_newlib_builtin_converters+set}" = set; then
873 enableval="$enable_newlib_builtin_converters"
874 if test x${enableval} = x; then
875 { echo "configure: error: bad value ${enableval} for newlib-builtin-converters option - use comma-separated list" 1>&2; exit 1; }
876 fi
877 builtin_converters=${enableval}
878
879else
880 builtin_converters=
881fi
882
0c048a9a
TF
883# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
884if test "${enable_newlib_multithread+set}" = set; then
885 enableval="$enable_newlib_multithread"
886 case "${enableval}" in
887 yes) newlib_multithread=yes ;;
888 no) newlib_multithread=no ;;
889 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
890 esac
891else
892 newlib_multithread=yes
893fi
894
90b65e2d
JJ
895# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
896if test "${enable_newlib_elix_level+set}" = set; then
897 enableval="$enable_newlib_elix_level"
898 case "${enableval}" in
899 0) newlib_elix_level=0 ;;
900 1) newlib_elix_level=1 ;;
901 2) newlib_elix_level=2 ;;
902 3) newlib_elix_level=3 ;;
903 4) newlib_elix_level=4 ;;
904 *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
905 esac
906else
907 newlib_elix_level=0
908fi
909
afecf2fa
JJ
910# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
911if test "${enable_newlib_io_float+set}" = set; then
912 enableval="$enable_newlib_io_float"
913 case "${enableval}" in
914 yes) newlib_io_float=yes ;;
915 no) newlib_io_float=no ;;
916 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
917 esac
918else
919 newlib_io_float=yes
920fi
921
313f1349
JJ
922# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
923if test "${enable_newlib_supplied_syscalls+set}" = set; then
924 enableval="$enable_newlib_supplied_syscalls"
925 case "${enableval}" in
926 yes) newlib_may_supply_syscalls=yes ;;
927 no) newlib_may_supply_syscalls=no ;;
928 *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
929 esac
930else
931 newlib_may_supply_syscalls=yes
932fi
933
934
935
936if test x${newlib_may_supply_syscalls} = xyes; then
937 MAY_SUPPLY_SYSCALLS_TRUE=
938 MAY_SUPPLY_SYSCALLS_FALSE='#'
939else
940 MAY_SUPPLY_SYSCALLS_TRUE='#'
941 MAY_SUPPLY_SYSCALLS_FALSE=
942fi
afecf2fa 943
8a0efa53
CF
944
945test -z "${with_target_subdir}" && with_target_subdir=.
946
947if test "${srcdir}" = "."; then
948 if test "${with_target_subdir}" != "."; then
949 newlib_basedir="${srcdir}/${with_multisrctop}../.."
950 else
951 newlib_basedir="${srcdir}/${with_multisrctop}.."
952 fi
953else
954 newlib_basedir="${srcdir}/.."
955fi
956
957
958
eaa75b70
TF
959# Do some error checking and defaulting for the host and target type.
960# The inputs are:
961# configure --host=HOST --target=TARGET --build=BUILD NONOPT
962#
963# The rules are:
964# 1. You are not allowed to specify --host, --target, and nonopt at the
965# same time.
966# 2. Host defaults to nonopt.
967# 3. If nonopt is not specified, then host defaults to the current host,
968# as determined by config.guess.
969# 4. Target and build default to nonopt.
970# 5. If nonopt is not specified, then target and build default to host.
971
972# The aliases save the names the user supplied, while $host etc.
973# will get canonicalized.
974case $host---$target---$nonopt in
975NONE---*---* | *---NONE---* | *---*---NONE) ;;
976*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
977esac
978
979
8a0efa53
CF
980# Make sure we can run config.sub.
981if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
982else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
983fi
984
985echo $ac_n "checking host system type""... $ac_c" 1>&6
786ab12c 986echo "configure:987: checking host system type" >&5
8a0efa53
CF
987
988host_alias=$host
989case "$host_alias" in
990NONE)
991 case $nonopt in
992 NONE)
993 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
994 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
995 fi ;;
996 *) host_alias=$nonopt ;;
997 esac ;;
998esac
999
1000host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1001host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1002host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1003host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1004echo "$ac_t""$host" 1>&6
1005
eaa75b70 1006echo $ac_n "checking target system type""... $ac_c" 1>&6
786ab12c 1007echo "configure:1008: checking target system type" >&5
eaa75b70
TF
1008
1009target_alias=$target
1010case "$target_alias" in
1011NONE)
1012 case $nonopt in
1013 NONE) target_alias=$host_alias ;;
1014 *) target_alias=$nonopt ;;
1015 esac ;;
1016esac
1017
1018target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1019target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1020target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1021target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1022echo "$ac_t""$target" 1>&6
1023
1024echo $ac_n "checking build system type""... $ac_c" 1>&6
786ab12c 1025echo "configure:1026: checking build system type" >&5
eaa75b70
TF
1026
1027build_alias=$build
1028case "$build_alias" in
1029NONE)
1030 case $nonopt in
1031 NONE) build_alias=$host_alias ;;
1032 *) build_alias=$nonopt ;;
1033 esac ;;
1034esac
1035
1036build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1037build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040echo "$ac_t""$build" 1>&6
1041
1042test "$host_alias" != "$target_alias" &&
1043 test "$program_prefix$program_suffix$program_transform_name" = \
1044 NONENONEs,x,x, &&
1045 program_prefix=${target_alias}-
1046
8a0efa53
CF
1047
1048
1049PACKAGE=newlib
1050
60b0838f 1051VERSION=1.11.0
8a0efa53
CF
1052
1053if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1054 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1055fi
1056cat >> confdefs.h <<EOF
1057#define PACKAGE "$PACKAGE"
1058EOF
1059
1060cat >> confdefs.h <<EOF
1061#define VERSION "$VERSION"
1062EOF
1063
1064
1065
1066missing_dir=`cd $ac_aux_dir && pwd`
1067echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
786ab12c 1068echo "configure:1069: checking for working aclocal" >&5
8a0efa53
CF
1069# Run test in a subshell; some versions of sh will print an error if
1070# an executable is not found, even if stderr is redirected.
1071# Redirect stdin to placate older versions of autoconf. Sigh.
1072if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1073 ACLOCAL=aclocal
1074 echo "$ac_t""found" 1>&6
1075else
1076 ACLOCAL="$missing_dir/missing aclocal"
1077 echo "$ac_t""missing" 1>&6
1078fi
1079
1080echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
786ab12c 1081echo "configure:1082: checking for working autoconf" >&5
8a0efa53
CF
1082# Run test in a subshell; some versions of sh will print an error if
1083# an executable is not found, even if stderr is redirected.
1084# Redirect stdin to placate older versions of autoconf. Sigh.
1085if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1086 AUTOCONF=autoconf
1087 echo "$ac_t""found" 1>&6
1088else
1089 AUTOCONF="$missing_dir/missing autoconf"
1090 echo "$ac_t""missing" 1>&6
1091fi
1092
1093echo $ac_n "checking for working automake""... $ac_c" 1>&6
786ab12c 1094echo "configure:1095: checking for working automake" >&5
8a0efa53
CF
1095# Run test in a subshell; some versions of sh will print an error if
1096# an executable is not found, even if stderr is redirected.
1097# Redirect stdin to placate older versions of autoconf. Sigh.
1098if (automake --version) < /dev/null > /dev/null 2>&1; then
1099 AUTOMAKE=automake
1100 echo "$ac_t""found" 1>&6
1101else
1102 AUTOMAKE="$missing_dir/missing automake"
1103 echo "$ac_t""missing" 1>&6
1104fi
1105
1106echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
786ab12c 1107echo "configure:1108: checking for working autoheader" >&5
8a0efa53
CF
1108# Run test in a subshell; some versions of sh will print an error if
1109# an executable is not found, even if stderr is redirected.
1110# Redirect stdin to placate older versions of autoconf. Sigh.
1111if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1112 AUTOHEADER=autoheader
1113 echo "$ac_t""found" 1>&6
1114else
1115 AUTOHEADER="$missing_dir/missing autoheader"
1116 echo "$ac_t""missing" 1>&6
1117fi
1118
1119echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
786ab12c 1120echo "configure:1121: checking for working makeinfo" >&5
8a0efa53
CF
1121# Run test in a subshell; some versions of sh will print an error if
1122# an executable is not found, even if stderr is redirected.
1123# Redirect stdin to placate older versions of autoconf. Sigh.
1124if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1125 MAKEINFO=makeinfo
1126 echo "$ac_t""found" 1>&6
1127else
1128 MAKEINFO="$missing_dir/missing makeinfo"
1129 echo "$ac_t""missing" 1>&6
1130fi
1131
1132
1133
1134# FIXME: We temporarily define our own version of AC_PROG_CC. This is
1135# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1136# are probably using a cross compiler, which will not be able to fully
1137# link an executable. This should really be fixed in autoconf
1138# itself.
1139
1140
1141
1142# Extract the first word of "gcc", so it can be a program name with args.
1143set dummy gcc; ac_word=$2
1144echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1145echo "configure:1146: checking for $ac_word" >&5
8a0efa53
CF
1146if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148else
1149 if test -n "$CC"; then
1150 ac_cv_prog_CC="$CC" # Let the user override the test.
1151else
1152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1153 ac_dummy="$PATH"
1154 for ac_dir in $ac_dummy; do
1155 test -z "$ac_dir" && ac_dir=.
1156 if test -f $ac_dir/$ac_word; then
1157 ac_cv_prog_CC="gcc"
1158 break
1159 fi
1160 done
1161 IFS="$ac_save_ifs"
1162fi
1163fi
1164CC="$ac_cv_prog_CC"
1165if test -n "$CC"; then
1166 echo "$ac_t""$CC" 1>&6
1167else
1168 echo "$ac_t""no" 1>&6
1169fi
1170
1171if test -z "$CC"; then
1172 # Extract the first word of "cc", so it can be a program name with args.
1173set dummy cc; ac_word=$2
1174echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1175echo "configure:1176: checking for $ac_word" >&5
8a0efa53
CF
1176if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1178else
1179 if test -n "$CC"; then
1180 ac_cv_prog_CC="$CC" # Let the user override the test.
1181else
1182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1183 ac_prog_rejected=no
1184 ac_dummy="$PATH"
1185 for ac_dir in $ac_dummy; do
1186 test -z "$ac_dir" && ac_dir=.
1187 if test -f $ac_dir/$ac_word; then
1188 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1189 ac_prog_rejected=yes
1190 continue
1191 fi
1192 ac_cv_prog_CC="cc"
1193 break
1194 fi
1195 done
1196 IFS="$ac_save_ifs"
1197if test $ac_prog_rejected = yes; then
1198 # We found a bogon in the path, so make sure we never use it.
1199 set dummy $ac_cv_prog_CC
1200 shift
1201 if test $# -gt 0; then
1202 # We chose a different compiler from the bogus one.
1203 # However, it has the same basename, so the bogon will be chosen
1204 # first if we set CC to just the basename; use the full file name.
1205 shift
1206 set dummy "$ac_dir/$ac_word" "$@"
1207 shift
1208 ac_cv_prog_CC="$@"
1209 fi
1210fi
1211fi
1212fi
1213CC="$ac_cv_prog_CC"
1214if test -n "$CC"; then
1215 echo "$ac_t""$CC" 1>&6
1216else
1217 echo "$ac_t""no" 1>&6
1218fi
1219
1220 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1221fi
1222
1223echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
786ab12c 1224echo "configure:1225: checking whether we are using GNU C" >&5
8a0efa53
CF
1225if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1227else
1228 cat > conftest.c <<EOF
1229#ifdef __GNUC__
1230 yes;
1231#endif
1232EOF
786ab12c 1233if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8a0efa53
CF
1234 ac_cv_prog_gcc=yes
1235else
1236 ac_cv_prog_gcc=no
1237fi
1238fi
1239
1240echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1241
1242if test $ac_cv_prog_gcc = yes; then
1243 GCC=yes
1244 ac_test_CFLAGS="${CFLAGS+set}"
1245 ac_save_CFLAGS="$CFLAGS"
1246 CFLAGS=
1247 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
786ab12c 1248echo "configure:1249: checking whether ${CC-cc} accepts -g" >&5
8a0efa53
CF
1249if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1251else
1252 echo 'void f(){}' > conftest.c
1253if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1254 ac_cv_prog_cc_g=yes
1255else
1256 ac_cv_prog_cc_g=no
1257fi
1258rm -f conftest*
1259
1260fi
1261
1262echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1263 if test "$ac_test_CFLAGS" = set; then
1264 CFLAGS="$ac_save_CFLAGS"
1265 elif test $ac_cv_prog_cc_g = yes; then
1266 CFLAGS="-g -O2"
1267 else
1268 CFLAGS="-O2"
1269 fi
1270else
1271 GCC=
1272 test "${CFLAGS+set}" = set || CFLAGS="-g"
1273fi
1274
1275
8a0efa53
CF
1276# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1277set dummy ${ac_tool_prefix}as; ac_word=$2
1278echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1279echo "configure:1280: checking for $ac_word" >&5
8a0efa53
CF
1280if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1282else
1283 if test -n "$AS"; then
1284 ac_cv_prog_AS="$AS" # Let the user override the test.
1285else
1286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1287 ac_dummy="$PATH"
1288 for ac_dir in $ac_dummy; do
1289 test -z "$ac_dir" && ac_dir=.
1290 if test -f $ac_dir/$ac_word; then
1291 ac_cv_prog_AS="${ac_tool_prefix}as"
1292 break
1293 fi
1294 done
1295 IFS="$ac_save_ifs"
1296 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1297fi
1298fi
1299AS="$ac_cv_prog_AS"
1300if test -n "$AS"; then
1301 echo "$ac_t""$AS" 1>&6
1302else
1303 echo "$ac_t""no" 1>&6
1304fi
1305
1306
1307
1308# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1309set dummy ${ac_tool_prefix}ar; ac_word=$2
1310echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1311echo "configure:1312: checking for $ac_word" >&5
8a0efa53
CF
1312if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1314else
1315 if test -n "$AR"; then
1316 ac_cv_prog_AR="$AR" # Let the user override the test.
1317else
1318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1319 ac_dummy="$PATH"
1320 for ac_dir in $ac_dummy; do
1321 test -z "$ac_dir" && ac_dir=.
1322 if test -f $ac_dir/$ac_word; then
1323 ac_cv_prog_AR="${ac_tool_prefix}ar"
1324 break
1325 fi
1326 done
1327 IFS="$ac_save_ifs"
1328 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1329fi
1330fi
1331AR="$ac_cv_prog_AR"
1332if test -n "$AR"; then
1333 echo "$ac_t""$AR" 1>&6
1334else
1335 echo "$ac_t""no" 1>&6
1336fi
1337
1338
1339
1340# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1341set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1342echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1343echo "configure:1344: checking for $ac_word" >&5
8a0efa53
CF
1344if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1346else
1347 if test -n "$RANLIB"; then
1348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1349else
1350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1351 ac_dummy="$PATH"
1352 for ac_dir in $ac_dummy; do
1353 test -z "$ac_dir" && ac_dir=.
1354 if test -f $ac_dir/$ac_word; then
1355 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1356 break
1357 fi
1358 done
1359 IFS="$ac_save_ifs"
1360fi
1361fi
1362RANLIB="$ac_cv_prog_RANLIB"
1363if test -n "$RANLIB"; then
1364 echo "$ac_t""$RANLIB" 1>&6
1365else
1366 echo "$ac_t""no" 1>&6
1367fi
1368
1369
1370if test -z "$ac_cv_prog_RANLIB"; then
1371if test -n "$ac_tool_prefix"; then
1372 # Extract the first word of "ranlib", so it can be a program name with args.
1373set dummy ranlib; ac_word=$2
1374echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1375echo "configure:1376: checking for $ac_word" >&5
8a0efa53
CF
1376if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1378else
1379 if test -n "$RANLIB"; then
1380 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1381else
1382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1383 ac_dummy="$PATH"
1384 for ac_dir in $ac_dummy; do
1385 test -z "$ac_dir" && ac_dir=.
1386 if test -f $ac_dir/$ac_word; then
1387 ac_cv_prog_RANLIB="ranlib"
1388 break
1389 fi
1390 done
1391 IFS="$ac_save_ifs"
1392 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1393fi
1394fi
1395RANLIB="$ac_cv_prog_RANLIB"
1396if test -n "$RANLIB"; then
1397 echo "$ac_t""$RANLIB" 1>&6
1398else
1399 echo "$ac_t""no" 1>&6
1400fi
1401
1402else
1403 RANLIB=":"
1404fi
1405fi
1406
1407
1408# Find a good install program. We prefer a C program (faster),
1409# so one script is as good as another. But avoid the broken or
1410# incompatible versions:
1411# SysV /etc/install, /usr/sbin/install
1412# SunOS /usr/etc/install
1413# IRIX /sbin/install
1414# AIX /bin/install
1415# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1416# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1417# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1418# ./install, which can be erroneously created by make from ./install.sh.
1419echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
786ab12c 1420echo "configure:1421: checking for a BSD compatible install" >&5
8a0efa53
CF
1421if test -z "$INSTALL"; then
1422if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1424else
1425 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1426 for ac_dir in $PATH; do
1427 # Account for people who put trailing slashes in PATH elements.
1428 case "$ac_dir/" in
1429 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1430 *)
1431 # OSF1 and SCO ODT 3.0 have their own names for install.
1432 # Don't use installbsd from OSF since it installs stuff as root
1433 # by default.
1434 for ac_prog in ginstall scoinst install; do
1435 if test -f $ac_dir/$ac_prog; then
1436 if test $ac_prog = install &&
1437 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1438 # AIX install. It has an incompatible calling convention.
1439 :
1440 else
1441 ac_cv_path_install="$ac_dir/$ac_prog -c"
1442 break 2
1443 fi
1444 fi
1445 done
1446 ;;
1447 esac
1448 done
1449 IFS="$ac_save_IFS"
1450
1451fi
1452 if test "${ac_cv_path_install+set}" = set; then
1453 INSTALL="$ac_cv_path_install"
1454 else
1455 # As a last resort, use the slow shell script. We don't cache a
1456 # path for INSTALL within a source directory, because that will
1457 # break other packages using the cache if that directory is
1458 # removed, or if the path is relative.
1459 INSTALL="$ac_install_sh"
1460 fi
1461fi
1462echo "$ac_t""$INSTALL" 1>&6
1463
1464# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1465# It thinks the first close brace ends the variable substitution.
1466test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1467
1468test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1469
1470test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1471
1472
1473echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
786ab12c 1474echo "configure:1475: checking whether to enable maintainer-specific portions of Makefiles" >&5
8a0efa53
CF
1475 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1476if test "${enable_maintainer_mode+set}" = set; then
1477 enableval="$enable_maintainer_mode"
1478 USE_MAINTAINER_MODE=$enableval
1479else
1480 USE_MAINTAINER_MODE=no
1481fi
1482
1483 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1484
1485
1486if test $USE_MAINTAINER_MODE = yes; then
1487 MAINTAINER_MODE_TRUE=
1488 MAINTAINER_MODE_FALSE='#'
1489else
1490 MAINTAINER_MODE_TRUE='#'
1491 MAINTAINER_MODE_FALSE=
1492fi
1493 MAINT=$MAINTAINER_MODE_TRUE
1494
1495
1496
1497# We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1498# at least currently, we never actually build a program, so we never
1499# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1500# fails, because we are probably configuring with a cross compiler
1501# which can't create executables. So we include AC_EXEEXT to keep
1502# automake happy, but we don't execute it, since we don't care about
1503# the result.
1504if false; then
1505
1506
1507echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
786ab12c 1508echo "configure:1509: checking for executable suffix" >&5
8a0efa53
CF
1509if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1511else
1512 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1513 ac_cv_exeext=.exe
1514else
1515 rm -f conftest*
1516 echo 'int main () { return 0; }' > conftest.$ac_ext
1517 ac_cv_exeext=
786ab12c 1518 if { (eval echo configure:1519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8a0efa53
CF
1519 for file in conftest.*; do
1520 case $file in
786ab12c 1521 *.c | *.o | *.obj) ;;
8a0efa53
CF
1522 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1523 esac
1524 done
1525 else
1526 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1527 fi
1528 rm -f conftest*
1529 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1530fi
1531fi
1532
1533EXEEXT=""
1534test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1535echo "$ac_t""${ac_cv_exeext}" 1>&6
1536ac_exeext=$EXEEXT
1537
1538fi
1539
1540. ${newlib_basedir}/configure.host
1541
8a0efa53
CF
1542newlib_cflags="${newlib_cflags} -fno-builtin"
1543
1544NEWLIB_CFLAGS=${newlib_cflags}
1545
1546
2e1a7175 1547LDFLAGS=${ldflags}
8a0efa53
CF
1548
1549
1550
1551
90b65e2d
JJ
1552if test x${newlib_elix_level} = x0; then
1553 ELIX_LEVEL_0_TRUE=
1554 ELIX_LEVEL_0_FALSE='#'
1555else
1556 ELIX_LEVEL_0_TRUE='#'
1557 ELIX_LEVEL_0_FALSE=
1558fi
1559
1560
1561if test x${newlib_elix_level} = x1; then
1562 ELIX_LEVEL_1_TRUE=
1563 ELIX_LEVEL_1_FALSE='#'
1564else
1565 ELIX_LEVEL_1_TRUE='#'
1566 ELIX_LEVEL_1_FALSE=
1567fi
1568
1569
1570if test x${newlib_elix_level} = x2; then
1571 ELIX_LEVEL_2_TRUE=
1572 ELIX_LEVEL_2_FALSE='#'
1573else
1574 ELIX_LEVEL_2_TRUE='#'
1575 ELIX_LEVEL_2_FALSE=
1576fi
1577
1578
1579if test x${newlib_elix_level} = x3; then
1580 ELIX_LEVEL_3_TRUE=
1581 ELIX_LEVEL_3_FALSE='#'
1582else
1583 ELIX_LEVEL_3_TRUE='#'
1584 ELIX_LEVEL_3_FALSE=
1585fi
1586
1587
1588if test x${newlib_elix_level} = x4; then
1589 ELIX_LEVEL_4_TRUE=
1590 ELIX_LEVEL_4_FALSE='#'
1591else
1592 ELIX_LEVEL_4_TRUE='#'
1593 ELIX_LEVEL_4_FALSE=
1594fi
1595
1596
1597
2e1a7175
TF
1598if test x${use_libtool} = xyes; then
1599 USE_LIBTOOL_TRUE=
1600 USE_LIBTOOL_FALSE='#'
1601else
1602 USE_LIBTOOL_TRUE='#'
1603 USE_LIBTOOL_FALSE=
1604fi
8a0efa53 1605
0953fe64
TF
1606# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
1607# use oext, which is set in configure.host based on the target platform.
1608OBJEXT=${oext}
1609
1610
1611
8a0efa53 1612
8a0efa53
CF
1613
1614
1615
8a0efa53
CF
1616
1617
1618
2e1a7175
TF
1619
1620if test "${use_libtool}" = "yes"; then
1621
1622# Check whether --enable-shared or --disable-shared was given.
1623if test "${enable_shared+set}" = set; then
1624 enableval="$enable_shared"
1625 p=${PACKAGE-default}
0953fe64 1626case $enableval in
2e1a7175
TF
1627yes) enable_shared=yes ;;
1628no) enable_shared=no ;;
1629*)
1630 enable_shared=no
1631 # Look at the argument we got. We use all the common list separators.
1632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1633 for pkg in $enableval; do
1634 if test "X$pkg" = "X$p"; then
1635 enable_shared=yes
1636 fi
1637 done
1638 IFS="$ac_save_ifs"
1639 ;;
1640esac
8a0efa53 1641else
2e1a7175
TF
1642 enable_shared=yes
1643fi
1644
1645# Check whether --enable-static or --disable-static was given.
1646if test "${enable_static+set}" = set; then
1647 enableval="$enable_static"
1648 p=${PACKAGE-default}
0953fe64 1649case $enableval in
2e1a7175
TF
1650yes) enable_static=yes ;;
1651no) enable_static=no ;;
1652*)
1653 enable_static=no
1654 # Look at the argument we got. We use all the common list separators.
1655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1656 for pkg in $enableval; do
1657 if test "X$pkg" = "X$p"; then
1658 enable_static=yes
1659 fi
1660 done
1661 IFS="$ac_save_ifs"
1662 ;;
1663esac
1664else
1665 enable_static=yes
1666fi
1667
1668# Check whether --enable-fast-install or --disable-fast-install was given.
1669if test "${enable_fast_install+set}" = set; then
1670 enableval="$enable_fast_install"
1671 p=${PACKAGE-default}
0953fe64 1672case $enableval in
2e1a7175
TF
1673yes) enable_fast_install=yes ;;
1674no) enable_fast_install=no ;;
1675*)
1676 enable_fast_install=no
1677 # Look at the argument we got. We use all the common list separators.
1678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1679 for pkg in $enableval; do
1680 if test "X$pkg" = "X$p"; then
1681 enable_fast_install=yes
1682 fi
1683 done
1684 IFS="$ac_save_ifs"
1685 ;;
1686esac
1687else
1688 enable_fast_install=yes
8a0efa53
CF
1689fi
1690
2e1a7175
TF
1691# Extract the first word of "gcc", so it can be a program name with args.
1692set dummy gcc; ac_word=$2
1693echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1694echo "configure:1695: checking for $ac_word" >&5
2e1a7175
TF
1695if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1697else
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1700else
1701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1702 ac_dummy="$PATH"
1703 for ac_dir in $ac_dummy; do
1704 test -z "$ac_dir" && ac_dir=.
1705 if test -f $ac_dir/$ac_word; then
1706 ac_cv_prog_CC="gcc"
1707 break
1708 fi
1709 done
1710 IFS="$ac_save_ifs"
1711fi
1712fi
1713CC="$ac_cv_prog_CC"
1714if test -n "$CC"; then
1715 echo "$ac_t""$CC" 1>&6
1716else
1717 echo "$ac_t""no" 1>&6
1718fi
8a0efa53 1719
2e1a7175
TF
1720if test -z "$CC"; then
1721 # Extract the first word of "cc", so it can be a program name with args.
1722set dummy cc; ac_word=$2
1723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1724echo "configure:1725: checking for $ac_word" >&5
2e1a7175
TF
1725if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
8a0efa53 1727else
2e1a7175
TF
1728 if test -n "$CC"; then
1729 ac_cv_prog_CC="$CC" # Let the user override the test.
1730else
1731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1732 ac_prog_rejected=no
1733 ac_dummy="$PATH"
1734 for ac_dir in $ac_dummy; do
1735 test -z "$ac_dir" && ac_dir=.
1736 if test -f $ac_dir/$ac_word; then
1737 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1738 ac_prog_rejected=yes
1739 continue
1740 fi
1741 ac_cv_prog_CC="cc"
1742 break
1743 fi
1744 done
1745 IFS="$ac_save_ifs"
1746if test $ac_prog_rejected = yes; then
1747 # We found a bogon in the path, so make sure we never use it.
1748 set dummy $ac_cv_prog_CC
1749 shift
1750 if test $# -gt 0; then
1751 # We chose a different compiler from the bogus one.
1752 # However, it has the same basename, so the bogon will be chosen
1753 # first if we set CC to just the basename; use the full file name.
1754 shift
1755 set dummy "$ac_dir/$ac_word" "$@"
1756 shift
1757 ac_cv_prog_CC="$@"
1758 fi
1759fi
1760fi
1761fi
1762CC="$ac_cv_prog_CC"
1763if test -n "$CC"; then
1764 echo "$ac_t""$CC" 1>&6
1765else
1766 echo "$ac_t""no" 1>&6
8a0efa53
CF
1767fi
1768
2e1a7175
TF
1769 if test -z "$CC"; then
1770 case "`uname -s`" in
1771 *win32* | *WIN32*)
1772 # Extract the first word of "cl", so it can be a program name with args.
1773set dummy cl; ac_word=$2
1774echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 1775echo "configure:1776: checking for $ac_word" >&5
2e1a7175
TF
1776if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1778else
1779 if test -n "$CC"; then
1780 ac_cv_prog_CC="$CC" # Let the user override the test.
1781else
1782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1783 ac_dummy="$PATH"
1784 for ac_dir in $ac_dummy; do
1785 test -z "$ac_dir" && ac_dir=.
1786 if test -f $ac_dir/$ac_word; then
1787 ac_cv_prog_CC="cl"
1788 break
1789 fi
1790 done
1791 IFS="$ac_save_ifs"
1792fi
1793fi
1794CC="$ac_cv_prog_CC"
1795if test -n "$CC"; then
1796 echo "$ac_t""$CC" 1>&6
1797else
1798 echo "$ac_t""no" 1>&6
1799fi
1800 ;;
1801 esac
1802 fi
1803 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8a0efa53
CF
1804fi
1805
2e1a7175 1806echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
786ab12c 1807echo "configure:1808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2e1a7175
TF
1808
1809ac_ext=c
1810# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1811ac_cpp='$CPP $CPPFLAGS'
1812ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1813ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1814cross_compiling=$ac_cv_prog_cc_cross
1815
1816cat > conftest.$ac_ext << EOF
8a0efa53 1817
786ab12c 1818#line 1819 "configure"
2e1a7175 1819#include "confdefs.h"
8a0efa53 1820
2e1a7175
TF
1821main(){return(0);}
1822EOF
786ab12c 1823if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2e1a7175
TF
1824 ac_cv_prog_cc_works=yes
1825 # If we can't run a trivial program, we are probably using a cross compiler.
1826 if (./conftest; exit) 2>/dev/null; then
1827 ac_cv_prog_cc_cross=no
1828 else
1829 ac_cv_prog_cc_cross=yes
1830 fi
8a0efa53 1831else
2e1a7175
TF
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1834 ac_cv_prog_cc_works=no
8a0efa53 1835fi
2e1a7175
TF
1836rm -fr conftest*
1837ac_ext=c
1838# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1839ac_cpp='$CPP $CPPFLAGS'
1840ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1841ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1842cross_compiling=$ac_cv_prog_cc_cross
8a0efa53 1843
2e1a7175
TF
1844echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1845if test $ac_cv_prog_cc_works = no; then
1846 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8a0efa53 1847fi
2e1a7175 1848echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
786ab12c 1849echo "configure:1850: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2e1a7175
TF
1850echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1851cross_compiling=$ac_cv_prog_cc_cross
8a0efa53 1852
2e1a7175 1853echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
786ab12c 1854echo "configure:1855: checking whether we are using GNU C" >&5
2e1a7175
TF
1855if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1857else
1858 cat > conftest.c <<EOF
1859#ifdef __GNUC__
1860 yes;
1861#endif
1862EOF
786ab12c 1863if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2e1a7175
TF
1864 ac_cv_prog_gcc=yes
1865else
1866 ac_cv_prog_gcc=no
1867fi
1868fi
8a0efa53 1869
2e1a7175 1870echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8a0efa53 1871
2e1a7175
TF
1872if test $ac_cv_prog_gcc = yes; then
1873 GCC=yes
8a0efa53 1874else
2e1a7175 1875 GCC=
8a0efa53
CF
1876fi
1877
2e1a7175
TF
1878ac_test_CFLAGS="${CFLAGS+set}"
1879ac_save_CFLAGS="$CFLAGS"
1880CFLAGS=
1881echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
786ab12c 1882echo "configure:1883: checking whether ${CC-cc} accepts -g" >&5
2e1a7175
TF
1883if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1885else
1886 echo 'void f(){}' > conftest.c
1887if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1888 ac_cv_prog_cc_g=yes
1889else
1890 ac_cv_prog_cc_g=no
1891fi
1892rm -f conftest*
8a0efa53 1893
8a0efa53
CF
1894fi
1895
2e1a7175
TF
1896echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1897if test "$ac_test_CFLAGS" = set; then
1898 CFLAGS="$ac_save_CFLAGS"
1899elif test $ac_cv_prog_cc_g = yes; then
1900 if test "$GCC" = yes; then
1901 CFLAGS="-g -O2"
1902 else
1903 CFLAGS="-g"
1904 fi
1905else
1906 if test "$GCC" = yes; then
1907 CFLAGS="-O2"
1908 else
1909 CFLAGS=
1910 fi
1911fi
8a0efa53 1912
2e1a7175
TF
1913# Check whether --with-gnu-ld or --without-gnu-ld was given.
1914if test "${with_gnu_ld+set}" = set; then
1915 withval="$with_gnu_ld"
1916 test "$withval" = no || with_gnu_ld=yes
1917else
1918 with_gnu_ld=no
1919fi
1920
1921ac_prog=ld
0953fe64 1922if test "$GCC" = yes; then
2e1a7175
TF
1923 # Check if gcc -print-prog-name=ld gives a path.
1924 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
786ab12c 1925echo "configure:1926: checking for ld used by GCC" >&5
0953fe64
TF
1926 case $host in
1927 *-*-mingw*)
1928 # gcc leaves a trailing carriage return which upsets mingw
1929 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1930 *)
1931 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1932 esac
1933 case $ac_prog in
2e1a7175
TF
1934 # Accept absolute paths.
1935 [\\/]* | [A-Za-z]:[\\/]*)
1936 re_direlt='/[^/][^/]*/\.\./'
1937 # Canonicalize the path of ld
1938 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1939 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1940 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1941 done
1942 test -z "$LD" && LD="$ac_prog"
1943 ;;
1944 "")
1945 # If it fails, then pretend we aren't using GCC.
1946 ac_prog=ld
1947 ;;
1948 *)
1949 # If it is relative, then search for the first ld in PATH.
1950 with_gnu_ld=unknown
1951 ;;
1952 esac
1953elif test "$with_gnu_ld" = yes; then
1954 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
786ab12c 1955echo "configure:1956: checking for GNU ld" >&5
2e1a7175
TF
1956else
1957 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
786ab12c 1958echo "configure:1959: checking for non-GNU ld" >&5
8a0efa53 1959fi
0953fe64 1960if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
2e1a7175
TF
1961 echo $ac_n "(cached) $ac_c" 1>&6
1962else
1963 if test -z "$LD"; then
1964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1965 for ac_dir in $PATH; do
1966 test -z "$ac_dir" && ac_dir=.
1967 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
0953fe64 1968 lt_cv_path_LD="$ac_dir/$ac_prog"
2e1a7175
TF
1969 # Check to see if the program is GNU ld. I'd rather use --version,
1970 # but apparently some GNU ld's only accept -v.
1971 # Break only if it was the GNU/non-GNU ld that we prefer.
0953fe64 1972 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2e1a7175
TF
1973 test "$with_gnu_ld" != no && break
1974 else
1975 test "$with_gnu_ld" != yes && break
1976 fi
1977 fi
1978 done
1979 IFS="$ac_save_ifs"
1980else
0953fe64 1981 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2e1a7175
TF
1982fi
1983fi
1984
0953fe64 1985LD="$lt_cv_path_LD"
2e1a7175
TF
1986if test -n "$LD"; then
1987 echo "$ac_t""$LD" 1>&6
1988else
1989 echo "$ac_t""no" 1>&6
1990fi
1991test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1992echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
786ab12c 1993echo "configure:1994: checking if the linker ($LD) is GNU ld" >&5
0953fe64 1994if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
2e1a7175
TF
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996else
1997 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1998if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
0953fe64 1999 lt_cv_prog_gnu_ld=yes
2e1a7175 2000else
0953fe64 2001 lt_cv_prog_gnu_ld=no
2e1a7175
TF
2002fi
2003fi
2004
0953fe64
TF
2005echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
2006with_gnu_ld=$lt_cv_prog_gnu_ld
2007
2008
2009echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
786ab12c 2010echo "configure:2011: checking for $LD option to reload object files" >&5
0953fe64
TF
2011if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2013else
2014 lt_cv_ld_reload_flag='-r'
2015fi
2e1a7175 2016
0953fe64
TF
2017echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
2018reload_flag=$lt_cv_ld_reload_flag
2019test -n "$reload_flag" && reload_flag=" $reload_flag"
2e1a7175
TF
2020
2021echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
786ab12c 2022echo "configure:2023: checking for BSD-compatible nm" >&5
0953fe64 2023if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2e1a7175
TF
2024 echo $ac_n "(cached) $ac_c" 1>&6
2025else
2026 if test -n "$NM"; then
2027 # Let the user override the test.
0953fe64 2028 lt_cv_path_NM="$NM"
2e1a7175
TF
2029else
2030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2031 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2032 test -z "$ac_dir" && ac_dir=.
0953fe64
TF
2033 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2034 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2e1a7175
TF
2035 # Check to see if the nm accepts a BSD-compat flag.
2036 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2037 # nm: unknown option "B" ignored
0953fe64
TF
2038 # Tru64's nm complains that /dev/null is an invalid object file
2039 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2040 lt_cv_path_NM="$tmp_nm -B"
2e1a7175 2041 break
0953fe64
TF
2042 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2043 lt_cv_path_NM="$tmp_nm -p"
2e1a7175
TF
2044 break
2045 else
0953fe64 2046 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2e1a7175
TF
2047 continue # so that we can try to find one that supports BSD flags
2048 fi
2049 fi
2050 done
2051 IFS="$ac_save_ifs"
0953fe64 2052 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2e1a7175
TF
2053fi
2054fi
2055
0953fe64 2056NM="$lt_cv_path_NM"
2e1a7175
TF
2057echo "$ac_t""$NM" 1>&6
2058
2059echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
786ab12c 2060echo "configure:2061: checking whether ln -s works" >&5
2e1a7175
TF
2061if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2063else
2064 rm -f conftestdata
2065if ln -s X conftestdata 2>/dev/null
2066then
2067 rm -f conftestdata
2068 ac_cv_prog_LN_S="ln -s"
2069else
2070 ac_cv_prog_LN_S=ln
2071fi
2072fi
2073LN_S="$ac_cv_prog_LN_S"
2074if test "$ac_cv_prog_LN_S" = "ln -s"; then
2075 echo "$ac_t""yes" 1>&6
2076else
2077 echo "$ac_t""no" 1>&6
2078fi
2079
0953fe64 2080echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
786ab12c 2081echo "configure:2082: checking how to recognise dependant libraries" >&5
0953fe64
TF
2082if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2084else
2085 lt_cv_file_magic_cmd='$MAGIC_CMD'
2086lt_cv_file_magic_test_file=
2087lt_cv_deplibs_check_method='unknown'
2088# Need to set the preceding variable on all platforms that support
2089# interlibrary dependencies.
2090# 'none' -- dependencies not supported.
2091# `unknown' -- same as none, but documents that we really don't know.
2092# 'pass_all' -- all dependencies passed with no checks.
2093# 'test_compile' -- check by making test program.
2094# 'file_magic [regex]' -- check by looking for files in library path
2095# which responds to the $file_magic_cmd with a given egrep regex.
2096# If you have `file' or equivalent on your system and you're not sure
2097# whether `pass_all' will *always* work, you probably want this one.
2098
2099case $host_os in
2100aix*)
2101 lt_cv_deplibs_check_method=pass_all
2102 ;;
2103
2104beos*)
2105 lt_cv_deplibs_check_method=pass_all
2106 ;;
2107
2108bsdi4*)
2109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2110 lt_cv_file_magic_cmd='/usr/bin/file -L'
2111 lt_cv_file_magic_test_file=/shlib/libc.so
2112 ;;
2113
2114cygwin* | mingw* |pw32*)
2115 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2116 lt_cv_file_magic_cmd='$OBJDUMP -f'
2117 ;;
2118
2119darwin* | rhapsody*)
2120 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2121 lt_cv_file_magic_cmd='/usr/bin/file -L'
2122 case "$host_os" in
2123 rhapsody* | darwin1.012)
2124 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2125 ;;
2126 *) # Darwin 1.3 on
2127 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2128 ;;
2129 esac
2130 ;;
2131
2132freebsd* )
2133 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2134 case $host_cpu in
2135 i*86 )
2136 # Not sure whether the presence of OpenBSD here was a mistake.
2137 # Let's accept both of them until this is cleared up.
2138 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2139 lt_cv_file_magic_cmd=/usr/bin/file
2140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2141 ;;
2142 esac
2143 else
2144 lt_cv_deplibs_check_method=pass_all
2145 fi
2146 ;;
2147
2148gnu*)
2149 lt_cv_deplibs_check_method=pass_all
2150 ;;
2151
2152hpux10.20*|hpux11*)
2153 case $host_cpu in
2154 hppa*)
2155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2156 lt_cv_file_magic_cmd=/usr/bin/file
2157 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2158 ;;
2159 ia64*)
2160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2161 lt_cv_file_magic_cmd=/usr/bin/file
2162 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2163 ;;
2164 esac
2165 ;;
2166
2167irix5* | irix6*)
2168 case $host_os in
2169 irix5*)
2170 # this will be overridden with pass_all, but let us keep it just in case
2171 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2172 ;;
2173 *)
2174 case $LD in
2175 *-32|*"-32 ") libmagic=32-bit;;
2176 *-n32|*"-n32 ") libmagic=N32;;
2177 *-64|*"-64 ") libmagic=64-bit;;
2178 *) libmagic=never-match;;
2179 esac
2180 # this will be overridden with pass_all, but let us keep it just in case
2181 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2182 ;;
2183 esac
2184 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2185 lt_cv_deplibs_check_method=pass_all
2186 ;;
2187
2188# This must be Linux ELF.
2189linux-gnu*)
2190 case $host_cpu in
2191 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2192 lt_cv_deplibs_check_method=pass_all ;;
2193 *)
2194 # glibc up to 2.1.1 does not perform some relocations on ARM
2195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2196 esac
2197 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2198 ;;
2199
2200netbsd*)
2201 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2202 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2203 else
2204 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2205 fi
2206 ;;
2207
2208newsos6)
2209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2210 lt_cv_file_magic_cmd=/usr/bin/file
2211 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2212 ;;
2213
2214osf3* | osf4* | osf5*)
2215 # this will be overridden with pass_all, but let us keep it just in case
2216 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2217 lt_cv_file_magic_test_file=/shlib/libc.so
2218 lt_cv_deplibs_check_method=pass_all
2219 ;;
2220
2221sco3.2v5*)
2222 lt_cv_deplibs_check_method=pass_all
2223 ;;
2224
2225solaris*)
2226 lt_cv_deplibs_check_method=pass_all
2227 lt_cv_file_magic_test_file=/lib/libc.so
2228 ;;
2229
2230sysv5uw[78]* | sysv4*uw2*)
2231 lt_cv_deplibs_check_method=pass_all
2232 ;;
2233
2234sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2235 case $host_vendor in
2236 ncr)
2237 lt_cv_deplibs_check_method=pass_all
2238 ;;
2239 motorola)
2240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2242 ;;
2243 esac
2244 ;;
2245esac
2246
2247fi
2248
2249echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2250file_magic_cmd=$lt_cv_file_magic_cmd
2251deplibs_check_method=$lt_cv_deplibs_check_method
2252
2253echo $ac_n "checking for object suffix""... $ac_c" 1>&6
786ab12c 2254echo "configure:2255: checking for object suffix" >&5
0953fe64
TF
2255if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2257else
2258 rm -f conftest*
2259echo 'int i = 1;' > conftest.$ac_ext
786ab12c 2260if { (eval echo configure:2261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0953fe64
TF
2261 for ac_file in conftest.*; do
2262 case $ac_file in
2263 *.c) ;;
2264 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2265 esac
2266 done
2267else
2268 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2269fi
2270rm -f conftest*
2271fi
2272
2273echo "$ac_t""$ac_cv_objext" 1>&6
2274OBJEXT=$ac_cv_objext
2275ac_objext=$ac_cv_objext
2276
2277# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2278
2279# Only perform the check for file, if the check method requires it
2280case $deplibs_check_method in
2281file_magic*)
2282 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2283 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
786ab12c 2284echo "configure:2285: checking for ${ac_tool_prefix}file" >&5
0953fe64
TF
2285if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2287else
2288 case $MAGIC_CMD in
2289 /*)
2290 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2291 ;;
2292 ?:/*)
2293 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2294 ;;
2295 *)
2296 ac_save_MAGIC_CMD="$MAGIC_CMD"
2297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2298 ac_dummy="/usr/bin:$PATH"
2299 for ac_dir in $ac_dummy; do
2300 test -z "$ac_dir" && ac_dir=.
2301 if test -f $ac_dir/${ac_tool_prefix}file; then
2302 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2303 if test -n "$file_magic_test_file"; then
2304 case $deplibs_check_method in
2305 "file_magic "*)
2306 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2307 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2308 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2309 egrep "$file_magic_regex" > /dev/null; then
2310 :
2311 else
2312 cat <<EOF 1>&2
2313
2314*** Warning: the command libtool uses to detect shared libraries,
2315*** $file_magic_cmd, produces output that libtool cannot recognize.
2316*** The result is that libtool may fail to recognize shared libraries
2317*** as such. This will affect the creation of libtool libraries that
2318*** depend on shared libraries, but programs linked with such libtool
2319*** libraries will work regardless of this problem. Nevertheless, you
2320*** may want to report the problem to your system manager and/or to
2321*** bug-libtool@gnu.org
2322
2323EOF
2324 fi ;;
2325 esac
2326 fi
2327 break
2328 fi
2329 done
2330 IFS="$ac_save_ifs"
2331 MAGIC_CMD="$ac_save_MAGIC_CMD"
2332 ;;
2333esac
2334fi
2335
2336MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2337if test -n "$MAGIC_CMD"; then
2338 echo "$ac_t""$MAGIC_CMD" 1>&6
2339else
2340 echo "$ac_t""no" 1>&6
2341fi
2342
2343if test -z "$lt_cv_path_MAGIC_CMD"; then
2344 if test -n "$ac_tool_prefix"; then
2345 echo $ac_n "checking for file""... $ac_c" 1>&6
786ab12c 2346echo "configure:2347: checking for file" >&5
0953fe64
TF
2347if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2349else
2350 case $MAGIC_CMD in
2351 /*)
2352 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2353 ;;
2354 ?:/*)
2355 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2356 ;;
2357 *)
2358 ac_save_MAGIC_CMD="$MAGIC_CMD"
2359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2360 ac_dummy="/usr/bin:$PATH"
2361 for ac_dir in $ac_dummy; do
2362 test -z "$ac_dir" && ac_dir=.
2363 if test -f $ac_dir/file; then
2364 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2365 if test -n "$file_magic_test_file"; then
2366 case $deplibs_check_method in
2367 "file_magic "*)
2368 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2371 egrep "$file_magic_regex" > /dev/null; then
2372 :
2373 else
2374 cat <<EOF 1>&2
2375
2376*** Warning: the command libtool uses to detect shared libraries,
2377*** $file_magic_cmd, produces output that libtool cannot recognize.
2378*** The result is that libtool may fail to recognize shared libraries
2379*** as such. This will affect the creation of libtool libraries that
2380*** depend on shared libraries, but programs linked with such libtool
2381*** libraries will work regardless of this problem. Nevertheless, you
2382*** may want to report the problem to your system manager and/or to
2383*** bug-libtool@gnu.org
2384
2385EOF
2386 fi ;;
2387 esac
2388 fi
2389 break
2390 fi
2391 done
2392 IFS="$ac_save_ifs"
2393 MAGIC_CMD="$ac_save_MAGIC_CMD"
2394 ;;
2395esac
2396fi
2397
2398MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2399if test -n "$MAGIC_CMD"; then
2400 echo "$ac_t""$MAGIC_CMD" 1>&6
2401else
2402 echo "$ac_t""no" 1>&6
2403fi
2404
2405 else
2406 MAGIC_CMD=:
2407 fi
2408fi
2409
2410 fi
2411 ;;
2412esac
2413
2414# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2415set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2416echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 2417echo "configure:2418: checking for $ac_word" >&5
0953fe64
TF
2418if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2420else
2421 if test -n "$RANLIB"; then
2422 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2423else
2424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2425 ac_dummy="$PATH"
2426 for ac_dir in $ac_dummy; do
2427 test -z "$ac_dir" && ac_dir=.
2428 if test -f $ac_dir/$ac_word; then
2429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2430 break
2431 fi
2432 done
2433 IFS="$ac_save_ifs"
2434fi
2435fi
2436RANLIB="$ac_cv_prog_RANLIB"
2437if test -n "$RANLIB"; then
2438 echo "$ac_t""$RANLIB" 1>&6
2439else
2440 echo "$ac_t""no" 1>&6
2441fi
2442
2443
2444if test -z "$ac_cv_prog_RANLIB"; then
2445if test -n "$ac_tool_prefix"; then
2446 # Extract the first word of "ranlib", so it can be a program name with args.
2447set dummy ranlib; ac_word=$2
2448echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 2449echo "configure:2450: checking for $ac_word" >&5
0953fe64
TF
2450if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2452else
2453 if test -n "$RANLIB"; then
2454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2455else
2456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2457 ac_dummy="$PATH"
2458 for ac_dir in $ac_dummy; do
2459 test -z "$ac_dir" && ac_dir=.
2460 if test -f $ac_dir/$ac_word; then
2461 ac_cv_prog_RANLIB="ranlib"
2462 break
2463 fi
2464 done
2465 IFS="$ac_save_ifs"
2466 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2467fi
2468fi
2469RANLIB="$ac_cv_prog_RANLIB"
2470if test -n "$RANLIB"; then
2471 echo "$ac_t""$RANLIB" 1>&6
2472else
2473 echo "$ac_t""no" 1>&6
2474fi
2475
2476else
2477 RANLIB=":"
2478fi
2479fi
2480
2481# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2482set dummy ${ac_tool_prefix}strip; ac_word=$2
2483echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 2484echo "configure:2485: checking for $ac_word" >&5
0953fe64
TF
2485if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2487else
2488 if test -n "$STRIP"; then
2489 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2490else
2491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2492 ac_dummy="$PATH"
2493 for ac_dir in $ac_dummy; do
2494 test -z "$ac_dir" && ac_dir=.
2495 if test -f $ac_dir/$ac_word; then
2496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2497 break
2498 fi
2499 done
2500 IFS="$ac_save_ifs"
2501fi
2502fi
2503STRIP="$ac_cv_prog_STRIP"
2504if test -n "$STRIP"; then
2505 echo "$ac_t""$STRIP" 1>&6
2506else
2507 echo "$ac_t""no" 1>&6
2508fi
2509
2510
2511if test -z "$ac_cv_prog_STRIP"; then
2512if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "strip", so it can be a program name with args.
2514set dummy strip; ac_word=$2
2515echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 2516echo "configure:2517: checking for $ac_word" >&5
0953fe64
TF
2517if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2519else
2520 if test -n "$STRIP"; then
2521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2522else
2523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2524 ac_dummy="$PATH"
2525 for ac_dir in $ac_dummy; do
2526 test -z "$ac_dir" && ac_dir=.
2527 if test -f $ac_dir/$ac_word; then
2528 ac_cv_prog_STRIP="strip"
2529 break
2530 fi
2531 done
2532 IFS="$ac_save_ifs"
2533 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2534fi
2535fi
2536STRIP="$ac_cv_prog_STRIP"
2537if test -n "$STRIP"; then
2538 echo "$ac_t""$STRIP" 1>&6
2539else
2540 echo "$ac_t""no" 1>&6
2541fi
2542
2543else
2544 STRIP=":"
2545fi
2546fi
2547
2e1a7175
TF
2548
2549# Check for any special flags to pass to ltconfig.
2550libtool_flags="--cache-file=$cache_file"
2551test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2552test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2553test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
0953fe64
TF
2554test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2555test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2e1a7175
TF
2556
2557libtool_flags="$libtool_flags --enable-win32-dll"
2558# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2559if test "${enable_libtool_lock+set}" = set; then
2560 enableval="$enable_libtool_lock"
2561 :
2562fi
2563
2564test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2565test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2566
0953fe64
TF
2567# Check whether --with-pic or --without-pic was given.
2568if test "${with_pic+set}" = set; then
2569 withval="$with_pic"
2570 pic_mode="$withval"
2571else
2572 pic_mode=default
2573fi
2574
2575test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2576test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2577
2e1a7175
TF
2578# Some flags need to be propagated to the compiler or linker for good
2579# libtool support.
0953fe64 2580case $host in
2e1a7175
TF
2581*-*-irix6*)
2582 # Find out which ABI we are using.
786ab12c
JJ
2583 echo '#line 2584 "configure"' > conftest.$ac_ext
2584 if { (eval echo configure:2585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0953fe64 2585 case `/usr/bin/file conftest.$ac_objext` in
2e1a7175
TF
2586 *32-bit*)
2587 LD="${LD-ld} -32"
2588 ;;
2589 *N32*)
2590 LD="${LD-ld} -n32"
2591 ;;
2592 *64-bit*)
2593 LD="${LD-ld} -64"
2594 ;;
2595 esac
2596 fi
2597 rm -rf conftest*
2598 ;;
2599
0953fe64
TF
2600ia64-*-hpux*)
2601 # Find out which ABI we are using.
2602 echo 'int i;' > conftest.$ac_ext
786ab12c 2603 if { (eval echo configure:2604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0953fe64
TF
2604 case "`/usr/bin/file conftest.o`" in
2605 *ELF-32*)
2606 HPUX_IA64_MODE="32"
2607 ;;
2608 *ELF-64*)
2609 HPUX_IA64_MODE="64"
2610 ;;
2611 esac
2612 fi
2613 rm -rf conftest*
2614 ;;
2615
2e1a7175
TF
2616*-*-sco3.2v5*)
2617 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2618 SAVE_CFLAGS="$CFLAGS"
2619 CFLAGS="$CFLAGS -belf"
2620 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
786ab12c 2621echo "configure:2622: checking whether the C compiler needs -belf" >&5
2e1a7175
TF
2622if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2624else
0953fe64
TF
2625
2626 ac_ext=c
2627# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2628ac_cpp='$CPP $CPPFLAGS'
2629ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2630ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2631cross_compiling=$ac_cv_prog_cc_cross
2632
2633 cat > conftest.$ac_ext <<EOF
786ab12c 2634#line 2635 "configure"
2e1a7175
TF
2635#include "confdefs.h"
2636
2637int main() {
2638
2639; return 0; }
2640EOF
786ab12c 2641if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2e1a7175
TF
2642 rm -rf conftest*
2643 lt_cv_cc_needs_belf=yes
2644else
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2647 rm -rf conftest*
2648 lt_cv_cc_needs_belf=no
2649fi
2650rm -f conftest*
0953fe64
TF
2651 ac_ext=c
2652# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2653ac_cpp='$CPP $CPPFLAGS'
2654ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2655ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2656cross_compiling=$ac_cv_prog_cc_cross
2657
2e1a7175
TF
2658fi
2659
2660echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2661 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2662 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2663 CFLAGS="$SAVE_CFLAGS"
2664 fi
2665 ;;
2666
0953fe64 2667*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2e1a7175
TF
2668 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2669set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2670echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 2671echo "configure:2672: checking for $ac_word" >&5
2e1a7175
TF
2672if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2674else
2675 if test -n "$DLLTOOL"; then
2676 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2677else
2678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2679 ac_dummy="$PATH"
2680 for ac_dir in $ac_dummy; do
2681 test -z "$ac_dir" && ac_dir=.
2682 if test -f $ac_dir/$ac_word; then
2683 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2684 break
2685 fi
2686 done
2687 IFS="$ac_save_ifs"
2688fi
2689fi
2690DLLTOOL="$ac_cv_prog_DLLTOOL"
2691if test -n "$DLLTOOL"; then
2692 echo "$ac_t""$DLLTOOL" 1>&6
2693else
2694 echo "$ac_t""no" 1>&6
2695fi
2696
2697
2698if test -z "$ac_cv_prog_DLLTOOL"; then
2699if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "dlltool", so it can be a program name with args.
2701set dummy dlltool; ac_word=$2
2702echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 2703echo "configure:2704: checking for $ac_word" >&5
2e1a7175
TF
2704if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2706else
2707 if test -n "$DLLTOOL"; then
2708 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2709else
2710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2711 ac_dummy="$PATH"
2712 for ac_dir in $ac_dummy; do
2713 test -z "$ac_dir" && ac_dir=.
2714 if test -f $ac_dir/$ac_word; then
2715 ac_cv_prog_DLLTOOL="dlltool"
2716 break
2717 fi
2718 done
2719 IFS="$ac_save_ifs"
2720 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2721fi
2722fi
2723DLLTOOL="$ac_cv_prog_DLLTOOL"
2724if test -n "$DLLTOOL"; then
2725 echo "$ac_t""$DLLTOOL" 1>&6
2726else
2727 echo "$ac_t""no" 1>&6
2728fi
2729
2730else
2731 DLLTOOL="false"
2732fi
2733fi
2734
2735 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2736set dummy ${ac_tool_prefix}as; ac_word=$2
2737echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 2738echo "configure:2739: checking for $ac_word" >&5
2e1a7175
TF
2739if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2740 echo $ac_n "(cached) $ac_c" 1>&6
2741else
2742 if test -n "$AS"; then
2743 ac_cv_prog_AS="$AS" # Let the user override the test.
2744else
2745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2746 ac_dummy="$PATH"
2747 for ac_dir in $ac_dummy; do
2748 test -z "$ac_dir" && ac_dir=.
2749 if test -f $ac_dir/$ac_word; then
2750 ac_cv_prog_AS="${ac_tool_prefix}as"
2751 break
2752 fi
2753 done
2754 IFS="$ac_save_ifs"
2755fi
2756fi
2757AS="$ac_cv_prog_AS"
2758if test -n "$AS"; then
2759 echo "$ac_t""$AS" 1>&6
2760else
2761 echo "$ac_t""no" 1>&6
2762fi
2763
2764
2765if test -z "$ac_cv_prog_AS"; then
2766if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "as", so it can be a program name with args.
2768set dummy as; ac_word=$2
2769echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 2770echo "configure:2771: checking for $ac_word" >&5
2e1a7175
TF
2771if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2772 echo $ac_n "(cached) $ac_c" 1>&6
2773else
2774 if test -n "$AS"; then
2775 ac_cv_prog_AS="$AS" # Let the user override the test.
2776else
2777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2778 ac_dummy="$PATH"
2779 for ac_dir in $ac_dummy; do
2780 test -z "$ac_dir" && ac_dir=.
2781 if test -f $ac_dir/$ac_word; then
2782 ac_cv_prog_AS="as"
2783 break
2784 fi
2785 done
2786 IFS="$ac_save_ifs"
2787 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2788fi
2789fi
2790AS="$ac_cv_prog_AS"
2791if test -n "$AS"; then
2792 echo "$ac_t""$AS" 1>&6
2793else
2794 echo "$ac_t""no" 1>&6
2795fi
2796
2797else
2798 AS="false"
2799fi
2800fi
2801
2802 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2803set dummy ${ac_tool_prefix}objdump; ac_word=$2
2804echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 2805echo "configure:2806: checking for $ac_word" >&5
2e1a7175
TF
2806if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2808else
2809 if test -n "$OBJDUMP"; then
2810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2811else
2812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2813 ac_dummy="$PATH"
2814 for ac_dir in $ac_dummy; do
2815 test -z "$ac_dir" && ac_dir=.
2816 if test -f $ac_dir/$ac_word; then
2817 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2818 break
2819 fi
2820 done
2821 IFS="$ac_save_ifs"
2822fi
2823fi
2824OBJDUMP="$ac_cv_prog_OBJDUMP"
2825if test -n "$OBJDUMP"; then
2826 echo "$ac_t""$OBJDUMP" 1>&6
2827else
2828 echo "$ac_t""no" 1>&6
2829fi
2830
2831
2832if test -z "$ac_cv_prog_OBJDUMP"; then
2833if test -n "$ac_tool_prefix"; then
2834 # Extract the first word of "objdump", so it can be a program name with args.
2835set dummy objdump; ac_word=$2
2836echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786ab12c 2837echo "configure:2838: checking for $ac_word" >&5
2e1a7175
TF
2838if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2840else
2841 if test -n "$OBJDUMP"; then
2842 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2843else
2844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2845 ac_dummy="$PATH"
2846 for ac_dir in $ac_dummy; do
2847 test -z "$ac_dir" && ac_dir=.
2848 if test -f $ac_dir/$ac_word; then
2849 ac_cv_prog_OBJDUMP="objdump"
2850 break
2851 fi
2852 done
2853 IFS="$ac_save_ifs"
2854 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2855fi
2856fi
2857OBJDUMP="$ac_cv_prog_OBJDUMP"
2858if test -n "$OBJDUMP"; then
2859 echo "$ac_t""$OBJDUMP" 1>&6
2860else
2861 echo "$ac_t""no" 1>&6
2862fi
2863
2864else
2865 OBJDUMP="false"
2866fi
2867fi
2868
2e1a7175 2869
0953fe64
TF
2870 # recent cygwin and mingw systems supply a stub DllMain which the user
2871 # can override, but on older systems we have to supply one
2872 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
786ab12c 2873echo "configure:2874: checking if libtool should supply DllMain function" >&5
0953fe64
TF
2874if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2876else
2877 cat > conftest.$ac_ext <<EOF
786ab12c 2878#line 2879 "configure"
0953fe64
TF
2879#include "confdefs.h"
2880
2881int main() {
2882extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2883 DllMain (0, 0, 0);
2884; return 0; }
2885EOF
786ab12c 2886if { (eval echo configure:2887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0953fe64
TF
2887 rm -rf conftest*
2888 lt_cv_need_dllmain=no
2889else
2890 echo "configure: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2892 rm -rf conftest*
2893 lt_cv_need_dllmain=yes
2894fi
2895rm -f conftest*
2896fi
2897
2898echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2899
2900 case $host/$CC in
2901 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2902 # old mingw systems require "-dll" to link a DLL, while more recent ones
2903 # require "-mdll"
2904 SAVE_CFLAGS="$CFLAGS"
2905 CFLAGS="$CFLAGS -mdll"
2906 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
786ab12c 2907echo "configure:2908: checking how to link DLLs" >&5
0953fe64
TF
2908if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2910else
2911 cat > conftest.$ac_ext <<EOF
786ab12c 2912#line 2913 "configure"
0953fe64
TF
2913#include "confdefs.h"
2914
2915int main() {
2916
2917; return 0; }
2918EOF
786ab12c 2919if { (eval echo configure:2920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0953fe64
TF
2920 rm -rf conftest*
2921 lt_cv_cc_dll_switch=-mdll
2922else
2923 echo "configure: failed program was:" >&5
2924 cat conftest.$ac_ext >&5
2925 rm -rf conftest*
2926 lt_cv_cc_dll_switch=-dll
2927fi
2928rm -f conftest*
2929fi
2930
2931echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2932 CFLAGS="$SAVE_CFLAGS" ;;
2933 *-*-cygwin* | *-*-pw32*)
2934 # cygwin systems need to pass --dll to the linker, and not link
2935 # crt.o which will require a WinMain@16 definition.
2936 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2937 esac
2938 ;;
2939
2e1a7175
TF
2940esac
2941
2942
2943# Save cache, so that ltconfig can load it
2944cat > confcache <<\EOF
2945# This file is a shell script that caches the results of configure
2946# tests run on this system so they can be shared between configure
2947# scripts and configure runs. It is not useful on other systems.
2948# If it contains results you don't want to keep, you may remove or edit it.
2949#
2950# By default, configure uses ./config.cache as the cache file,
2951# creating it if it does not exist already. You can give configure
2952# the --cache-file=FILE option to use a different cache file; that is
2953# what configure does when it calls configure scripts in
2954# subdirectories, so they share the cache.
2955# Giving --cache-file=/dev/null disables caching, for debugging configure.
2956# config.status only pays attention to the cache file if you give it the
2957# --recheck option to rerun configure.
2958#
2959EOF
2960# The following way of writing the cache mishandles newlines in values,
2961# but we know of no workaround that is simple, portable, and efficient.
2962# So, don't put newlines in cache variables' values.
2963# Ultrix sh set writes to stderr and can't be redirected directly,
2964# and sets the high bit in the cache file unless we assign to the vars.
2965(set) 2>&1 |
2966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2967 *ac_space=\ *)
2968 # `set' does not quote correctly, so add quotes (double-quote substitution
2969 # turns \\\\ into \\, and sed turns \\ into \).
2970 sed -n \
2971 -e "s/'/'\\\\''/g" \
2972 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2973 ;;
2974 *)
2975 # `set' quotes correctly as required by POSIX, so do not add quotes.
2976 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2977 ;;
2978 esac >> confcache
2979if cmp -s $cache_file confcache; then
2980 :
2981else
2982 if test -w $cache_file; then
2983 echo "updating cache $cache_file"
2984 cat confcache > $cache_file
2985 else
2986 echo "not updating unwritable cache $cache_file"
2987 fi
2988fi
2989rm -f confcache
2990
2991
2992# Actually configure libtool. ac_aux_dir is where install-sh is found.
0953fe64
TF
2993AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2994MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2995LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2996AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2997objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2998deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2e1a7175 2999${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
0953fe64 3000$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2e1a7175
TF
3001|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3002
3003# Reload cache, that may have been modified by ltconfig
3004if test -r "$cache_file"; then
3005 echo "loading cache $cache_file"
3006 . $cache_file
3007else
3008 echo "creating cache $cache_file"
3009 > $cache_file
3010fi
3011
3012
3013# This can be used to rebuild libtool when needed
0953fe64 3014LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2e1a7175
TF
3015
3016# Always use our own libtool.
3017LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3018
3019# Redirect the config.log output again, so that the ltconfig log is not
3020# clobbered by the next message.
3021exec 5>>./config.log
3022
0953fe64
TF
3023
3024
3025
3026
3027
2e1a7175
TF
3028fi
3029
3030subdirs="machine sys"
3031
3032
3033CRT0=
3034if test -n "${sys_dir}"; then
3035 CRT0=crt0.o
3036fi
3037
3038
3039
3040LIBC_POSIX_LIB=
3041if test -n "${posix_dir}"; then
3042 if test "${use_libtool}" = "yes"; then
3043 LIBC_POSIX_LIB=${posix_dir}/lib${posix_dir}.${aext}
3044 else
3045 LIBC_POSIX_LIB=${posix_dir}/lib.${aext}
3046 fi
3047fi
3048
3049
3050
3051if test x${posix_dir} != x; then
3052 HAVE_POSIX_DIR_TRUE=
3053 HAVE_POSIX_DIR_FALSE='#'
3054else
3055 HAVE_POSIX_DIR_TRUE='#'
3056 HAVE_POSIX_DIR_FALSE=
3057fi
3058
3059LIBC_SIGNAL_LIB=
3060LIBC_SIGNAL_DEF=
3061if test -n "${signal_dir}"; then
3062 if test "${use_libtool}" = "yes"; then
3063 LIBC_SIGNAL_LIB=${signal_dir}/lib${signal_dir}.${aext}
3064 else
3065 LIBC_SIGNAL_LIB=${signal_dir}/lib.${aext}
3066 fi
3067 LIBC_SIGNAL_DEF=${signal_dir}/stmp-def
3068fi
3069
3070
3071
3072
3073if test x${signal_dir} != x; then
3074 HAVE_SIGNAL_DIR_TRUE=
3075 HAVE_SIGNAL_DIR_FALSE='#'
3076else
3077 HAVE_SIGNAL_DIR_TRUE='#'
3078 HAVE_SIGNAL_DIR_FALSE=
3079fi
3080
dee51391
JJ
3081LIBC_STDIO64_LIB=
3082LIBC_STDIO64_DEF=
3083if test -n "${stdio64_dir}"; then
3084 if test "${use_libtool}" = "yes"; then
3085 LIBC_STDIO64_LIB=${stdio64_dir}/lib${stdio64_dir}.${aext}
3086 else
3087 LIBC_STDIO64_LIB=${stdio64_dir}/lib.${aext}
3088 fi
3089 LIBC_STDIO64_DEF=${stdio64_dir}/stmp-def
3090fi
3091
3092
3093
3094
3095if test x${stdio64_dir} != x; then
3096 HAVE_STDIO64_DIR_TRUE=
3097 HAVE_STDIO64_DIR_FALSE='#'
3098else
3099 HAVE_STDIO64_DIR_TRUE='#'
3100 HAVE_STDIO64_DIR_FALSE=
3101fi
3102
2e1a7175
TF
3103LIBC_SYSCALL_LIB=
3104if test -n "${syscall_dir}"; then
3105 if test "${use_libtool}" = "yes"; then
3106 LIBC_SYSCALL_LIB=${syscall_dir}/lib${syscall_dir}.${aext}
3107 else
3108 LIBC_SYSCALL_LIB=${syscall_dir}/lib.${aext}
3109 fi
3110fi
3111
3112
3113
3114if test x${syscall_dir} != x; then
3115 HAVE_SYSCALL_DIR_TRUE=
3116 HAVE_SYSCALL_DIR_FALSE='#'
3117else
3118 HAVE_SYSCALL_DIR_TRUE='#'
3119 HAVE_SYSCALL_DIR_FALSE=
3120fi
3121
3122LIBC_UNIX_LIB=
3123if test -n "${unix_dir}"; then
3124 if test "${use_libtool}" = "yes"; then
3125 LIBC_UNIX_LIB=${unix_dir}/lib${unix_dir}.${aext}
3126 else
3127 LIBC_UNIX_LIB=${unix_dir}/lib.${aext}
3128 fi
3129fi
3130
3131
3132
3133if test x${unix_dir} != x; then
3134 HAVE_UNIX_DIR_TRUE=
3135 HAVE_UNIX_DIR_FALSE='#'
3136else
3137 HAVE_UNIX_DIR_TRUE='#'
3138 HAVE_UNIX_DIR_FALSE=
3139fi
3140
09841445
TF
3141LIBC_EXTRA_LIB=
3142LIBC_EXTRA_DEF=
3143extra_dir=
3144
3145
3146
3147
3148
2e1a7175
TF
3149
3150LIBC_SYS_LIB=
3151if test -n "${sys_dir}"; then
3152 if test "${use_libtool}" = "yes"; then
3153 LIBC_SYS_LIB=sys/${sys_dir}/lib${sys_dir}.${aext}
3154 else
3155 LIBC_SYS_LIB=sys/lib.${aext}
3156 fi
3157fi
3158
3159
3160
786ab12c
JJ
3161if test x${newlib_iconv} != x; then
3162
3163
3164if test 1 = 1; then
3165 ENABLE_NEWLIB_ICONV_TRUE=
3166 ENABLE_NEWLIB_ICONV_FALSE='#'
3167else
3168 ENABLE_NEWLIB_ICONV_TRUE='#'
3169 ENABLE_NEWLIB_ICONV_FALSE=
3170fi
3171 NEWLIB_CFLAGS="${NEWLIB_CFLAGS} -DENABLE_ICONV"
3172fi;
3173
3174if test "x${builtin_converters}" != "x"; then
3175
3176 if test x${newlib_iconv} = x; then
3177 { echo "configure: error: --enable-newlib-builtin-converters option can't be used if iconv library is disabled - use --enable-newlib-iconv to enable it" 1>&2; exit 1; }
3178 fi
3179
3180 builtin_converters=`echo "${builtin_converters}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
3181
3182 available_converters=`cat "${srcdir}/iconv/charset.aliases" | sed -e '/#/d' | sed -e 'N; s/\n //;'`
3183
3184 builtin_converters1="${builtin_converters}"
3185 builtin_converters=""
3186 for converter in ${builtin_converters1}; do
3187 result=`echo "${available_converters}" | grep -e "\(^\| \)${converter}\( \|\$\)"`
3188 if test $? != "0"; then
3189 { echo "configure: error: ${converter} is not supported - see ${srcdir}/iconv/charset.aliases file for the list of available converters" 1>&2; exit 1; }
3190 fi
3191 converter1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
3192 builtin_converters="${builtin_converters} ${converter1}"
3193 done
3194
3195 for converter in ${builtin_converters}; do
3196 opt=ICONV_CONVERTER_`echo "${converter}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3197 NEWLIB_ICONV_CFLAGS="${NEWLIB_ICONV_CFLAGS} -D${opt}"
3198 done
3199
3200else
3201 NEWLIB_ICONV_CFLAGS=
3202fi;
3203
3204
2e1a7175
TF
3205if test -n "${machine_dir}"; then
3206 if test "${use_libtool}" = "yes"; then
3207 LIBC_MACHINE_LIB=machine/${machine_dir}/lib${machine_dir}.${aext}
3208 else
3209 LIBC_MACHINE_LIB=machine/lib.${aext}
3210 fi
3211fi
3212
8a0efa53
CF
3213
3214
3215trap '' 1 2 15
3216cat > confcache <<\EOF
3217# This file is a shell script that caches the results of configure
3218# tests run on this system so they can be shared between configure
3219# scripts and configure runs. It is not useful on other systems.
3220# If it contains results you don't want to keep, you may remove or edit it.
3221#
3222# By default, configure uses ./config.cache as the cache file,
3223# creating it if it does not exist already. You can give configure
3224# the --cache-file=FILE option to use a different cache file; that is
3225# what configure does when it calls configure scripts in
3226# subdirectories, so they share the cache.
3227# Giving --cache-file=/dev/null disables caching, for debugging configure.
3228# config.status only pays attention to the cache file if you give it the
3229# --recheck option to rerun configure.
3230#
3231EOF
3232# The following way of writing the cache mishandles newlines in values,
3233# but we know of no workaround that is simple, portable, and efficient.
3234# So, don't put newlines in cache variables' values.
3235# Ultrix sh set writes to stderr and can't be redirected directly,
3236# and sets the high bit in the cache file unless we assign to the vars.
3237(set) 2>&1 |
3238 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3239 *ac_space=\ *)
3240 # `set' does not quote correctly, so add quotes (double-quote substitution
3241 # turns \\\\ into \\, and sed turns \\ into \).
3242 sed -n \
3243 -e "s/'/'\\\\''/g" \
3244 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3245 ;;
3246 *)
3247 # `set' quotes correctly as required by POSIX, so do not add quotes.
3248 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3249 ;;
3250 esac >> confcache
3251if cmp -s $cache_file confcache; then
3252 :
3253else
3254 if test -w $cache_file; then
3255 echo "updating cache $cache_file"
3256 cat confcache > $cache_file
3257 else
3258 echo "not updating unwritable cache $cache_file"
3259 fi
3260fi
3261rm -f confcache
3262
3263trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3264
3265test "x$prefix" = xNONE && prefix=$ac_default_prefix
3266# Let make expand exec_prefix.
3267test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3268
3269# Any assignment to VPATH causes Sun make to only execute
3270# the first set of double-colon rules, so remove it if not needed.
3271# If there is a colon in the path, we need to keep it.
3272if test "x$srcdir" = x.; then
3273 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3274fi
3275
3276trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3277
3278# Transform confdefs.h into DEFS.
3279# Protect against shell expansion while executing Makefile rules.
3280# Protect against Makefile macro expansion.
3281cat > conftest.defs <<\EOF
3282s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3283s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3284s%\[%\\&%g
3285s%\]%\\&%g
3286s%\$%$$%g
3287EOF
3288DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3289rm -f conftest.defs
3290
3291
3292# Without the "./", some shells look in PATH for config.status.
3293: ${CONFIG_STATUS=./config.status}
3294
3295echo creating $CONFIG_STATUS
3296rm -f $CONFIG_STATUS
3297cat > $CONFIG_STATUS <<EOF
3298#! /bin/sh
3299# Generated automatically by configure.
3300# Run this file to recreate the current configuration.
3301# This directory was configured as follows,
3302# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3303#
3304# $0 $ac_configure_args
3305#
3306# Compiler output produced by configure, useful for debugging
3307# configure, is in ./config.log if it exists.
3308
3309ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3310for ac_option
3311do
3312 case "\$ac_option" in
3313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3314 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3315 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3316 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3317 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3318 exit 0 ;;
3319 -help | --help | --hel | --he | --h)
3320 echo "\$ac_cs_usage"; exit 0 ;;
3321 *) echo "\$ac_cs_usage"; exit 1 ;;
3322 esac
3323done
3324
3325ac_given_srcdir=$srcdir
3326ac_given_INSTALL="$INSTALL"
3327
786ab12c 3328trap 'rm -fr `echo "Makefile argz/Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile search/Makefile stdio/Makefile stdio64/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile iconv/Makefile iconv/ces/Makefile iconv/ccs/Makefile iconv/ccs/binary/Makefile iconv/lib/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8a0efa53
CF
3329EOF
3330cat >> $CONFIG_STATUS <<EOF
3331
3332# Protect against being on the right side of a sed subst in config.status.
3333sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3334 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3335$ac_vpsub
3336$extrasub
3337s%@SHELL@%$SHELL%g
3338s%@CFLAGS@%$CFLAGS%g
3339s%@CPPFLAGS@%$CPPFLAGS%g
3340s%@CXXFLAGS@%$CXXFLAGS%g
3341s%@FFLAGS@%$FFLAGS%g
3342s%@DEFS@%$DEFS%g
3343s%@LDFLAGS@%$LDFLAGS%g
3344s%@LIBS@%$LIBS%g
3345s%@exec_prefix@%$exec_prefix%g
3346s%@prefix@%$prefix%g
3347s%@program_transform_name@%$program_transform_name%g
3348s%@bindir@%$bindir%g
3349s%@sbindir@%$sbindir%g
3350s%@libexecdir@%$libexecdir%g
3351s%@datadir@%$datadir%g
3352s%@sysconfdir@%$sysconfdir%g
3353s%@sharedstatedir@%$sharedstatedir%g
3354s%@localstatedir@%$localstatedir%g
3355s%@libdir@%$libdir%g
3356s%@includedir@%$includedir%g
3357s%@oldincludedir@%$oldincludedir%g
3358s%@infodir@%$infodir%g
3359s%@mandir@%$mandir%g
313f1349
JJ
3360s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
3361s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
8a0efa53
CF
3362s%@newlib_basedir@%$newlib_basedir%g
3363s%@host@%$host%g
3364s%@host_alias@%$host_alias%g
3365s%@host_cpu@%$host_cpu%g
3366s%@host_vendor@%$host_vendor%g
3367s%@host_os@%$host_os%g
eaa75b70
TF
3368s%@target@%$target%g
3369s%@target_alias@%$target_alias%g
3370s%@target_cpu@%$target_cpu%g
3371s%@target_vendor@%$target_vendor%g
3372s%@target_os@%$target_os%g
3373s%@build@%$build%g
3374s%@build_alias@%$build_alias%g
3375s%@build_cpu@%$build_cpu%g
3376s%@build_vendor@%$build_vendor%g
3377s%@build_os@%$build_os%g
8a0efa53
CF
3378s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3379s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3380s%@INSTALL_DATA@%$INSTALL_DATA%g
3381s%@PACKAGE@%$PACKAGE%g
3382s%@VERSION@%$VERSION%g
3383s%@ACLOCAL@%$ACLOCAL%g
3384s%@AUTOCONF@%$AUTOCONF%g
3385s%@AUTOMAKE@%$AUTOMAKE%g
3386s%@AUTOHEADER@%$AUTOHEADER%g
3387s%@MAKEINFO@%$MAKEINFO%g
3388s%@SET_MAKE@%$SET_MAKE%g
3389s%@CC@%$CC%g
8a0efa53
CF
3390s%@AS@%$AS%g
3391s%@AR@%$AR%g
3392s%@RANLIB@%$RANLIB%g
3393s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3394s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3395s%@MAINT@%$MAINT%g
3396s%@EXEEXT@%$EXEEXT%g
3397s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
90b65e2d
JJ
3398s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
3399s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
3400s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
3401s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
3402s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
3403s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
3404s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
3405s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
3406s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
3407s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
2e1a7175
TF
3408s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
3409s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
0953fe64 3410s%@OBJEXT@%$OBJEXT%g
2e1a7175
TF
3411s%@oext@%$oext%g
3412s%@aext@%$aext%g
3413s%@libm_machine_dir@%$libm_machine_dir%g
8a0efa53
CF
3414s%@machine_dir@%$machine_dir%g
3415s%@sys_dir@%$sys_dir%g
2e1a7175 3416s%@LN_S@%$LN_S%g
0953fe64 3417s%@STRIP@%$STRIP%g
2e1a7175
TF
3418s%@DLLTOOL@%$DLLTOOL%g
3419s%@OBJDUMP@%$OBJDUMP%g
3420s%@LIBTOOL@%$LIBTOOL%g
8a0efa53
CF
3421s%@subdirs@%$subdirs%g
3422s%@CRT0@%$CRT0%g
3423s%@LIBC_POSIX_LIB@%$LIBC_POSIX_LIB%g
3424s%@HAVE_POSIX_DIR_TRUE@%$HAVE_POSIX_DIR_TRUE%g
3425s%@HAVE_POSIX_DIR_FALSE@%$HAVE_POSIX_DIR_FALSE%g
3426s%@LIBC_SIGNAL_LIB@%$LIBC_SIGNAL_LIB%g
3427s%@LIBC_SIGNAL_DEF@%$LIBC_SIGNAL_DEF%g
3428s%@HAVE_SIGNAL_DIR_TRUE@%$HAVE_SIGNAL_DIR_TRUE%g
3429s%@HAVE_SIGNAL_DIR_FALSE@%$HAVE_SIGNAL_DIR_FALSE%g
dee51391
JJ
3430s%@LIBC_STDIO64_LIB@%$LIBC_STDIO64_LIB%g
3431s%@LIBC_STDIO64_DEF@%$LIBC_STDIO64_DEF%g
3432s%@HAVE_STDIO64_DIR_TRUE@%$HAVE_STDIO64_DIR_TRUE%g
3433s%@HAVE_STDIO64_DIR_FALSE@%$HAVE_STDIO64_DIR_FALSE%g
8a0efa53
CF
3434s%@LIBC_SYSCALL_LIB@%$LIBC_SYSCALL_LIB%g
3435s%@HAVE_SYSCALL_DIR_TRUE@%$HAVE_SYSCALL_DIR_TRUE%g
3436s%@HAVE_SYSCALL_DIR_FALSE@%$HAVE_SYSCALL_DIR_FALSE%g
3437s%@LIBC_UNIX_LIB@%$LIBC_UNIX_LIB%g
3438s%@HAVE_UNIX_DIR_TRUE@%$HAVE_UNIX_DIR_TRUE%g
3439s%@HAVE_UNIX_DIR_FALSE@%$HAVE_UNIX_DIR_FALSE%g
09841445
TF
3440s%@LIBC_EXTRA_LIB@%$LIBC_EXTRA_LIB%g
3441s%@LIBC_EXTRA_DEF@%$LIBC_EXTRA_DEF%g
3442s%@extra_dir@%$extra_dir%g
8a0efa53 3443s%@LIBC_SYS_LIB@%$LIBC_SYS_LIB%g
786ab12c
JJ
3444s%@ENABLE_NEWLIB_ICONV_TRUE@%$ENABLE_NEWLIB_ICONV_TRUE%g
3445s%@ENABLE_NEWLIB_ICONV_FALSE@%$ENABLE_NEWLIB_ICONV_FALSE%g
3446s%@NEWLIB_ICONV_CFLAGS@%$NEWLIB_ICONV_CFLAGS%g
8a0efa53
CF
3447s%@LIBC_MACHINE_LIB@%$LIBC_MACHINE_LIB%g
3448
3449CEOF
3450EOF
3451
3452cat >> $CONFIG_STATUS <<\EOF
3453
3454# Split the substitutions into bite-sized pieces for seds with
3455# small command number limits, like on Digital OSF/1 and HP-UX.
786ab12c 3456ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8a0efa53
CF
3457ac_file=1 # Number of current file.
3458ac_beg=1 # First line for current file.
3459ac_end=$ac_max_sed_cmds # Line after last line for current file.
3460ac_more_lines=:
3461ac_sed_cmds=""
3462while $ac_more_lines; do
3463 if test $ac_beg -gt 1; then
3464 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3465 else
3466 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3467 fi
3468 if test ! -s conftest.s$ac_file; then
3469 ac_more_lines=false
3470 rm -f conftest.s$ac_file
3471 else
3472 if test -z "$ac_sed_cmds"; then
3473 ac_sed_cmds="sed -f conftest.s$ac_file"
3474 else
3475 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3476 fi
3477 ac_file=`expr $ac_file + 1`
3478 ac_beg=$ac_end
3479 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3480 fi
3481done
3482if test -z "$ac_sed_cmds"; then
3483 ac_sed_cmds=cat
3484fi
3485EOF
3486
3487cat >> $CONFIG_STATUS <<EOF
3488
786ab12c 3489CONFIG_FILES=\${CONFIG_FILES-"Makefile argz/Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile search/Makefile stdio/Makefile stdio64/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile iconv/Makefile iconv/ces/Makefile iconv/ccs/Makefile iconv/ccs/binary/Makefile iconv/lib/Makefile"}
8a0efa53
CF
3490EOF
3491cat >> $CONFIG_STATUS <<\EOF
3492for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3493 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3494 case "$ac_file" in
3495 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3496 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3497 *) ac_file_in="${ac_file}.in" ;;
3498 esac
3499
3500 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3501
3502 # Remove last slash and all that follows it. Not all systems have dirname.
3503 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3504 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3505 # The file is in a subdirectory.
3506 test ! -d "$ac_dir" && mkdir "$ac_dir"
3507 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3508 # A "../" for each directory in $ac_dir_suffix.
3509 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3510 else
3511 ac_dir_suffix= ac_dots=
3512 fi
3513
3514 case "$ac_given_srcdir" in
3515 .) srcdir=.
3516 if test -z "$ac_dots"; then top_srcdir=.
3517 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3518 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3519 *) # Relative path.
3520 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3521 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3522 esac
3523
3524 case "$ac_given_INSTALL" in
3525 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3526 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3527 esac
3528
3529 echo creating "$ac_file"
3530 rm -f "$ac_file"
3531 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3532 case "$ac_file" in
3533 *Makefile*) ac_comsub="1i\\
3534# $configure_input" ;;
3535 *) ac_comsub= ;;
3536 esac
3537
3538 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3539 sed -e "$ac_comsub
3540s%@configure_input@%$configure_input%g
3541s%@srcdir@%$srcdir%g
3542s%@top_srcdir@%$top_srcdir%g
3543s%@INSTALL@%$INSTALL%g
3544" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3545fi; done
3546rm -f conftest.s*
3547
3548EOF
3549cat >> $CONFIG_STATUS <<EOF
3550
3551EOF
3552cat >> $CONFIG_STATUS <<\EOF
3553
3554exit 0
3555EOF
3556chmod +x $CONFIG_STATUS
3557rm -fr confdefs* $ac_clean_files
3558test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3559
3560if test "$no_recursion" != yes; then
3561
3562 # Remove --cache-file and --srcdir arguments so they do not pile up.
3563 ac_sub_configure_args=
3564 ac_prev=
3565 for ac_arg in $ac_configure_args; do
3566 if test -n "$ac_prev"; then
3567 ac_prev=
3568 continue
3569 fi
3570 case "$ac_arg" in
3571 -cache-file | --cache-file | --cache-fil | --cache-fi \
3572 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3573 ac_prev=cache_file ;;
3574 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3575 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3576 ;;
3577 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3578 ac_prev=srcdir ;;
3579 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3580 ;;
3581 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3582 esac
3583 done
3584
3585 for ac_config_dir in machine sys; do
3586
3587 # Do not complain, so a configure script can configure whichever
3588 # parts of a large source tree are present.
3589 if test ! -d $srcdir/$ac_config_dir; then
3590 continue
3591 fi
3592
3593 echo configuring in $ac_config_dir
3594
3595 case "$srcdir" in
3596 .) ;;
3597 *)
3598 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3599 else
3600 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3601 fi
3602 ;;
3603 esac
3604
3605 ac_popdir=`pwd`
3606 cd $ac_config_dir
3607
3608 # A "../" for each directory in /$ac_config_dir.
3609 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3610
3611 case "$srcdir" in
3612 .) # No --srcdir option. We are building in place.
3613 ac_sub_srcdir=$srcdir ;;
3614 /*) # Absolute path.
3615 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3616 *) # Relative path.
3617 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3618 esac
3619
3620 # Check for guested configure; otherwise get Cygnus style configure.
3621 if test -f $ac_sub_srcdir/configure; then
3622 ac_sub_configure=$ac_sub_srcdir/configure
3623 elif test -f $ac_sub_srcdir/configure.in; then
3624 ac_sub_configure=$ac_configure
3625 else
3626 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3627 ac_sub_configure=
3628 fi
3629
3630 # The recursion is here.
3631 if test -n "$ac_sub_configure"; then
3632
3633 # Make the cache file name correct relative to the subdirectory.
3634 case "$cache_file" in
3635 /*) ac_sub_cache_file=$cache_file ;;
3636 *) # Relative path.
3637 ac_sub_cache_file="$ac_dots$cache_file" ;;
3638 esac
3639 case "$ac_given_INSTALL" in
3640 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3641 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3642 esac
3643
3644 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3645 # The eval makes quoting arguments work.
3646 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3647 then :
3648 else
3649 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3650 fi
3651 fi
3652
3653 cd $ac_popdir
3654 done
3655fi
3656
This page took 0.60439 seconds and 5 git commands to generate.