OSDN Git Service

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