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