fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / configure
blob84ba264599ddca93072777ae1f9cfbcf9bce0353
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-newlib-io-pos-args enable printf-family positional arg support"
16 ac_help="$ac_help
17 --enable-multilib build many library versions (default)"
18 ac_help="$ac_help
19 --enable-target-optspace optimize for space"
20 ac_help="$ac_help
21 --enable-malloc-debugging indicate malloc debugging requested"
22 ac_help="$ac_help
23 --enable-newlib-mb enable multibyte support"
24 ac_help="$ac_help
25 --enable-newlib-iconv enable iconv library support"
26 ac_help="$ac_help
27 --enable-newlib-builtin-converters enable specific comma-separated list of iconv converters to be built-in"
28 ac_help="$ac_help
29 --enable-newlib-multithread enable support for multiple threads"
30 ac_help="$ac_help
31 --enable-newlib-elix-level supply desired elix library level (1-4)"
32 ac_help="$ac_help
33 --disable-newlib-io-float disable printf/scanf family float support"
34 ac_help="$ac_help
35 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
36 ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
39 ac_help="$ac_help
40 --enable-shared[=PKGS] build shared libraries [default=yes]"
41 ac_help="$ac_help
42 --enable-static[=PKGS] build static libraries [default=yes]"
43 ac_help="$ac_help
44 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
45 ac_help="$ac_help
46 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
47 ac_help="$ac_help
48 --disable-libtool-lock avoid locking (might break parallel builds)"
49 ac_help="$ac_help
50 --with-pic try to use only PIC/non-PIC objects [default=use both]"
52 # Initialize some variables set by options.
53 # The variables have the same names as the options, with
54 # dashes changed to underlines.
55 build=NONE
56 cache_file=./config.cache
57 exec_prefix=NONE
58 host=NONE
59 no_create=
60 nonopt=NONE
61 no_recursion=
62 prefix=NONE
63 program_prefix=NONE
64 program_suffix=NONE
65 program_transform_name=s,x,x,
66 silent=
67 site=
68 srcdir=
69 target=NONE
70 verbose=
71 x_includes=NONE
72 x_libraries=NONE
73 bindir='${exec_prefix}/bin'
74 sbindir='${exec_prefix}/sbin'
75 libexecdir='${exec_prefix}/libexec'
76 datadir='${prefix}/share'
77 sysconfdir='${prefix}/etc'
78 sharedstatedir='${prefix}/com'
79 localstatedir='${prefix}/var'
80 libdir='${exec_prefix}/lib'
81 includedir='${prefix}/include'
82 oldincludedir='/usr/include'
83 infodir='${prefix}/info'
84 mandir='${prefix}/man'
86 # Initialize some other variables.
87 subdirs=
88 MFLAGS= MAKEFLAGS=
89 SHELL=${CONFIG_SHELL-/bin/sh}
90 # Maximum number of lines to put in a shell here document.
91 ac_max_here_lines=12
93 ac_prev=
94 for ac_option
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
104 case "$ac_option" in
105 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
106 *) ac_optarg= ;;
107 esac
109 # Accept the important Cygnus configure options, so we can diagnose typos.
111 case "$ac_option" in
113 -bindir | --bindir | --bindi | --bind | --bin | --bi)
114 ac_prev=bindir ;;
115 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
116 bindir="$ac_optarg" ;;
118 -build | --build | --buil | --bui | --bu)
119 ac_prev=build ;;
120 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
121 build="$ac_optarg" ;;
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" ;;
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" ;;
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; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}=no" ;;
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; }
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'" ;;
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" ;;
167 -gas | --gas | --ga | --g)
168 # Obsolete; use --with-gas.
169 with_gas=yes ;;
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
175 Usage: configure [options] [host]
176 Options: [defaults in brackets after descriptions]
177 Configuration:
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
182 --version print the version of autoconf that created configure
183 Directory 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
208 cat << EOF
209 Host 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]
213 Features 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
221 if test -n "$ac_help"; then
222 echo "--enable and --with options recognized:$ac_help"
224 exit 0 ;;
226 -host | --host | --hos | --ho)
227 ac_prev=host ;;
228 -host=* | --host=* | --hos=* | --ho=*)
229 host="$ac_optarg" ;;
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" ;;
238 -infodir | --infodir | --infodi | --infod | --info | --inf)
239 ac_prev=infodir ;;
240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
241 infodir="$ac_optarg" ;;
243 -libdir | --libdir | --libdi | --libd)
244 ac_prev=libdir ;;
245 -libdir=* | --libdir=* | --libdi=* | --libd=*)
246 libdir="$ac_optarg" ;;
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" ;;
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" ;;
264 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
265 ac_prev=mandir ;;
266 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
267 mandir="$ac_optarg" ;;
269 -nfp | --nfp | --nf)
270 # Obsolete; use --without-fp.
271 with_fp=no ;;
273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274 | --no-cr | --no-c)
275 no_create=yes ;;
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 ;;
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" ;;
290 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
291 ac_prev=prefix ;;
292 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
293 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
327 | -silent | --silent | --silen | --sile | --sil)
328 silent=yes ;;
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" ;;
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" ;;
347 -site | --site | --sit)
348 ac_prev=site ;;
349 -site=* | --site=* | --sit=*)
350 site="$ac_optarg" ;;
352 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
353 ac_prev=srcdir ;;
354 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
355 srcdir="$ac_optarg" ;;
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" ;;
364 -target | --target | --targe | --targ | --tar | --ta | --t)
365 ac_prev=target ;;
366 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
367 target="$ac_optarg" ;;
369 -v | -verbose | --verbose | --verbos | --verbo | --verb)
370 verbose=yes ;;
372 -version | --version | --versio | --versi | --vers)
373 echo "configure generated by autoconf version 2.13"
374 exit 0 ;;
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; }
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'" ;;
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; }
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}=no" ;;
398 --x)
399 # Obsolete; use --with-x.
400 with_x=yes ;;
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" ;;
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" ;;
416 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
426 nonopt="$ac_option"
429 esac
430 done
432 if test -n "$ac_prev"; then
433 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
436 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
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
446 if test "$silent" = yes; then
447 exec 6>/dev/null
448 else
449 exec 6>&1
451 exec 5>./config.log
453 echo "\
454 This file contains any messages produced by compilers while
455 running configure, to aid debugging if configure makes a mistake.
456 " 1>&5
458 # Strip out --no-create and --no-recursion so they do not pile up.
459 # Also quote any args containing shell metacharacters.
460 ac_configure_args=
461 for ac_arg
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
472 done
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.
479 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
480 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
481 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
482 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
484 # confdefs.h avoids OS command line length limits that DEFS can exceed.
485 rm -rf conftest* confdefs.h
486 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
487 echo > confdefs.h
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.
491 ac_unique_file=sys.tex
493 # Find the source files, if location was not specified.
494 if 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=..
504 else
505 ac_srcdir_defaulted=no
507 if 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; }
514 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
516 # Prefer explicitly selected file to automatically selected ones.
517 if 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"
524 for 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"
529 done
531 if test -r "$cache_file"; then
532 echo "loading cache $cache_file"
533 . $cache_file
534 else
535 echo "creating cache $cache_file"
536 > $cache_file
539 ac_ext=c
540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
541 ac_cpp='$CPP $CPPFLAGS'
542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
544 cross_compiling=$ac_cv_prog_cc_cross
546 ac_exeext=
547 ac_objext=o
548 if (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=
556 else
557 ac_n= ac_c='\c' ac_t=
562 ac_aux_dir=
563 for 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
573 done
574 if test -z "$ac_aux_dir"; then
575 { echo "configure: error: can not find install-sh or install.sh in ../.. $srcdir/../.." 1>&2; exit 1; }
577 ac_config_guess=$ac_aux_dir/config.guess
578 ac_config_sub=$ac_aux_dir/config.sub
579 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
582 # Check whether --enable-newlib-io-pos-args or --disable-newlib-io-pos-args was given.
583 if 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
590 else
591 newlib_io_pos_args=no
594 am__api_version="1.4"
595 # Find a good install program. We prefer a C program (faster),
596 # so one script is as good as another. But avoid the broken or
597 # incompatible versions:
598 # SysV /etc/install, /usr/sbin/install
599 # SunOS /usr/etc/install
600 # IRIX /sbin/install
601 # AIX /bin/install
602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
605 # ./install, which can be erroneously created by make from ./install.sh.
606 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
607 echo "configure:608: checking for a BSD compatible install" >&5
608 if test -z "$INSTALL"; then
609 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
611 else
612 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
613 for ac_dir in $PATH; do
614 # Account for people who put trailing slashes in PATH elements.
615 case "$ac_dir/" in
616 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
618 # OSF1 and SCO ODT 3.0 have their own names for install.
619 # Don't use installbsd from OSF since it installs stuff as root
620 # by default.
621 for ac_prog in ginstall scoinst install; do
622 if test -f $ac_dir/$ac_prog; then
623 if test $ac_prog = install &&
624 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
625 # AIX install. It has an incompatible calling convention.
627 else
628 ac_cv_path_install="$ac_dir/$ac_prog -c"
629 break 2
632 done
634 esac
635 done
636 IFS="$ac_save_IFS"
639 if test "${ac_cv_path_install+set}" = set; then
640 INSTALL="$ac_cv_path_install"
641 else
642 # As a last resort, use the slow shell script. We don't cache a
643 # path for INSTALL within a source directory, because that will
644 # break other packages using the cache if that directory is
645 # removed, or if the path is relative.
646 INSTALL="$ac_install_sh"
649 echo "$ac_t""$INSTALL" 1>&6
651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
652 # It thinks the first close brace ends the variable substitution.
653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
659 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
660 echo "configure:661: checking whether build environment is sane" >&5
661 # Just in case
662 sleep 1
663 echo timestamp > conftestfile
664 # Do `set' in a subshell so we don't clobber the current shell's
665 # arguments. Must try -L first in case configure is actually a
666 # symlink; some systems play weird games with the mod time of symlinks
667 # (eg FreeBSD returns the mod time of the symlink's containing
668 # directory).
669 if (
670 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
671 if test "$*" = "X"; then
672 # -L didn't work.
673 set X `ls -t $srcdir/configure conftestfile`
675 if test "$*" != "X $srcdir/configure conftestfile" \
676 && test "$*" != "X conftestfile $srcdir/configure"; then
678 # If neither matched, then we have a broken ls. This can happen
679 # if, for instance, CONFIG_SHELL is bash and it inherits a
680 # broken ls alias from the environment. This has actually
681 # happened. Such a system could not be considered "sane".
682 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
683 alias in your environment" 1>&2; exit 1; }
686 test "$2" = conftestfile
688 then
689 # Ok.
691 else
692 { echo "configure: error: newly created file is older than distributed files!
693 Check your system clock" 1>&2; exit 1; }
695 rm -f conftest*
696 echo "$ac_t""yes" 1>&6
697 if test "$program_transform_name" = s,x,x,; then
698 program_transform_name=
699 else
700 # Double any \ or $. echo might interpret backslashes.
701 cat <<\EOF_SED > conftestsed
702 s,\\,\\\\,g; s,\$,$$,g
703 EOF_SED
704 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
705 rm -f conftestsed
707 test "$program_prefix" != NONE &&
708 program_transform_name="s,^,${program_prefix},; $program_transform_name"
709 # Use a double $ so make ignores it.
710 test "$program_suffix" != NONE &&
711 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
713 # sed with no file args requires a program.
714 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
716 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
717 echo "configure:718: checking whether ${MAKE-make} sets \${MAKE}" >&5
718 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
719 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
720 echo $ac_n "(cached) $ac_c" 1>&6
721 else
722 cat > conftestmake <<\EOF
723 all:
724 @echo 'ac_maketemp="${MAKE}"'
726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
727 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
728 if test -n "$ac_maketemp"; then
729 eval ac_cv_prog_make_${ac_make}_set=yes
730 else
731 eval ac_cv_prog_make_${ac_make}_set=no
733 rm -f conftestmake
735 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
736 echo "$ac_t""yes" 1>&6
737 SET_MAKE=
738 else
739 echo "$ac_t""no" 1>&6
740 SET_MAKE="MAKE=${MAKE-make}"
743 if test $host != $build; then
744 ac_tool_prefix=${host_alias}-
745 else
746 ac_tool_prefix=
749 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
750 echo "configure:751: checking for Cygwin environment" >&5
751 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753 else
754 cat > conftest.$ac_ext <<EOF
755 #line 756 "configure"
756 #include "confdefs.h"
758 int main() {
760 #ifndef __CYGWIN__
761 #define __CYGWIN__ __CYGWIN32__
762 #endif
763 return __CYGWIN__;
764 ; return 0; }
766 if { (eval echo configure:767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
767 rm -rf conftest*
768 ac_cv_cygwin=yes
769 else
770 echo "configure: failed program was:" >&5
771 cat conftest.$ac_ext >&5
772 rm -rf conftest*
773 ac_cv_cygwin=no
775 rm -f conftest*
776 rm -f conftest*
779 echo "$ac_t""$ac_cv_cygwin" 1>&6
780 CYGWIN=
781 test "$ac_cv_cygwin" = yes && CYGWIN=yes
782 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
783 echo "configure:784: checking for mingw32 environment" >&5
784 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
786 else
787 cat > conftest.$ac_ext <<EOF
788 #line 789 "configure"
789 #include "confdefs.h"
791 int main() {
792 return __MINGW32__;
793 ; return 0; }
795 if { (eval echo configure:796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
796 rm -rf conftest*
797 ac_cv_mingw32=yes
798 else
799 echo "configure: failed program was:" >&5
800 cat conftest.$ac_ext >&5
801 rm -rf conftest*
802 ac_cv_mingw32=no
804 rm -f conftest*
805 rm -f conftest*
808 echo "$ac_t""$ac_cv_mingw32" 1>&6
809 MINGW32=
810 test "$ac_cv_mingw32" = yes && MINGW32=yes
812 # Check whether --enable-multilib or --disable-multilib was given.
813 if test "${enable_multilib+set}" = set; then
814 enableval="$enable_multilib"
815 case "${enableval}" in
816 yes) multilib=yes ;;
817 no) multilib=no ;;
818 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
819 esac
820 else
821 multilib=yes
824 # Check whether --enable-target-optspace or --disable-target-optspace was given.
825 if test "${enable_target_optspace+set}" = set; then
826 enableval="$enable_target_optspace"
827 case "${enableval}" in
828 yes) target_optspace=yes ;;
829 no) target_optspace=no ;;
830 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
831 esac
832 else
833 target_optspace=
836 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
837 if test "${enable_malloc_debugging+set}" = set; then
838 enableval="$enable_malloc_debugging"
839 case "${enableval}" in
840 yes) malloc_debugging=yes ;;
841 no) malloc_debugging=no ;;
842 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
843 esac
844 else
845 malloc_debugging=
848 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
849 if test "${enable_newlib_mb+set}" = set; then
850 enableval="$enable_newlib_mb"
851 case "${enableval}" in
852 yes) newlib_mb=yes ;;
853 no) newlib_mb=no ;;
854 *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
855 esac
856 else
857 newlib_mb=
860 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
861 if test "${enable_newlib_iconv+set}" = set; then
862 enableval="$enable_newlib_iconv"
863 case "${enableval}" in
864 yes) newlib_iconv=yes ;;
865 no) newlib_iconv=no ;;
866 *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;;
867 esac
868 else
869 newlib_iconv=
872 # Check whether --enable-newlib-builtin-converters or --disable-newlib-builtin-converters was given.
873 if test "${enable_newlib_builtin_converters+set}" = set; then
874 enableval="$enable_newlib_builtin_converters"
875 if test x${enableval} = x; then
876 { echo "configure: error: bad value ${enableval} for newlib-builtin-converters option - use comma-separated list" 1>&2; exit 1; }
878 builtin_converters=${enableval}
880 else
881 builtin_converters=
884 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
885 if test "${enable_newlib_multithread+set}" = set; then
886 enableval="$enable_newlib_multithread"
887 case "${enableval}" in
888 yes) newlib_multithread=yes ;;
889 no) newlib_multithread=no ;;
890 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
891 esac
892 else
893 newlib_multithread=yes
896 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
897 if test "${enable_newlib_elix_level+set}" = set; then
898 enableval="$enable_newlib_elix_level"
899 case "${enableval}" in
900 0) newlib_elix_level=0 ;;
901 1) newlib_elix_level=1 ;;
902 2) newlib_elix_level=2 ;;
903 3) newlib_elix_level=3 ;;
904 4) newlib_elix_level=4 ;;
905 *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
906 esac
907 else
908 newlib_elix_level=0
911 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
912 if test "${enable_newlib_io_float+set}" = set; then
913 enableval="$enable_newlib_io_float"
914 case "${enableval}" in
915 yes) newlib_io_float=yes ;;
916 no) newlib_io_float=no ;;
917 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
918 esac
919 else
920 newlib_io_float=yes
923 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
924 if test "${enable_newlib_supplied_syscalls+set}" = set; then
925 enableval="$enable_newlib_supplied_syscalls"
926 case "${enableval}" in
927 yes) newlib_may_supply_syscalls=yes ;;
928 no) newlib_may_supply_syscalls=no ;;
929 *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
930 esac
931 else
932 newlib_may_supply_syscalls=yes
937 if test x${newlib_may_supply_syscalls} = xyes; then
938 MAY_SUPPLY_SYSCALLS_TRUE=
939 MAY_SUPPLY_SYSCALLS_FALSE='#'
940 else
941 MAY_SUPPLY_SYSCALLS_TRUE='#'
942 MAY_SUPPLY_SYSCALLS_FALSE=
946 test -z "${with_target_subdir}" && with_target_subdir=.
948 if test "${srcdir}" = "."; then
949 if test "${with_target_subdir}" != "."; then
950 newlib_basedir="${srcdir}/${with_multisrctop}../.."
951 else
952 newlib_basedir="${srcdir}/${with_multisrctop}.."
954 else
955 newlib_basedir="${srcdir}/.."
960 # Do some error checking and defaulting for the host and target type.
961 # The inputs are:
962 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
964 # The rules are:
965 # 1. You are not allowed to specify --host, --target, and nonopt at the
966 # same time.
967 # 2. Host defaults to nonopt.
968 # 3. If nonopt is not specified, then host defaults to the current host,
969 # as determined by config.guess.
970 # 4. Target and build default to nonopt.
971 # 5. If nonopt is not specified, then target and build default to host.
973 # The aliases save the names the user supplied, while $host etc.
974 # will get canonicalized.
975 case $host---$target---$nonopt in
976 NONE---*---* | *---NONE---* | *---*---NONE) ;;
977 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
978 esac
981 # Make sure we can run config.sub.
982 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
983 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
986 echo $ac_n "checking host system type""... $ac_c" 1>&6
987 echo "configure:988: checking host system type" >&5
989 host_alias=$host
990 case "$host_alias" in
991 NONE)
992 case $nonopt in
993 NONE)
994 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
995 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
996 fi ;;
997 *) host_alias=$nonopt ;;
998 esac ;;
999 esac
1001 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1002 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1003 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1004 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1005 echo "$ac_t""$host" 1>&6
1007 echo $ac_n "checking target system type""... $ac_c" 1>&6
1008 echo "configure:1009: checking target system type" >&5
1010 target_alias=$target
1011 case "$target_alias" in
1012 NONE)
1013 case $nonopt in
1014 NONE) target_alias=$host_alias ;;
1015 *) target_alias=$nonopt ;;
1016 esac ;;
1017 esac
1019 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1020 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1021 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1022 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1023 echo "$ac_t""$target" 1>&6
1025 echo $ac_n "checking build system type""... $ac_c" 1>&6
1026 echo "configure:1027: checking build system type" >&5
1028 build_alias=$build
1029 case "$build_alias" in
1030 NONE)
1031 case $nonopt in
1032 NONE) build_alias=$host_alias ;;
1033 *) build_alias=$nonopt ;;
1034 esac ;;
1035 esac
1037 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1038 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1039 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1040 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1041 echo "$ac_t""$build" 1>&6
1043 test "$host_alias" != "$target_alias" &&
1044 test "$program_prefix$program_suffix$program_transform_name" = \
1045 NONENONEs,x,x, &&
1046 program_prefix=${target_alias}-
1050 PACKAGE=newlib
1052 VERSION=1.12.0
1054 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1055 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1057 cat >> confdefs.h <<EOF
1058 #define PACKAGE "$PACKAGE"
1061 cat >> confdefs.h <<EOF
1062 #define VERSION "$VERSION"
1067 missing_dir=`cd $ac_aux_dir && pwd`
1068 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1069 echo "configure:1070: checking for working aclocal-${am__api_version}" >&5
1070 # Run test in a subshell; some versions of sh will print an error if
1071 # an executable is not found, even if stderr is redirected.
1072 # Redirect stdin to placate older versions of autoconf. Sigh.
1073 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1074 ACLOCAL=aclocal-${am__api_version}
1075 echo "$ac_t""found" 1>&6
1076 else
1077 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1078 echo "$ac_t""missing" 1>&6
1081 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1082 echo "configure:1083: checking for working autoconf" >&5
1083 # Run test in a subshell; some versions of sh will print an error if
1084 # an executable is not found, even if stderr is redirected.
1085 # Redirect stdin to placate older versions of autoconf. Sigh.
1086 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1087 AUTOCONF=autoconf
1088 echo "$ac_t""found" 1>&6
1089 else
1090 AUTOCONF="$missing_dir/missing autoconf"
1091 echo "$ac_t""missing" 1>&6
1094 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1095 echo "configure:1096: checking for working automake-${am__api_version}" >&5
1096 # Run test in a subshell; some versions of sh will print an error if
1097 # an executable is not found, even if stderr is redirected.
1098 # Redirect stdin to placate older versions of autoconf. Sigh.
1099 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1100 AUTOMAKE=automake-${am__api_version}
1101 echo "$ac_t""found" 1>&6
1102 else
1103 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1104 echo "$ac_t""missing" 1>&6
1107 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1108 echo "configure:1109: checking for working autoheader" >&5
1109 # Run test in a subshell; some versions of sh will print an error if
1110 # an executable is not found, even if stderr is redirected.
1111 # Redirect stdin to placate older versions of autoconf. Sigh.
1112 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1113 AUTOHEADER=autoheader
1114 echo "$ac_t""found" 1>&6
1115 else
1116 AUTOHEADER="$missing_dir/missing autoheader"
1117 echo "$ac_t""missing" 1>&6
1120 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1121 echo "configure:1122: checking for working makeinfo" >&5
1122 # Run test in a subshell; some versions of sh will print an error if
1123 # an executable is not found, even if stderr is redirected.
1124 # Redirect stdin to placate older versions of autoconf. Sigh.
1125 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1126 MAKEINFO=makeinfo
1127 echo "$ac_t""found" 1>&6
1128 else
1129 MAKEINFO="$missing_dir/missing makeinfo"
1130 echo "$ac_t""missing" 1>&6
1135 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1136 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1137 # are probably using a cross compiler, which will not be able to fully
1138 # link an executable. This should really be fixed in autoconf
1139 # itself.
1143 # Extract the first word of "gcc", so it can be a program name with args.
1144 set dummy gcc; ac_word=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1149 else
1150 if test -n "$CC"; then
1151 ac_cv_prog_CC="$CC" # Let the user override the test.
1152 else
1153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1154 ac_dummy="$PATH"
1155 for ac_dir in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir=.
1157 if test -f $ac_dir/$ac_word; then
1158 ac_cv_prog_CC="gcc"
1159 break
1161 done
1162 IFS="$ac_save_ifs"
1165 CC="$ac_cv_prog_CC"
1166 if test -n "$CC"; then
1167 echo "$ac_t""$CC" 1>&6
1168 else
1169 echo "$ac_t""no" 1>&6
1172 if test -z "$CC"; then
1173 # Extract the first word of "cc", so it can be a program name with args.
1174 set dummy cc; ac_word=$2
1175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1176 echo "configure:1177: checking for $ac_word" >&5
1177 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1179 else
1180 if test -n "$CC"; then
1181 ac_cv_prog_CC="$CC" # Let the user override the test.
1182 else
1183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1184 ac_prog_rejected=no
1185 ac_dummy="$PATH"
1186 for ac_dir in $ac_dummy; do
1187 test -z "$ac_dir" && ac_dir=.
1188 if test -f $ac_dir/$ac_word; then
1189 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1190 ac_prog_rejected=yes
1191 continue
1193 ac_cv_prog_CC="cc"
1194 break
1196 done
1197 IFS="$ac_save_ifs"
1198 if test $ac_prog_rejected = yes; then
1199 # We found a bogon in the path, so make sure we never use it.
1200 set dummy $ac_cv_prog_CC
1201 shift
1202 if test $# -gt 0; then
1203 # We chose a different compiler from the bogus one.
1204 # However, it has the same basename, so the bogon will be chosen
1205 # first if we set CC to just the basename; use the full file name.
1206 shift
1207 set dummy "$ac_dir/$ac_word" "$@"
1208 shift
1209 ac_cv_prog_CC="$@"
1214 CC="$ac_cv_prog_CC"
1215 if test -n "$CC"; then
1216 echo "$ac_t""$CC" 1>&6
1217 else
1218 echo "$ac_t""no" 1>&6
1221 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1224 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether we are using GNU C" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229 cat > conftest.c <<EOF
1230 #ifdef __GNUC__
1231 yes;
1232 #endif
1234 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1235 ac_cv_prog_gcc=yes
1236 else
1237 ac_cv_prog_gcc=no
1241 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1243 if test $ac_cv_prog_gcc = yes; then
1244 GCC=yes
1245 ac_test_CFLAGS="${CFLAGS+set}"
1246 ac_save_CFLAGS="$CFLAGS"
1247 CFLAGS=
1248 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether ${CC-cc} accepts -g" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253 echo 'void f(){}' > conftest.c
1254 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1255 ac_cv_prog_cc_g=yes
1256 else
1257 ac_cv_prog_cc_g=no
1259 rm -f conftest*
1263 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1264 if test "$ac_test_CFLAGS" = set; then
1265 CFLAGS="$ac_save_CFLAGS"
1266 elif test $ac_cv_prog_cc_g = yes; then
1267 CFLAGS="-g -O2"
1268 else
1269 CFLAGS="-O2"
1271 else
1272 GCC=
1273 test "${CFLAGS+set}" = set || CFLAGS="-g"
1277 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1278 set dummy ${ac_tool_prefix}as; ac_word=$2
1279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1280 echo "configure:1281: checking for $ac_word" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1283 else
1284 if test -n "$AS"; then
1285 ac_cv_prog_AS="$AS" # Let the user override the test.
1286 else
1287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1288 ac_dummy="$PATH"
1289 for ac_dir in $ac_dummy; do
1290 test -z "$ac_dir" && ac_dir=.
1291 if test -f $ac_dir/$ac_word; then
1292 ac_cv_prog_AS="${ac_tool_prefix}as"
1293 break
1295 done
1296 IFS="$ac_save_ifs"
1297 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1300 AS="$ac_cv_prog_AS"
1301 if test -n "$AS"; then
1302 echo "$ac_t""$AS" 1>&6
1303 else
1304 echo "$ac_t""no" 1>&6
1309 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1310 set dummy ${ac_tool_prefix}ar; ac_word=$2
1311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1312 echo "configure:1313: checking for $ac_word" >&5
1313 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1315 else
1316 if test -n "$AR"; then
1317 ac_cv_prog_AR="$AR" # Let the user override the test.
1318 else
1319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1320 ac_dummy="$PATH"
1321 for ac_dir in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir=.
1323 if test -f $ac_dir/$ac_word; then
1324 ac_cv_prog_AR="${ac_tool_prefix}ar"
1325 break
1327 done
1328 IFS="$ac_save_ifs"
1329 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1332 AR="$ac_cv_prog_AR"
1333 if test -n "$AR"; then
1334 echo "$ac_t""$AR" 1>&6
1335 else
1336 echo "$ac_t""no" 1>&6
1341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_word" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348 if test -n "$RANLIB"; then
1349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1350 else
1351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1352 ac_dummy="$PATH"
1353 for ac_dir in $ac_dummy; do
1354 test -z "$ac_dir" && ac_dir=.
1355 if test -f $ac_dir/$ac_word; then
1356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1357 break
1359 done
1360 IFS="$ac_save_ifs"
1363 RANLIB="$ac_cv_prog_RANLIB"
1364 if test -n "$RANLIB"; then
1365 echo "$ac_t""$RANLIB" 1>&6
1366 else
1367 echo "$ac_t""no" 1>&6
1371 if test -z "$ac_cv_prog_RANLIB"; then
1372 if test -n "$ac_tool_prefix"; then
1373 # Extract the first word of "ranlib", so it can be a program name with args.
1374 set dummy ranlib; ac_word=$2
1375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1376 echo "configure:1377: checking for $ac_word" >&5
1377 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380 if test -n "$RANLIB"; then
1381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1382 else
1383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1384 ac_dummy="$PATH"
1385 for ac_dir in $ac_dummy; do
1386 test -z "$ac_dir" && ac_dir=.
1387 if test -f $ac_dir/$ac_word; then
1388 ac_cv_prog_RANLIB="ranlib"
1389 break
1391 done
1392 IFS="$ac_save_ifs"
1393 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1396 RANLIB="$ac_cv_prog_RANLIB"
1397 if test -n "$RANLIB"; then
1398 echo "$ac_t""$RANLIB" 1>&6
1399 else
1400 echo "$ac_t""no" 1>&6
1403 else
1404 RANLIB=":"
1409 # Find a good install program. We prefer a C program (faster),
1410 # so one script is as good as another. But avoid the broken or
1411 # incompatible versions:
1412 # SysV /etc/install, /usr/sbin/install
1413 # SunOS /usr/etc/install
1414 # IRIX /sbin/install
1415 # AIX /bin/install
1416 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1417 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1418 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1419 # ./install, which can be erroneously created by make from ./install.sh.
1420 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1421 echo "configure:1422: checking for a BSD compatible install" >&5
1422 if test -z "$INSTALL"; then
1423 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1425 else
1426 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1427 for ac_dir in $PATH; do
1428 # Account for people who put trailing slashes in PATH elements.
1429 case "$ac_dir/" in
1430 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1432 # OSF1 and SCO ODT 3.0 have their own names for install.
1433 # Don't use installbsd from OSF since it installs stuff as root
1434 # by default.
1435 for ac_prog in ginstall scoinst install; do
1436 if test -f $ac_dir/$ac_prog; then
1437 if test $ac_prog = install &&
1438 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1439 # AIX install. It has an incompatible calling convention.
1441 else
1442 ac_cv_path_install="$ac_dir/$ac_prog -c"
1443 break 2
1446 done
1448 esac
1449 done
1450 IFS="$ac_save_IFS"
1453 if test "${ac_cv_path_install+set}" = set; then
1454 INSTALL="$ac_cv_path_install"
1455 else
1456 # As a last resort, use the slow shell script. We don't cache a
1457 # path for INSTALL within a source directory, because that will
1458 # break other packages using the cache if that directory is
1459 # removed, or if the path is relative.
1460 INSTALL="$ac_install_sh"
1463 echo "$ac_t""$INSTALL" 1>&6
1465 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1466 # It thinks the first close brace ends the variable substitution.
1467 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1469 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1471 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1474 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1475 echo "configure:1476: checking whether to enable maintainer-specific portions of Makefiles" >&5
1476 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1477 if test "${enable_maintainer_mode+set}" = set; then
1478 enableval="$enable_maintainer_mode"
1479 USE_MAINTAINER_MODE=$enableval
1480 else
1481 USE_MAINTAINER_MODE=no
1484 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1487 if test $USE_MAINTAINER_MODE = yes; then
1488 MAINTAINER_MODE_TRUE=
1489 MAINTAINER_MODE_FALSE='#'
1490 else
1491 MAINTAINER_MODE_TRUE='#'
1492 MAINTAINER_MODE_FALSE=
1494 MAINT=$MAINTAINER_MODE_TRUE
1498 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1499 # at least currently, we never actually build a program, so we never
1500 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1501 # fails, because we are probably configuring with a cross compiler
1502 # which can't create executables. So we include AC_EXEEXT to keep
1503 # automake happy, but we don't execute it, since we don't care about
1504 # the result.
1505 if false; then
1508 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1509 echo "configure:1510: checking for executable suffix" >&5
1510 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1512 else
1513 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1514 ac_cv_exeext=.exe
1515 else
1516 rm -f conftest*
1517 echo 'int main () { return 0; }' > conftest.$ac_ext
1518 ac_cv_exeext=
1519 if { (eval echo configure:1520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1520 for file in conftest.*; do
1521 case $file in
1522 *.c | *.o | *.obj) ;;
1523 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1524 esac
1525 done
1526 else
1527 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1529 rm -f conftest*
1530 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1534 EXEEXT=""
1535 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1536 echo "$ac_t""${ac_cv_exeext}" 1>&6
1537 ac_exeext=$EXEEXT
1541 . ${newlib_basedir}/configure.host
1543 newlib_cflags="${newlib_cflags} -fno-builtin"
1545 NEWLIB_CFLAGS=${newlib_cflags}
1548 LDFLAGS=${ldflags}
1553 if test x${newlib_elix_level} = x0; then
1554 ELIX_LEVEL_0_TRUE=
1555 ELIX_LEVEL_0_FALSE='#'
1556 else
1557 ELIX_LEVEL_0_TRUE='#'
1558 ELIX_LEVEL_0_FALSE=
1562 if test x${newlib_elix_level} = x1; then
1563 ELIX_LEVEL_1_TRUE=
1564 ELIX_LEVEL_1_FALSE='#'
1565 else
1566 ELIX_LEVEL_1_TRUE='#'
1567 ELIX_LEVEL_1_FALSE=
1571 if test x${newlib_elix_level} = x2; then
1572 ELIX_LEVEL_2_TRUE=
1573 ELIX_LEVEL_2_FALSE='#'
1574 else
1575 ELIX_LEVEL_2_TRUE='#'
1576 ELIX_LEVEL_2_FALSE=
1580 if test x${newlib_elix_level} = x3; then
1581 ELIX_LEVEL_3_TRUE=
1582 ELIX_LEVEL_3_FALSE='#'
1583 else
1584 ELIX_LEVEL_3_TRUE='#'
1585 ELIX_LEVEL_3_FALSE=
1589 if test x${newlib_elix_level} = x4; then
1590 ELIX_LEVEL_4_TRUE=
1591 ELIX_LEVEL_4_FALSE='#'
1592 else
1593 ELIX_LEVEL_4_TRUE='#'
1594 ELIX_LEVEL_4_FALSE=
1599 if test x${use_libtool} = xyes; then
1600 USE_LIBTOOL_TRUE=
1601 USE_LIBTOOL_FALSE='#'
1602 else
1603 USE_LIBTOOL_TRUE='#'
1604 USE_LIBTOOL_FALSE=
1607 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
1608 # use oext, which is set in configure.host based on the target platform.
1609 OBJEXT=${oext}
1621 if test "${use_libtool}" = "yes"; then
1623 # Check whether --enable-shared or --disable-shared was given.
1624 if test "${enable_shared+set}" = set; then
1625 enableval="$enable_shared"
1626 p=${PACKAGE-default}
1627 case $enableval in
1628 yes) enable_shared=yes ;;
1629 no) enable_shared=no ;;
1631 enable_shared=no
1632 # Look at the argument we got. We use all the common list separators.
1633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1634 for pkg in $enableval; do
1635 if test "X$pkg" = "X$p"; then
1636 enable_shared=yes
1638 done
1639 IFS="$ac_save_ifs"
1641 esac
1642 else
1643 enable_shared=yes
1646 # Check whether --enable-static or --disable-static was given.
1647 if test "${enable_static+set}" = set; then
1648 enableval="$enable_static"
1649 p=${PACKAGE-default}
1650 case $enableval in
1651 yes) enable_static=yes ;;
1652 no) enable_static=no ;;
1654 enable_static=no
1655 # Look at the argument we got. We use all the common list separators.
1656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1657 for pkg in $enableval; do
1658 if test "X$pkg" = "X$p"; then
1659 enable_static=yes
1661 done
1662 IFS="$ac_save_ifs"
1664 esac
1665 else
1666 enable_static=yes
1669 # Check whether --enable-fast-install or --disable-fast-install was given.
1670 if test "${enable_fast_install+set}" = set; then
1671 enableval="$enable_fast_install"
1672 p=${PACKAGE-default}
1673 case $enableval in
1674 yes) enable_fast_install=yes ;;
1675 no) enable_fast_install=no ;;
1677 enable_fast_install=no
1678 # Look at the argument we got. We use all the common list separators.
1679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1680 for pkg in $enableval; do
1681 if test "X$pkg" = "X$p"; then
1682 enable_fast_install=yes
1684 done
1685 IFS="$ac_save_ifs"
1687 esac
1688 else
1689 enable_fast_install=yes
1692 # Extract the first word of "gcc", so it can be a program name with args.
1693 set dummy gcc; ac_word=$2
1694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1695 echo "configure:1696: checking for $ac_word" >&5
1696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1698 else
1699 if test -n "$CC"; then
1700 ac_cv_prog_CC="$CC" # Let the user override the test.
1701 else
1702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1703 ac_dummy="$PATH"
1704 for ac_dir in $ac_dummy; do
1705 test -z "$ac_dir" && ac_dir=.
1706 if test -f $ac_dir/$ac_word; then
1707 ac_cv_prog_CC="gcc"
1708 break
1710 done
1711 IFS="$ac_save_ifs"
1714 CC="$ac_cv_prog_CC"
1715 if test -n "$CC"; then
1716 echo "$ac_t""$CC" 1>&6
1717 else
1718 echo "$ac_t""no" 1>&6
1721 if test -z "$CC"; then
1722 # Extract the first word of "cc", so it can be a program name with args.
1723 set dummy cc; ac_word=$2
1724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725 echo "configure:1726: checking for $ac_word" >&5
1726 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1728 else
1729 if test -n "$CC"; then
1730 ac_cv_prog_CC="$CC" # Let the user override the test.
1731 else
1732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1733 ac_prog_rejected=no
1734 ac_dummy="$PATH"
1735 for ac_dir in $ac_dummy; do
1736 test -z "$ac_dir" && ac_dir=.
1737 if test -f $ac_dir/$ac_word; then
1738 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1739 ac_prog_rejected=yes
1740 continue
1742 ac_cv_prog_CC="cc"
1743 break
1745 done
1746 IFS="$ac_save_ifs"
1747 if test $ac_prog_rejected = yes; then
1748 # We found a bogon in the path, so make sure we never use it.
1749 set dummy $ac_cv_prog_CC
1750 shift
1751 if test $# -gt 0; then
1752 # We chose a different compiler from the bogus one.
1753 # However, it has the same basename, so the bogon will be chosen
1754 # first if we set CC to just the basename; use the full file name.
1755 shift
1756 set dummy "$ac_dir/$ac_word" "$@"
1757 shift
1758 ac_cv_prog_CC="$@"
1763 CC="$ac_cv_prog_CC"
1764 if test -n "$CC"; then
1765 echo "$ac_t""$CC" 1>&6
1766 else
1767 echo "$ac_t""no" 1>&6
1770 if test -z "$CC"; then
1771 case "`uname -s`" in
1772 *win32* | *WIN32*)
1773 # Extract the first word of "cl", so it can be a program name with args.
1774 set dummy cl; ac_word=$2
1775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1776 echo "configure:1777: checking for $ac_word" >&5
1777 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1779 else
1780 if test -n "$CC"; then
1781 ac_cv_prog_CC="$CC" # Let the user override the test.
1782 else
1783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1784 ac_dummy="$PATH"
1785 for ac_dir in $ac_dummy; do
1786 test -z "$ac_dir" && ac_dir=.
1787 if test -f $ac_dir/$ac_word; then
1788 ac_cv_prog_CC="cl"
1789 break
1791 done
1792 IFS="$ac_save_ifs"
1795 CC="$ac_cv_prog_CC"
1796 if test -n "$CC"; then
1797 echo "$ac_t""$CC" 1>&6
1798 else
1799 echo "$ac_t""no" 1>&6
1802 esac
1804 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1807 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1808 echo "configure:1809: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1810 ac_ext=c
1811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1812 ac_cpp='$CPP $CPPFLAGS'
1813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1815 cross_compiling=$ac_cv_prog_cc_cross
1817 cat > conftest.$ac_ext << EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1822 main(){return(0);}
1824 if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1825 ac_cv_prog_cc_works=yes
1826 # If we can't run a trivial program, we are probably using a cross compiler.
1827 if (./conftest; exit) 2>/dev/null; then
1828 ac_cv_prog_cc_cross=no
1829 else
1830 ac_cv_prog_cc_cross=yes
1832 else
1833 echo "configure: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1835 ac_cv_prog_cc_works=no
1837 rm -fr conftest*
1838 ac_ext=c
1839 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1840 ac_cpp='$CPP $CPPFLAGS'
1841 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1842 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1843 cross_compiling=$ac_cv_prog_cc_cross
1845 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1846 if test $ac_cv_prog_cc_works = no; then
1847 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1849 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1850 echo "configure:1851: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1851 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1852 cross_compiling=$ac_cv_prog_cc_cross
1854 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1855 echo "configure:1856: checking whether we are using GNU C" >&5
1856 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1858 else
1859 cat > conftest.c <<EOF
1860 #ifdef __GNUC__
1861 yes;
1862 #endif
1864 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1865 ac_cv_prog_gcc=yes
1866 else
1867 ac_cv_prog_gcc=no
1871 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1873 if test $ac_cv_prog_gcc = yes; then
1874 GCC=yes
1875 else
1876 GCC=
1879 ac_test_CFLAGS="${CFLAGS+set}"
1880 ac_save_CFLAGS="$CFLAGS"
1881 CFLAGS=
1882 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1883 echo "configure:1884: checking whether ${CC-cc} accepts -g" >&5
1884 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887 echo 'void f(){}' > conftest.c
1888 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1889 ac_cv_prog_cc_g=yes
1890 else
1891 ac_cv_prog_cc_g=no
1893 rm -f conftest*
1897 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1898 if test "$ac_test_CFLAGS" = set; then
1899 CFLAGS="$ac_save_CFLAGS"
1900 elif test $ac_cv_prog_cc_g = yes; then
1901 if test "$GCC" = yes; then
1902 CFLAGS="-g -O2"
1903 else
1904 CFLAGS="-g"
1906 else
1907 if test "$GCC" = yes; then
1908 CFLAGS="-O2"
1909 else
1910 CFLAGS=
1914 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1915 if test "${with_gnu_ld+set}" = set; then
1916 withval="$with_gnu_ld"
1917 test "$withval" = no || with_gnu_ld=yes
1918 else
1919 with_gnu_ld=no
1922 ac_prog=ld
1923 if test "$GCC" = yes; then
1924 # Check if gcc -print-prog-name=ld gives a path.
1925 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1926 echo "configure:1927: checking for ld used by GCC" >&5
1927 case $host in
1928 *-*-mingw*)
1929 # gcc leaves a trailing carriage return which upsets mingw
1930 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1932 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1933 esac
1934 case $ac_prog in
1935 # Accept absolute paths.
1936 [\\/]* | [A-Za-z]:[\\/]*)
1937 re_direlt='/[^/][^/]*/\.\./'
1938 # Canonicalize the path of ld
1939 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1940 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1941 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1942 done
1943 test -z "$LD" && LD="$ac_prog"
1946 # If it fails, then pretend we aren't using GCC.
1947 ac_prog=ld
1950 # If it is relative, then search for the first ld in PATH.
1951 with_gnu_ld=unknown
1953 esac
1954 elif test "$with_gnu_ld" = yes; then
1955 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1956 echo "configure:1957: checking for GNU ld" >&5
1957 else
1958 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1959 echo "configure:1960: checking for non-GNU ld" >&5
1961 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1963 else
1964 if test -z "$LD"; then
1965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1966 for ac_dir in $PATH; do
1967 test -z "$ac_dir" && ac_dir=.
1968 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1969 lt_cv_path_LD="$ac_dir/$ac_prog"
1970 # Check to see if the program is GNU ld. I'd rather use --version,
1971 # but apparently some GNU ld's only accept -v.
1972 # Break only if it was the GNU/non-GNU ld that we prefer.
1973 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1974 test "$with_gnu_ld" != no && break
1975 else
1976 test "$with_gnu_ld" != yes && break
1979 done
1980 IFS="$ac_save_ifs"
1981 else
1982 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1986 LD="$lt_cv_path_LD"
1987 if test -n "$LD"; then
1988 echo "$ac_t""$LD" 1>&6
1989 else
1990 echo "$ac_t""no" 1>&6
1992 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1993 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1994 echo "configure:1995: checking if the linker ($LD) is GNU ld" >&5
1995 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1997 else
1998 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1999 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2000 lt_cv_prog_gnu_ld=yes
2001 else
2002 lt_cv_prog_gnu_ld=no
2006 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
2007 with_gnu_ld=$lt_cv_prog_gnu_ld
2010 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
2011 echo "configure:2012: checking for $LD option to reload object files" >&5
2012 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2013 echo $ac_n "(cached) $ac_c" 1>&6
2014 else
2015 lt_cv_ld_reload_flag='-r'
2018 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
2019 reload_flag=$lt_cv_ld_reload_flag
2020 test -n "$reload_flag" && reload_flag=" $reload_flag"
2022 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2023 echo "configure:2024: checking for BSD-compatible nm" >&5
2024 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2026 else
2027 if test -n "$NM"; then
2028 # Let the user override the test.
2029 lt_cv_path_NM="$NM"
2030 else
2031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2032 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2033 test -z "$ac_dir" && ac_dir=.
2034 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2035 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2036 # Check to see if the nm accepts a BSD-compat flag.
2037 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2038 # nm: unknown option "B" ignored
2039 # Tru64's nm complains that /dev/null is an invalid object file
2040 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2041 lt_cv_path_NM="$tmp_nm -B"
2042 break
2043 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2044 lt_cv_path_NM="$tmp_nm -p"
2045 break
2046 else
2047 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2048 continue # so that we can try to find one that supports BSD flags
2051 done
2052 IFS="$ac_save_ifs"
2053 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2057 NM="$lt_cv_path_NM"
2058 echo "$ac_t""$NM" 1>&6
2060 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2061 echo "configure:2062: checking whether ln -s works" >&5
2062 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2064 else
2065 rm -f conftestdata
2066 if ln -s X conftestdata 2>/dev/null
2067 then
2068 rm -f conftestdata
2069 ac_cv_prog_LN_S="ln -s"
2070 else
2071 ac_cv_prog_LN_S=ln
2074 LN_S="$ac_cv_prog_LN_S"
2075 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2076 echo "$ac_t""yes" 1>&6
2077 else
2078 echo "$ac_t""no" 1>&6
2081 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2082 echo "configure:2083: checking how to recognise dependant libraries" >&5
2083 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2085 else
2086 lt_cv_file_magic_cmd='$MAGIC_CMD'
2087 lt_cv_file_magic_test_file=
2088 lt_cv_deplibs_check_method='unknown'
2089 # Need to set the preceding variable on all platforms that support
2090 # interlibrary dependencies.
2091 # 'none' -- dependencies not supported.
2092 # `unknown' -- same as none, but documents that we really don't know.
2093 # 'pass_all' -- all dependencies passed with no checks.
2094 # 'test_compile' -- check by making test program.
2095 # 'file_magic [regex]' -- check by looking for files in library path
2096 # which responds to the $file_magic_cmd with a given egrep regex.
2097 # If you have `file' or equivalent on your system and you're not sure
2098 # whether `pass_all' will *always* work, you probably want this one.
2100 case $host_os in
2101 aix*)
2102 lt_cv_deplibs_check_method=pass_all
2105 beos*)
2106 lt_cv_deplibs_check_method=pass_all
2109 bsdi4*)
2110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2111 lt_cv_file_magic_cmd='/usr/bin/file -L'
2112 lt_cv_file_magic_test_file=/shlib/libc.so
2115 cygwin* | mingw* |pw32*)
2116 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2117 lt_cv_file_magic_cmd='$OBJDUMP -f'
2120 darwin* | rhapsody*)
2121 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2122 lt_cv_file_magic_cmd='/usr/bin/file -L'
2123 case "$host_os" in
2124 rhapsody* | darwin1.012)
2125 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2127 *) # Darwin 1.3 on
2128 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2130 esac
2133 freebsd* )
2134 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2135 case $host_cpu in
2136 i*86 )
2137 # Not sure whether the presence of OpenBSD here was a mistake.
2138 # Let's accept both of them until this is cleared up.
2139 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2140 lt_cv_file_magic_cmd=/usr/bin/file
2141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2143 esac
2144 else
2145 lt_cv_deplibs_check_method=pass_all
2149 gnu*)
2150 lt_cv_deplibs_check_method=pass_all
2153 hpux10.20*|hpux11*)
2154 case $host_cpu in
2155 hppa*)
2156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2157 lt_cv_file_magic_cmd=/usr/bin/file
2158 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2160 ia64*)
2161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2162 lt_cv_file_magic_cmd=/usr/bin/file
2163 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2165 esac
2168 irix5* | irix6*)
2169 case $host_os in
2170 irix5*)
2171 # this will be overridden with pass_all, but let us keep it just in case
2172 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2175 case $LD in
2176 *-32|*"-32 ") libmagic=32-bit;;
2177 *-n32|*"-n32 ") libmagic=N32;;
2178 *-64|*"-64 ") libmagic=64-bit;;
2179 *) libmagic=never-match;;
2180 esac
2181 # this will be overridden with pass_all, but let us keep it just in case
2182 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2184 esac
2185 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2186 lt_cv_deplibs_check_method=pass_all
2189 # This must be Linux ELF.
2190 linux-gnu*)
2191 case $host_cpu in
2192 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2193 lt_cv_deplibs_check_method=pass_all ;;
2195 # glibc up to 2.1.1 does not perform some relocations on ARM
2196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2197 esac
2198 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2201 netbsd*)
2202 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2203 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2204 else
2205 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2209 newsos6)
2210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2211 lt_cv_file_magic_cmd=/usr/bin/file
2212 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2215 osf3* | osf4* | osf5*)
2216 # this will be overridden with pass_all, but let us keep it just in case
2217 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2218 lt_cv_file_magic_test_file=/shlib/libc.so
2219 lt_cv_deplibs_check_method=pass_all
2222 sco3.2v5*)
2223 lt_cv_deplibs_check_method=pass_all
2226 solaris*)
2227 lt_cv_deplibs_check_method=pass_all
2228 lt_cv_file_magic_test_file=/lib/libc.so
2231 sysv5uw[78]* | sysv4*uw2*)
2232 lt_cv_deplibs_check_method=pass_all
2235 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2236 case $host_vendor in
2237 ncr)
2238 lt_cv_deplibs_check_method=pass_all
2240 motorola)
2241 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]'
2242 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2244 esac
2246 esac
2250 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2251 file_magic_cmd=$lt_cv_file_magic_cmd
2252 deplibs_check_method=$lt_cv_deplibs_check_method
2254 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2255 echo "configure:2256: checking for object suffix" >&5
2256 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259 rm -f conftest*
2260 echo 'int i = 1;' > conftest.$ac_ext
2261 if { (eval echo configure:2262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2262 for ac_file in conftest.*; do
2263 case $ac_file in
2264 *.c) ;;
2265 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2266 esac
2267 done
2268 else
2269 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2271 rm -f conftest*
2274 echo "$ac_t""$ac_cv_objext" 1>&6
2275 OBJEXT=$ac_cv_objext
2276 ac_objext=$ac_cv_objext
2278 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2280 # Only perform the check for file, if the check method requires it
2281 case $deplibs_check_method in
2282 file_magic*)
2283 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2284 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2285 echo "configure:2286: checking for ${ac_tool_prefix}file" >&5
2286 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2288 else
2289 case $MAGIC_CMD in
2291 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2293 ?:/*)
2294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2297 ac_save_MAGIC_CMD="$MAGIC_CMD"
2298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2299 ac_dummy="/usr/bin:$PATH"
2300 for ac_dir in $ac_dummy; do
2301 test -z "$ac_dir" && ac_dir=.
2302 if test -f $ac_dir/${ac_tool_prefix}file; then
2303 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2304 if test -n "$file_magic_test_file"; then
2305 case $deplibs_check_method in
2306 "file_magic "*)
2307 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2308 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2309 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2310 egrep "$file_magic_regex" > /dev/null; then
2312 else
2313 cat <<EOF 1>&2
2315 *** Warning: the command libtool uses to detect shared libraries,
2316 *** $file_magic_cmd, produces output that libtool cannot recognize.
2317 *** The result is that libtool may fail to recognize shared libraries
2318 *** as such. This will affect the creation of libtool libraries that
2319 *** depend on shared libraries, but programs linked with such libtool
2320 *** libraries will work regardless of this problem. Nevertheless, you
2321 *** may want to report the problem to your system manager and/or to
2322 *** bug-libtool@gnu.org
2325 fi ;;
2326 esac
2328 break
2330 done
2331 IFS="$ac_save_ifs"
2332 MAGIC_CMD="$ac_save_MAGIC_CMD"
2334 esac
2337 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2338 if test -n "$MAGIC_CMD"; then
2339 echo "$ac_t""$MAGIC_CMD" 1>&6
2340 else
2341 echo "$ac_t""no" 1>&6
2344 if test -z "$lt_cv_path_MAGIC_CMD"; then
2345 if test -n "$ac_tool_prefix"; then
2346 echo $ac_n "checking for file""... $ac_c" 1>&6
2347 echo "configure:2348: checking for file" >&5
2348 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2350 else
2351 case $MAGIC_CMD in
2353 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2355 ?:/*)
2356 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2359 ac_save_MAGIC_CMD="$MAGIC_CMD"
2360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2361 ac_dummy="/usr/bin:$PATH"
2362 for ac_dir in $ac_dummy; do
2363 test -z "$ac_dir" && ac_dir=.
2364 if test -f $ac_dir/file; then
2365 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2366 if test -n "$file_magic_test_file"; then
2367 case $deplibs_check_method in
2368 "file_magic "*)
2369 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2370 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2371 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2372 egrep "$file_magic_regex" > /dev/null; then
2374 else
2375 cat <<EOF 1>&2
2377 *** Warning: the command libtool uses to detect shared libraries,
2378 *** $file_magic_cmd, produces output that libtool cannot recognize.
2379 *** The result is that libtool may fail to recognize shared libraries
2380 *** as such. This will affect the creation of libtool libraries that
2381 *** depend on shared libraries, but programs linked with such libtool
2382 *** libraries will work regardless of this problem. Nevertheless, you
2383 *** may want to report the problem to your system manager and/or to
2384 *** bug-libtool@gnu.org
2387 fi ;;
2388 esac
2390 break
2392 done
2393 IFS="$ac_save_ifs"
2394 MAGIC_CMD="$ac_save_MAGIC_CMD"
2396 esac
2399 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2400 if test -n "$MAGIC_CMD"; then
2401 echo "$ac_t""$MAGIC_CMD" 1>&6
2402 else
2403 echo "$ac_t""no" 1>&6
2406 else
2407 MAGIC_CMD=:
2413 esac
2415 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2416 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2418 echo "configure:2419: checking for $ac_word" >&5
2419 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2420 echo $ac_n "(cached) $ac_c" 1>&6
2421 else
2422 if test -n "$RANLIB"; then
2423 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2424 else
2425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2426 ac_dummy="$PATH"
2427 for ac_dir in $ac_dummy; do
2428 test -z "$ac_dir" && ac_dir=.
2429 if test -f $ac_dir/$ac_word; then
2430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2431 break
2433 done
2434 IFS="$ac_save_ifs"
2437 RANLIB="$ac_cv_prog_RANLIB"
2438 if test -n "$RANLIB"; then
2439 echo "$ac_t""$RANLIB" 1>&6
2440 else
2441 echo "$ac_t""no" 1>&6
2445 if test -z "$ac_cv_prog_RANLIB"; then
2446 if test -n "$ac_tool_prefix"; then
2447 # Extract the first word of "ranlib", so it can be a program name with args.
2448 set dummy ranlib; ac_word=$2
2449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2450 echo "configure:2451: checking for $ac_word" >&5
2451 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2453 else
2454 if test -n "$RANLIB"; then
2455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2456 else
2457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2458 ac_dummy="$PATH"
2459 for ac_dir in $ac_dummy; do
2460 test -z "$ac_dir" && ac_dir=.
2461 if test -f $ac_dir/$ac_word; then
2462 ac_cv_prog_RANLIB="ranlib"
2463 break
2465 done
2466 IFS="$ac_save_ifs"
2467 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2470 RANLIB="$ac_cv_prog_RANLIB"
2471 if test -n "$RANLIB"; then
2472 echo "$ac_t""$RANLIB" 1>&6
2473 else
2474 echo "$ac_t""no" 1>&6
2477 else
2478 RANLIB=":"
2482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}strip; ac_word=$2
2484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2485 echo "configure:2486: checking for $ac_word" >&5
2486 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2488 else
2489 if test -n "$STRIP"; then
2490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2491 else
2492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2493 ac_dummy="$PATH"
2494 for ac_dir in $ac_dummy; do
2495 test -z "$ac_dir" && ac_dir=.
2496 if test -f $ac_dir/$ac_word; then
2497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2498 break
2500 done
2501 IFS="$ac_save_ifs"
2504 STRIP="$ac_cv_prog_STRIP"
2505 if test -n "$STRIP"; then
2506 echo "$ac_t""$STRIP" 1>&6
2507 else
2508 echo "$ac_t""no" 1>&6
2512 if test -z "$ac_cv_prog_STRIP"; then
2513 if test -n "$ac_tool_prefix"; then
2514 # Extract the first word of "strip", so it can be a program name with args.
2515 set dummy strip; ac_word=$2
2516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2517 echo "configure:2518: checking for $ac_word" >&5
2518 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2520 else
2521 if test -n "$STRIP"; then
2522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2523 else
2524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2525 ac_dummy="$PATH"
2526 for ac_dir in $ac_dummy; do
2527 test -z "$ac_dir" && ac_dir=.
2528 if test -f $ac_dir/$ac_word; then
2529 ac_cv_prog_STRIP="strip"
2530 break
2532 done
2533 IFS="$ac_save_ifs"
2534 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2537 STRIP="$ac_cv_prog_STRIP"
2538 if test -n "$STRIP"; then
2539 echo "$ac_t""$STRIP" 1>&6
2540 else
2541 echo "$ac_t""no" 1>&6
2544 else
2545 STRIP=":"
2550 # Check for any special flags to pass to ltconfig.
2551 libtool_flags="--cache-file=$cache_file"
2552 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2553 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2554 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2555 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2556 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2558 libtool_flags="$libtool_flags --enable-win32-dll"
2559 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2560 if test "${enable_libtool_lock+set}" = set; then
2561 enableval="$enable_libtool_lock"
2565 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2566 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2568 # Check whether --with-pic or --without-pic was given.
2569 if test "${with_pic+set}" = set; then
2570 withval="$with_pic"
2571 pic_mode="$withval"
2572 else
2573 pic_mode=default
2576 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2577 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2579 # Some flags need to be propagated to the compiler or linker for good
2580 # libtool support.
2581 case $host in
2582 *-*-irix6*)
2583 # Find out which ABI we are using.
2584 echo '#line 2585 "configure"' > conftest.$ac_ext
2585 if { (eval echo configure:2586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2586 case `/usr/bin/file conftest.$ac_objext` in
2587 *32-bit*)
2588 LD="${LD-ld} -32"
2590 *N32*)
2591 LD="${LD-ld} -n32"
2593 *64-bit*)
2594 LD="${LD-ld} -64"
2596 esac
2598 rm -rf conftest*
2601 ia64-*-hpux*)
2602 # Find out which ABI we are using.
2603 echo 'int i;' > conftest.$ac_ext
2604 if { (eval echo configure:2605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2605 case "`/usr/bin/file conftest.o`" in
2606 *ELF-32*)
2607 HPUX_IA64_MODE="32"
2609 *ELF-64*)
2610 HPUX_IA64_MODE="64"
2612 esac
2614 rm -rf conftest*
2617 *-*-sco3.2v5*)
2618 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2619 SAVE_CFLAGS="$CFLAGS"
2620 CFLAGS="$CFLAGS -belf"
2621 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2622 echo "configure:2623: checking whether the C compiler needs -belf" >&5
2623 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2625 else
2627 ac_ext=c
2628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2629 ac_cpp='$CPP $CPPFLAGS'
2630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2632 cross_compiling=$ac_cv_prog_cc_cross
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2638 int main() {
2640 ; return 0; }
2642 if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2643 rm -rf conftest*
2644 lt_cv_cc_needs_belf=yes
2645 else
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2648 rm -rf conftest*
2649 lt_cv_cc_needs_belf=no
2651 rm -f conftest*
2652 ac_ext=c
2653 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2656 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2657 cross_compiling=$ac_cv_prog_cc_cross
2661 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2662 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2663 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2664 CFLAGS="$SAVE_CFLAGS"
2668 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2669 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2670 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2672 echo "configure:2673: checking for $ac_word" >&5
2673 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2675 else
2676 if test -n "$DLLTOOL"; then
2677 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2678 else
2679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2680 ac_dummy="$PATH"
2681 for ac_dir in $ac_dummy; do
2682 test -z "$ac_dir" && ac_dir=.
2683 if test -f $ac_dir/$ac_word; then
2684 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2685 break
2687 done
2688 IFS="$ac_save_ifs"
2691 DLLTOOL="$ac_cv_prog_DLLTOOL"
2692 if test -n "$DLLTOOL"; then
2693 echo "$ac_t""$DLLTOOL" 1>&6
2694 else
2695 echo "$ac_t""no" 1>&6
2699 if test -z "$ac_cv_prog_DLLTOOL"; then
2700 if test -n "$ac_tool_prefix"; then
2701 # Extract the first word of "dlltool", so it can be a program name with args.
2702 set dummy dlltool; ac_word=$2
2703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2704 echo "configure:2705: checking for $ac_word" >&5
2705 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2707 else
2708 if test -n "$DLLTOOL"; then
2709 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2710 else
2711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2712 ac_dummy="$PATH"
2713 for ac_dir in $ac_dummy; do
2714 test -z "$ac_dir" && ac_dir=.
2715 if test -f $ac_dir/$ac_word; then
2716 ac_cv_prog_DLLTOOL="dlltool"
2717 break
2719 done
2720 IFS="$ac_save_ifs"
2721 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2724 DLLTOOL="$ac_cv_prog_DLLTOOL"
2725 if test -n "$DLLTOOL"; then
2726 echo "$ac_t""$DLLTOOL" 1>&6
2727 else
2728 echo "$ac_t""no" 1>&6
2731 else
2732 DLLTOOL="false"
2736 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2737 set dummy ${ac_tool_prefix}as; ac_word=$2
2738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_word" >&5
2740 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2742 else
2743 if test -n "$AS"; then
2744 ac_cv_prog_AS="$AS" # Let the user override the test.
2745 else
2746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2747 ac_dummy="$PATH"
2748 for ac_dir in $ac_dummy; do
2749 test -z "$ac_dir" && ac_dir=.
2750 if test -f $ac_dir/$ac_word; then
2751 ac_cv_prog_AS="${ac_tool_prefix}as"
2752 break
2754 done
2755 IFS="$ac_save_ifs"
2758 AS="$ac_cv_prog_AS"
2759 if test -n "$AS"; then
2760 echo "$ac_t""$AS" 1>&6
2761 else
2762 echo "$ac_t""no" 1>&6
2766 if test -z "$ac_cv_prog_AS"; then
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "as", so it can be a program name with args.
2769 set dummy as; ac_word=$2
2770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2771 echo "configure:2772: checking for $ac_word" >&5
2772 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2774 else
2775 if test -n "$AS"; then
2776 ac_cv_prog_AS="$AS" # Let the user override the test.
2777 else
2778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2779 ac_dummy="$PATH"
2780 for ac_dir in $ac_dummy; do
2781 test -z "$ac_dir" && ac_dir=.
2782 if test -f $ac_dir/$ac_word; then
2783 ac_cv_prog_AS="as"
2784 break
2786 done
2787 IFS="$ac_save_ifs"
2788 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2791 AS="$ac_cv_prog_AS"
2792 if test -n "$AS"; then
2793 echo "$ac_t""$AS" 1>&6
2794 else
2795 echo "$ac_t""no" 1>&6
2798 else
2799 AS="false"
2803 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2804 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2806 echo "configure:2807: checking for $ac_word" >&5
2807 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2809 else
2810 if test -n "$OBJDUMP"; then
2811 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2812 else
2813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2814 ac_dummy="$PATH"
2815 for ac_dir in $ac_dummy; do
2816 test -z "$ac_dir" && ac_dir=.
2817 if test -f $ac_dir/$ac_word; then
2818 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2819 break
2821 done
2822 IFS="$ac_save_ifs"
2825 OBJDUMP="$ac_cv_prog_OBJDUMP"
2826 if test -n "$OBJDUMP"; then
2827 echo "$ac_t""$OBJDUMP" 1>&6
2828 else
2829 echo "$ac_t""no" 1>&6
2833 if test -z "$ac_cv_prog_OBJDUMP"; then
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "objdump", so it can be a program name with args.
2836 set dummy objdump; ac_word=$2
2837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2838 echo "configure:2839: checking for $ac_word" >&5
2839 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2841 else
2842 if test -n "$OBJDUMP"; then
2843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2844 else
2845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2846 ac_dummy="$PATH"
2847 for ac_dir in $ac_dummy; do
2848 test -z "$ac_dir" && ac_dir=.
2849 if test -f $ac_dir/$ac_word; then
2850 ac_cv_prog_OBJDUMP="objdump"
2851 break
2853 done
2854 IFS="$ac_save_ifs"
2855 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2858 OBJDUMP="$ac_cv_prog_OBJDUMP"
2859 if test -n "$OBJDUMP"; then
2860 echo "$ac_t""$OBJDUMP" 1>&6
2861 else
2862 echo "$ac_t""no" 1>&6
2865 else
2866 OBJDUMP="false"
2871 # recent cygwin and mingw systems supply a stub DllMain which the user
2872 # can override, but on older systems we have to supply one
2873 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2874 echo "configure:2875: checking if libtool should supply DllMain function" >&5
2875 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2877 else
2878 cat > conftest.$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2882 int main() {
2883 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2884 DllMain (0, 0, 0);
2885 ; return 0; }
2887 if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2888 rm -rf conftest*
2889 lt_cv_need_dllmain=no
2890 else
2891 echo "configure: failed program was:" >&5
2892 cat conftest.$ac_ext >&5
2893 rm -rf conftest*
2894 lt_cv_need_dllmain=yes
2896 rm -f conftest*
2899 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2901 case $host/$CC in
2902 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2903 # old mingw systems require "-dll" to link a DLL, while more recent ones
2904 # require "-mdll"
2905 SAVE_CFLAGS="$CFLAGS"
2906 CFLAGS="$CFLAGS -mdll"
2907 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2908 echo "configure:2909: checking how to link DLLs" >&5
2909 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2911 else
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2916 int main() {
2918 ; return 0; }
2920 if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2921 rm -rf conftest*
2922 lt_cv_cc_dll_switch=-mdll
2923 else
2924 echo "configure: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2926 rm -rf conftest*
2927 lt_cv_cc_dll_switch=-dll
2929 rm -f conftest*
2932 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2933 CFLAGS="$SAVE_CFLAGS" ;;
2934 *-*-cygwin* | *-*-pw32*)
2935 # cygwin systems need to pass --dll to the linker, and not link
2936 # crt.o which will require a WinMain@16 definition.
2937 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2938 esac
2941 esac
2944 # Save cache, so that ltconfig can load it
2945 cat > confcache <<\EOF
2946 # This file is a shell script that caches the results of configure
2947 # tests run on this system so they can be shared between configure
2948 # scripts and configure runs. It is not useful on other systems.
2949 # If it contains results you don't want to keep, you may remove or edit it.
2951 # By default, configure uses ./config.cache as the cache file,
2952 # creating it if it does not exist already. You can give configure
2953 # the --cache-file=FILE option to use a different cache file; that is
2954 # what configure does when it calls configure scripts in
2955 # subdirectories, so they share the cache.
2956 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2957 # config.status only pays attention to the cache file if you give it the
2958 # --recheck option to rerun configure.
2961 # The following way of writing the cache mishandles newlines in values,
2962 # but we know of no workaround that is simple, portable, and efficient.
2963 # So, don't put newlines in cache variables' values.
2964 # Ultrix sh set writes to stderr and can't be redirected directly,
2965 # and sets the high bit in the cache file unless we assign to the vars.
2966 (set) 2>&1 |
2967 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2968 *ac_space=\ *)
2969 # `set' does not quote correctly, so add quotes (double-quote substitution
2970 # turns \\\\ into \\, and sed turns \\ into \).
2971 sed -n \
2972 -e "s/'/'\\\\''/g" \
2973 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2976 # `set' quotes correctly as required by POSIX, so do not add quotes.
2977 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2979 esac >> confcache
2980 if cmp -s $cache_file confcache; then
2982 else
2983 if test -w $cache_file; then
2984 echo "updating cache $cache_file"
2985 cat confcache > $cache_file
2986 else
2987 echo "not updating unwritable cache $cache_file"
2990 rm -f confcache
2993 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2994 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2995 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2996 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2997 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2998 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2999 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3000 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3001 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3002 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3004 # Reload cache, that may have been modified by ltconfig
3005 if test -r "$cache_file"; then
3006 echo "loading cache $cache_file"
3007 . $cache_file
3008 else
3009 echo "creating cache $cache_file"
3010 > $cache_file
3014 # This can be used to rebuild libtool when needed
3015 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3017 # Always use our own libtool.
3018 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3020 # Redirect the config.log output again, so that the ltconfig log is not
3021 # clobbered by the next message.
3022 exec 5>>./config.log
3031 subdirs="machine sys"
3034 CRT0=
3035 if test -n "${sys_dir}"; then
3036 CRT0=crt0.o
3041 LIBC_POSIX_LIB=
3042 if test -n "${posix_dir}"; then
3043 if test "${use_libtool}" = "yes"; then
3044 LIBC_POSIX_LIB=${posix_dir}/lib${posix_dir}.${aext}
3045 else
3046 LIBC_POSIX_LIB=${posix_dir}/lib.${aext}
3052 if test x${posix_dir} != x; then
3053 HAVE_POSIX_DIR_TRUE=
3054 HAVE_POSIX_DIR_FALSE='#'
3055 else
3056 HAVE_POSIX_DIR_TRUE='#'
3057 HAVE_POSIX_DIR_FALSE=
3060 LIBC_SIGNAL_LIB=
3061 LIBC_SIGNAL_DEF=
3062 if test -n "${signal_dir}"; then
3063 if test "${use_libtool}" = "yes"; then
3064 LIBC_SIGNAL_LIB=${signal_dir}/lib${signal_dir}.${aext}
3065 else
3066 LIBC_SIGNAL_LIB=${signal_dir}/lib.${aext}
3068 LIBC_SIGNAL_DEF=${signal_dir}/stmp-def
3074 if test x${signal_dir} != x; then
3075 HAVE_SIGNAL_DIR_TRUE=
3076 HAVE_SIGNAL_DIR_FALSE='#'
3077 else
3078 HAVE_SIGNAL_DIR_TRUE='#'
3079 HAVE_SIGNAL_DIR_FALSE=
3082 LIBC_STDIO64_LIB=
3083 LIBC_STDIO64_DEF=
3084 if test -n "${stdio64_dir}"; then
3085 if test "${use_libtool}" = "yes"; then
3086 LIBC_STDIO64_LIB=${stdio64_dir}/lib${stdio64_dir}.${aext}
3087 else
3088 LIBC_STDIO64_LIB=${stdio64_dir}/lib.${aext}
3090 LIBC_STDIO64_DEF=${stdio64_dir}/stmp-def
3096 if test x${stdio64_dir} != x; then
3097 HAVE_STDIO64_DIR_TRUE=
3098 HAVE_STDIO64_DIR_FALSE='#'
3099 else
3100 HAVE_STDIO64_DIR_TRUE='#'
3101 HAVE_STDIO64_DIR_FALSE=
3104 LIBC_SYSCALL_LIB=
3105 if test -n "${syscall_dir}"; then
3106 if test "${use_libtool}" = "yes"; then
3107 LIBC_SYSCALL_LIB=${syscall_dir}/lib${syscall_dir}.${aext}
3108 else
3109 LIBC_SYSCALL_LIB=${syscall_dir}/lib.${aext}
3115 if test x${syscall_dir} != x; then
3116 HAVE_SYSCALL_DIR_TRUE=
3117 HAVE_SYSCALL_DIR_FALSE='#'
3118 else
3119 HAVE_SYSCALL_DIR_TRUE='#'
3120 HAVE_SYSCALL_DIR_FALSE=
3123 LIBC_UNIX_LIB=
3124 if test -n "${unix_dir}"; then
3125 if test "${use_libtool}" = "yes"; then
3126 LIBC_UNIX_LIB=${unix_dir}/lib${unix_dir}.${aext}
3127 else
3128 LIBC_UNIX_LIB=${unix_dir}/lib.${aext}
3134 if test x${unix_dir} != x; then
3135 HAVE_UNIX_DIR_TRUE=
3136 HAVE_UNIX_DIR_FALSE='#'
3137 else
3138 HAVE_UNIX_DIR_TRUE='#'
3139 HAVE_UNIX_DIR_FALSE=
3142 LIBC_EXTRA_LIB=
3143 LIBC_EXTRA_DEF=
3144 extra_dir=
3151 LIBC_SYS_LIB=
3152 if test -n "${sys_dir}"; then
3153 if test "${use_libtool}" = "yes"; then
3154 LIBC_SYS_LIB=sys/${sys_dir}/lib${sys_dir}.${aext}
3155 else
3156 LIBC_SYS_LIB=sys/lib.${aext}
3164 if test x${newlib_iconv} != x; then
3165 ENABLE_NEWLIB_ICONV_TRUE=
3166 ENABLE_NEWLIB_ICONV_FALSE='#'
3167 else
3168 ENABLE_NEWLIB_ICONV_TRUE='#'
3169 ENABLE_NEWLIB_ICONV_FALSE=
3172 if test -n "${machine_dir}"; then
3173 if test "${use_libtool}" = "yes"; then
3174 LIBC_MACHINE_LIB=machine/${machine_dir}/lib${machine_dir}.${aext}
3175 else
3176 LIBC_MACHINE_LIB=machine/lib.${aext}
3182 trap '' 1 2 15
3183 cat > confcache <<\EOF
3184 # This file is a shell script that caches the results of configure
3185 # tests run on this system so they can be shared between configure
3186 # scripts and configure runs. It is not useful on other systems.
3187 # If it contains results you don't want to keep, you may remove or edit it.
3189 # By default, configure uses ./config.cache as the cache file,
3190 # creating it if it does not exist already. You can give configure
3191 # the --cache-file=FILE option to use a different cache file; that is
3192 # what configure does when it calls configure scripts in
3193 # subdirectories, so they share the cache.
3194 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3195 # config.status only pays attention to the cache file if you give it the
3196 # --recheck option to rerun configure.
3199 # The following way of writing the cache mishandles newlines in values,
3200 # but we know of no workaround that is simple, portable, and efficient.
3201 # So, don't put newlines in cache variables' values.
3202 # Ultrix sh set writes to stderr and can't be redirected directly,
3203 # and sets the high bit in the cache file unless we assign to the vars.
3204 (set) 2>&1 |
3205 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3206 *ac_space=\ *)
3207 # `set' does not quote correctly, so add quotes (double-quote substitution
3208 # turns \\\\ into \\, and sed turns \\ into \).
3209 sed -n \
3210 -e "s/'/'\\\\''/g" \
3211 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3214 # `set' quotes correctly as required by POSIX, so do not add quotes.
3215 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3217 esac >> confcache
3218 if cmp -s $cache_file confcache; then
3220 else
3221 if test -w $cache_file; then
3222 echo "updating cache $cache_file"
3223 cat confcache > $cache_file
3224 else
3225 echo "not updating unwritable cache $cache_file"
3228 rm -f confcache
3230 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3232 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3233 # Let make expand exec_prefix.
3234 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3236 # Any assignment to VPATH causes Sun make to only execute
3237 # the first set of double-colon rules, so remove it if not needed.
3238 # If there is a colon in the path, we need to keep it.
3239 if test "x$srcdir" = x.; then
3240 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3243 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3245 # Transform confdefs.h into DEFS.
3246 # Protect against shell expansion while executing Makefile rules.
3247 # Protect against Makefile macro expansion.
3248 cat > conftest.defs <<\EOF
3249 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3250 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3251 s%\[%\\&%g
3252 s%\]%\\&%g
3253 s%\$%$$%g
3255 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3256 rm -f conftest.defs
3259 # Without the "./", some shells look in PATH for config.status.
3260 : ${CONFIG_STATUS=./config.status}
3262 echo creating $CONFIG_STATUS
3263 rm -f $CONFIG_STATUS
3264 cat > $CONFIG_STATUS <<EOF
3265 #! /bin/sh
3266 # Generated automatically by configure.
3267 # Run this file to recreate the current configuration.
3268 # This directory was configured as follows,
3269 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3271 # $0 $ac_configure_args
3273 # Compiler output produced by configure, useful for debugging
3274 # configure, is in ./config.log if it exists.
3276 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3277 for ac_option
3279 case "\$ac_option" in
3280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3281 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3282 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3283 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3284 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3285 exit 0 ;;
3286 -help | --help | --hel | --he | --h)
3287 echo "\$ac_cs_usage"; exit 0 ;;
3288 *) echo "\$ac_cs_usage"; exit 1 ;;
3289 esac
3290 done
3292 ac_given_srcdir=$srcdir
3293 ac_given_INSTALL="$INSTALL"
3295 trap '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
3297 cat >> $CONFIG_STATUS <<EOF
3299 # Protect against being on the right side of a sed subst in config.status.
3300 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3301 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3302 $ac_vpsub
3303 $extrasub
3304 s%@SHELL@%$SHELL%g
3305 s%@CFLAGS@%$CFLAGS%g
3306 s%@CPPFLAGS@%$CPPFLAGS%g
3307 s%@CXXFLAGS@%$CXXFLAGS%g
3308 s%@FFLAGS@%$FFLAGS%g
3309 s%@DEFS@%$DEFS%g
3310 s%@LDFLAGS@%$LDFLAGS%g
3311 s%@LIBS@%$LIBS%g
3312 s%@exec_prefix@%$exec_prefix%g
3313 s%@prefix@%$prefix%g
3314 s%@program_transform_name@%$program_transform_name%g
3315 s%@bindir@%$bindir%g
3316 s%@sbindir@%$sbindir%g
3317 s%@libexecdir@%$libexecdir%g
3318 s%@datadir@%$datadir%g
3319 s%@sysconfdir@%$sysconfdir%g
3320 s%@sharedstatedir@%$sharedstatedir%g
3321 s%@localstatedir@%$localstatedir%g
3322 s%@libdir@%$libdir%g
3323 s%@includedir@%$includedir%g
3324 s%@oldincludedir@%$oldincludedir%g
3325 s%@infodir@%$infodir%g
3326 s%@mandir@%$mandir%g
3327 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
3328 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
3329 s%@newlib_basedir@%$newlib_basedir%g
3330 s%@host@%$host%g
3331 s%@host_alias@%$host_alias%g
3332 s%@host_cpu@%$host_cpu%g
3333 s%@host_vendor@%$host_vendor%g
3334 s%@host_os@%$host_os%g
3335 s%@target@%$target%g
3336 s%@target_alias@%$target_alias%g
3337 s%@target_cpu@%$target_cpu%g
3338 s%@target_vendor@%$target_vendor%g
3339 s%@target_os@%$target_os%g
3340 s%@build@%$build%g
3341 s%@build_alias@%$build_alias%g
3342 s%@build_cpu@%$build_cpu%g
3343 s%@build_vendor@%$build_vendor%g
3344 s%@build_os@%$build_os%g
3345 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3346 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3347 s%@INSTALL_DATA@%$INSTALL_DATA%g
3348 s%@PACKAGE@%$PACKAGE%g
3349 s%@VERSION@%$VERSION%g
3350 s%@ACLOCAL@%$ACLOCAL%g
3351 s%@AUTOCONF@%$AUTOCONF%g
3352 s%@AUTOMAKE@%$AUTOMAKE%g
3353 s%@AUTOHEADER@%$AUTOHEADER%g
3354 s%@MAKEINFO@%$MAKEINFO%g
3355 s%@SET_MAKE@%$SET_MAKE%g
3356 s%@CC@%$CC%g
3357 s%@AS@%$AS%g
3358 s%@AR@%$AR%g
3359 s%@RANLIB@%$RANLIB%g
3360 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3361 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3362 s%@MAINT@%$MAINT%g
3363 s%@EXEEXT@%$EXEEXT%g
3364 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
3365 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
3366 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
3367 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
3368 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
3369 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
3370 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
3371 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
3372 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
3373 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
3374 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
3375 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
3376 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
3377 s%@OBJEXT@%$OBJEXT%g
3378 s%@oext@%$oext%g
3379 s%@aext@%$aext%g
3380 s%@libm_machine_dir@%$libm_machine_dir%g
3381 s%@machine_dir@%$machine_dir%g
3382 s%@sys_dir@%$sys_dir%g
3383 s%@LN_S@%$LN_S%g
3384 s%@STRIP@%$STRIP%g
3385 s%@DLLTOOL@%$DLLTOOL%g
3386 s%@OBJDUMP@%$OBJDUMP%g
3387 s%@LIBTOOL@%$LIBTOOL%g
3388 s%@subdirs@%$subdirs%g
3389 s%@CRT0@%$CRT0%g
3390 s%@LIBC_POSIX_LIB@%$LIBC_POSIX_LIB%g
3391 s%@HAVE_POSIX_DIR_TRUE@%$HAVE_POSIX_DIR_TRUE%g
3392 s%@HAVE_POSIX_DIR_FALSE@%$HAVE_POSIX_DIR_FALSE%g
3393 s%@LIBC_SIGNAL_LIB@%$LIBC_SIGNAL_LIB%g
3394 s%@LIBC_SIGNAL_DEF@%$LIBC_SIGNAL_DEF%g
3395 s%@HAVE_SIGNAL_DIR_TRUE@%$HAVE_SIGNAL_DIR_TRUE%g
3396 s%@HAVE_SIGNAL_DIR_FALSE@%$HAVE_SIGNAL_DIR_FALSE%g
3397 s%@LIBC_STDIO64_LIB@%$LIBC_STDIO64_LIB%g
3398 s%@LIBC_STDIO64_DEF@%$LIBC_STDIO64_DEF%g
3399 s%@HAVE_STDIO64_DIR_TRUE@%$HAVE_STDIO64_DIR_TRUE%g
3400 s%@HAVE_STDIO64_DIR_FALSE@%$HAVE_STDIO64_DIR_FALSE%g
3401 s%@LIBC_SYSCALL_LIB@%$LIBC_SYSCALL_LIB%g
3402 s%@HAVE_SYSCALL_DIR_TRUE@%$HAVE_SYSCALL_DIR_TRUE%g
3403 s%@HAVE_SYSCALL_DIR_FALSE@%$HAVE_SYSCALL_DIR_FALSE%g
3404 s%@LIBC_UNIX_LIB@%$LIBC_UNIX_LIB%g
3405 s%@HAVE_UNIX_DIR_TRUE@%$HAVE_UNIX_DIR_TRUE%g
3406 s%@HAVE_UNIX_DIR_FALSE@%$HAVE_UNIX_DIR_FALSE%g
3407 s%@LIBC_EXTRA_LIB@%$LIBC_EXTRA_LIB%g
3408 s%@LIBC_EXTRA_DEF@%$LIBC_EXTRA_DEF%g
3409 s%@extra_dir@%$extra_dir%g
3410 s%@LIBC_SYS_LIB@%$LIBC_SYS_LIB%g
3411 s%@ENABLE_NEWLIB_ICONV_TRUE@%$ENABLE_NEWLIB_ICONV_TRUE%g
3412 s%@ENABLE_NEWLIB_ICONV_FALSE@%$ENABLE_NEWLIB_ICONV_FALSE%g
3413 s%@LIBC_MACHINE_LIB@%$LIBC_MACHINE_LIB%g
3415 CEOF
3418 cat >> $CONFIG_STATUS <<\EOF
3420 # Split the substitutions into bite-sized pieces for seds with
3421 # small command number limits, like on Digital OSF/1 and HP-UX.
3422 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3423 ac_file=1 # Number of current file.
3424 ac_beg=1 # First line for current file.
3425 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3426 ac_more_lines=:
3427 ac_sed_cmds=""
3428 while $ac_more_lines; do
3429 if test $ac_beg -gt 1; then
3430 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3431 else
3432 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3434 if test ! -s conftest.s$ac_file; then
3435 ac_more_lines=false
3436 rm -f conftest.s$ac_file
3437 else
3438 if test -z "$ac_sed_cmds"; then
3439 ac_sed_cmds="sed -f conftest.s$ac_file"
3440 else
3441 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3443 ac_file=`expr $ac_file + 1`
3444 ac_beg=$ac_end
3445 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3447 done
3448 if test -z "$ac_sed_cmds"; then
3449 ac_sed_cmds=cat
3453 cat >> $CONFIG_STATUS <<EOF
3455 CONFIG_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"}
3457 cat >> $CONFIG_STATUS <<\EOF
3458 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3459 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3460 case "$ac_file" in
3461 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3462 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3463 *) ac_file_in="${ac_file}.in" ;;
3464 esac
3466 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3468 # Remove last slash and all that follows it. Not all systems have dirname.
3469 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3470 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3471 # The file is in a subdirectory.
3472 test ! -d "$ac_dir" && mkdir "$ac_dir"
3473 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3474 # A "../" for each directory in $ac_dir_suffix.
3475 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3476 else
3477 ac_dir_suffix= ac_dots=
3480 case "$ac_given_srcdir" in
3481 .) srcdir=.
3482 if test -z "$ac_dots"; then top_srcdir=.
3483 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3484 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3485 *) # Relative path.
3486 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3487 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3488 esac
3490 case "$ac_given_INSTALL" in
3491 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3492 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3493 esac
3495 echo creating "$ac_file"
3496 rm -f "$ac_file"
3497 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3498 case "$ac_file" in
3499 *Makefile*) ac_comsub="1i\\
3500 # $configure_input" ;;
3501 *) ac_comsub= ;;
3502 esac
3504 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3505 sed -e "$ac_comsub
3506 s%@configure_input@%$configure_input%g
3507 s%@srcdir@%$srcdir%g
3508 s%@top_srcdir@%$top_srcdir%g
3509 s%@INSTALL@%$INSTALL%g
3510 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3511 fi; done
3512 rm -f conftest.s*
3515 cat >> $CONFIG_STATUS <<EOF
3518 cat >> $CONFIG_STATUS <<\EOF
3520 exit 0
3522 chmod +x $CONFIG_STATUS
3523 rm -fr confdefs* $ac_clean_files
3524 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3526 if test "$no_recursion" != yes; then
3528 # Remove --cache-file and --srcdir arguments so they do not pile up.
3529 ac_sub_configure_args=
3530 ac_prev=
3531 for ac_arg in $ac_configure_args; do
3532 if test -n "$ac_prev"; then
3533 ac_prev=
3534 continue
3536 case "$ac_arg" in
3537 -cache-file | --cache-file | --cache-fil | --cache-fi \
3538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3539 ac_prev=cache_file ;;
3540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3543 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3544 ac_prev=srcdir ;;
3545 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3547 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3548 esac
3549 done
3551 for ac_config_dir in machine sys; do
3553 # Do not complain, so a configure script can configure whichever
3554 # parts of a large source tree are present.
3555 if test ! -d $srcdir/$ac_config_dir; then
3556 continue
3559 echo configuring in $ac_config_dir
3561 case "$srcdir" in
3562 .) ;;
3564 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3565 else
3566 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3569 esac
3571 ac_popdir=`pwd`
3572 cd $ac_config_dir
3574 # A "../" for each directory in /$ac_config_dir.
3575 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3577 case "$srcdir" in
3578 .) # No --srcdir option. We are building in place.
3579 ac_sub_srcdir=$srcdir ;;
3580 /*) # Absolute path.
3581 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3582 *) # Relative path.
3583 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3584 esac
3586 # Check for guested configure; otherwise get Cygnus style configure.
3587 if test -f $ac_sub_srcdir/configure; then
3588 ac_sub_configure=$ac_sub_srcdir/configure
3589 elif test -f $ac_sub_srcdir/configure.in; then
3590 ac_sub_configure=$ac_configure
3591 else
3592 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3593 ac_sub_configure=
3596 # The recursion is here.
3597 if test -n "$ac_sub_configure"; then
3599 # Make the cache file name correct relative to the subdirectory.
3600 case "$cache_file" in
3601 /*) ac_sub_cache_file=$cache_file ;;
3602 *) # Relative path.
3603 ac_sub_cache_file="$ac_dots$cache_file" ;;
3604 esac
3605 case "$ac_given_INSTALL" in
3606 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3607 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3608 esac
3610 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3611 # The eval makes quoting arguments work.
3612 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3613 then :
3614 else
3615 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3619 cd $ac_popdir
3620 done