OSDN Git Service

2006-01-20 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains4x.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.14.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 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
1459 ac_given_INSTALL=$INSTALL
1460
1461 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1462 echo "configure:1463: checking whether to enable maintainer-specific portions of Makefiles" >&5
1463     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1464 if test "${enable_maintainer_mode+set}" = set; then
1465   enableval="$enable_maintainer_mode"
1466   USE_MAINTAINER_MODE=$enableval
1467 else
1468   USE_MAINTAINER_MODE=no
1469 fi
1470
1471   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1472   
1473
1474 if test $USE_MAINTAINER_MODE = yes; then
1475   MAINTAINER_MODE_TRUE=
1476   MAINTAINER_MODE_FALSE='#'
1477 else
1478   MAINTAINER_MODE_TRUE='#'
1479   MAINTAINER_MODE_FALSE=
1480 fi
1481   MAINT=$MAINTAINER_MODE_TRUE
1482   
1483
1484
1485 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1486 # at least currently, we never actually build a program, so we never
1487 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1488 # fails, because we are probably configuring with a cross compiler
1489 # which can't create executables.  So we include AC_EXEEXT to keep
1490 # automake happy, but we don't execute it, since we don't care about
1491 # the result.
1492 if false; then
1493   
1494
1495 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1496 echo "configure:1497: checking for executable suffix" >&5
1497 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1498   echo $ac_n "(cached) $ac_c" 1>&6
1499 else
1500   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1501   ac_cv_exeext=.exe
1502 else
1503   rm -f conftest*
1504   echo 'int main () { return 0; }' > conftest.$ac_ext
1505   ac_cv_exeext=
1506   if { (eval echo configure:1507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1507     for file in conftest.*; do
1508       case $file in
1509       *.c | *.o | *.obj) ;;
1510       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1511       esac
1512     done
1513   else
1514     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1515   fi
1516   rm -f conftest*
1517   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1518 fi
1519 fi
1520
1521 EXEEXT=""
1522 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1523 echo "$ac_t""${ac_cv_exeext}" 1>&6
1524 ac_exeext=$EXEEXT
1525
1526 fi
1527
1528 . ${newlib_basedir}/configure.host
1529
1530 newlib_cflags="${newlib_cflags} -fno-builtin"
1531
1532 NEWLIB_CFLAGS=${newlib_cflags}
1533
1534
1535 LDFLAGS=${ldflags}
1536
1537
1538
1539
1540 if test x${newlib_elix_level} = x0; then
1541   ELIX_LEVEL_0_TRUE=
1542   ELIX_LEVEL_0_FALSE='#'
1543 else
1544   ELIX_LEVEL_0_TRUE='#'
1545   ELIX_LEVEL_0_FALSE=
1546 fi
1547
1548
1549 if test x${newlib_elix_level} = x1; then
1550   ELIX_LEVEL_1_TRUE=
1551   ELIX_LEVEL_1_FALSE='#'
1552 else
1553   ELIX_LEVEL_1_TRUE='#'
1554   ELIX_LEVEL_1_FALSE=
1555 fi
1556
1557
1558 if test x${newlib_elix_level} = x2; then
1559   ELIX_LEVEL_2_TRUE=
1560   ELIX_LEVEL_2_FALSE='#'
1561 else
1562   ELIX_LEVEL_2_TRUE='#'
1563   ELIX_LEVEL_2_FALSE=
1564 fi
1565
1566
1567 if test x${newlib_elix_level} = x3; then
1568   ELIX_LEVEL_3_TRUE=
1569   ELIX_LEVEL_3_FALSE='#'
1570 else
1571   ELIX_LEVEL_3_TRUE='#'
1572   ELIX_LEVEL_3_FALSE=
1573 fi
1574
1575
1576 if test x${newlib_elix_level} = x4; then
1577   ELIX_LEVEL_4_TRUE=
1578   ELIX_LEVEL_4_FALSE='#'
1579 else
1580   ELIX_LEVEL_4_TRUE='#'
1581   ELIX_LEVEL_4_FALSE=
1582 fi
1583
1584
1585
1586 if test x${use_libtool} = xyes; then
1587   USE_LIBTOOL_TRUE=
1588   USE_LIBTOOL_FALSE='#'
1589 else
1590   USE_LIBTOOL_TRUE='#'
1591   USE_LIBTOOL_FALSE=
1592 fi
1593
1594 # Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
1595 # use oext, which is set in configure.host based on the target platform.
1596 OBJEXT=${oext}
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608 if test "${use_libtool}" = "yes"; then
1609
1610 # Check whether --enable-shared or --disable-shared was given.
1611 if test "${enable_shared+set}" = set; then
1612   enableval="$enable_shared"
1613   p=${PACKAGE-default}
1614 case $enableval in
1615 yes) enable_shared=yes ;;
1616 no) enable_shared=no ;;
1617 *)
1618   enable_shared=no
1619   # Look at the argument we got.  We use all the common list separators.
1620   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1621   for pkg in $enableval; do
1622     if test "X$pkg" = "X$p"; then
1623       enable_shared=yes
1624     fi
1625   done
1626   IFS="$ac_save_ifs"
1627   ;;
1628 esac
1629 else
1630   enable_shared=yes
1631 fi
1632
1633 # Check whether --enable-static or --disable-static was given.
1634 if test "${enable_static+set}" = set; then
1635   enableval="$enable_static"
1636   p=${PACKAGE-default}
1637 case $enableval in
1638 yes) enable_static=yes ;;
1639 no) enable_static=no ;;
1640 *)
1641   enable_static=no
1642   # Look at the argument we got.  We use all the common list separators.
1643   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1644   for pkg in $enableval; do
1645     if test "X$pkg" = "X$p"; then
1646       enable_static=yes
1647     fi
1648   done
1649   IFS="$ac_save_ifs"
1650   ;;
1651 esac
1652 else
1653   enable_static=yes
1654 fi
1655
1656 # Check whether --enable-fast-install or --disable-fast-install was given.
1657 if test "${enable_fast_install+set}" = set; then
1658   enableval="$enable_fast_install"
1659   p=${PACKAGE-default}
1660 case $enableval in
1661 yes) enable_fast_install=yes ;;
1662 no) enable_fast_install=no ;;
1663 *)
1664   enable_fast_install=no
1665   # Look at the argument we got.  We use all the common list separators.
1666   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1667   for pkg in $enableval; do
1668     if test "X$pkg" = "X$p"; then
1669       enable_fast_install=yes
1670     fi
1671   done
1672   IFS="$ac_save_ifs"
1673   ;;
1674 esac
1675 else
1676   enable_fast_install=yes
1677 fi
1678
1679 # Extract the first word of "gcc", so it can be a program name with args.
1680 set dummy gcc; ac_word=$2
1681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1682 echo "configure:1683: checking for $ac_word" >&5
1683 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1684   echo $ac_n "(cached) $ac_c" 1>&6
1685 else
1686   if test -n "$CC"; then
1687   ac_cv_prog_CC="$CC" # Let the user override the test.
1688 else
1689   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1690   ac_dummy="$PATH"
1691   for ac_dir in $ac_dummy; do
1692     test -z "$ac_dir" && ac_dir=.
1693     if test -f $ac_dir/$ac_word; then
1694       ac_cv_prog_CC="gcc"
1695       break
1696     fi
1697   done
1698   IFS="$ac_save_ifs"
1699 fi
1700 fi
1701 CC="$ac_cv_prog_CC"
1702 if test -n "$CC"; then
1703   echo "$ac_t""$CC" 1>&6
1704 else
1705   echo "$ac_t""no" 1>&6
1706 fi
1707
1708 if test -z "$CC"; then
1709   # Extract the first word of "cc", so it can be a program name with args.
1710 set dummy cc; ac_word=$2
1711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1712 echo "configure:1713: checking for $ac_word" >&5
1713 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1714   echo $ac_n "(cached) $ac_c" 1>&6
1715 else
1716   if test -n "$CC"; then
1717   ac_cv_prog_CC="$CC" # Let the user override the test.
1718 else
1719   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1720   ac_prog_rejected=no
1721   ac_dummy="$PATH"
1722   for ac_dir in $ac_dummy; do
1723     test -z "$ac_dir" && ac_dir=.
1724     if test -f $ac_dir/$ac_word; then
1725       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1726         ac_prog_rejected=yes
1727         continue
1728       fi
1729       ac_cv_prog_CC="cc"
1730       break
1731     fi
1732   done
1733   IFS="$ac_save_ifs"
1734 if test $ac_prog_rejected = yes; then
1735   # We found a bogon in the path, so make sure we never use it.
1736   set dummy $ac_cv_prog_CC
1737   shift
1738   if test $# -gt 0; then
1739     # We chose a different compiler from the bogus one.
1740     # However, it has the same basename, so the bogon will be chosen
1741     # first if we set CC to just the basename; use the full file name.
1742     shift
1743     set dummy "$ac_dir/$ac_word" "$@"
1744     shift
1745     ac_cv_prog_CC="$@"
1746   fi
1747 fi
1748 fi
1749 fi
1750 CC="$ac_cv_prog_CC"
1751 if test -n "$CC"; then
1752   echo "$ac_t""$CC" 1>&6
1753 else
1754   echo "$ac_t""no" 1>&6
1755 fi
1756
1757   if test -z "$CC"; then
1758     case "`uname -s`" in
1759     *win32* | *WIN32*)
1760       # Extract the first word of "cl", so it can be a program name with args.
1761 set dummy cl; ac_word=$2
1762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1763 echo "configure:1764: checking for $ac_word" >&5
1764 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1765   echo $ac_n "(cached) $ac_c" 1>&6
1766 else
1767   if test -n "$CC"; then
1768   ac_cv_prog_CC="$CC" # Let the user override the test.
1769 else
1770   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1771   ac_dummy="$PATH"
1772   for ac_dir in $ac_dummy; do
1773     test -z "$ac_dir" && ac_dir=.
1774     if test -f $ac_dir/$ac_word; then
1775       ac_cv_prog_CC="cl"
1776       break
1777     fi
1778   done
1779   IFS="$ac_save_ifs"
1780 fi
1781 fi
1782 CC="$ac_cv_prog_CC"
1783 if test -n "$CC"; then
1784   echo "$ac_t""$CC" 1>&6
1785 else
1786   echo "$ac_t""no" 1>&6
1787 fi
1788  ;;
1789     esac
1790   fi
1791   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1792 fi
1793
1794 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1795 echo "configure:1796: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1796
1797 ac_ext=c
1798 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1801 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1802 cross_compiling=$ac_cv_prog_cc_cross
1803
1804 cat > conftest.$ac_ext << EOF
1805
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808
1809 main(){return(0);}
1810 EOF
1811 if { (eval echo configure:1812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1812   ac_cv_prog_cc_works=yes
1813   # If we can't run a trivial program, we are probably using a cross compiler.
1814   if (./conftest; exit) 2>/dev/null; then
1815     ac_cv_prog_cc_cross=no
1816   else
1817     ac_cv_prog_cc_cross=yes
1818   fi
1819 else
1820   echo "configure: failed program was:" >&5
1821   cat conftest.$ac_ext >&5
1822   ac_cv_prog_cc_works=no
1823 fi
1824 rm -fr conftest*
1825 ac_ext=c
1826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1830 cross_compiling=$ac_cv_prog_cc_cross
1831
1832 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1833 if test $ac_cv_prog_cc_works = no; then
1834   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1835 fi
1836 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1837 echo "configure:1838: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1838 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1839 cross_compiling=$ac_cv_prog_cc_cross
1840
1841 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1842 echo "configure:1843: checking whether we are using GNU C" >&5
1843 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1844   echo $ac_n "(cached) $ac_c" 1>&6
1845 else
1846   cat > conftest.c <<EOF
1847 #ifdef __GNUC__
1848   yes;
1849 #endif
1850 EOF
1851 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1852   ac_cv_prog_gcc=yes
1853 else
1854   ac_cv_prog_gcc=no
1855 fi
1856 fi
1857
1858 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1859
1860 if test $ac_cv_prog_gcc = yes; then
1861   GCC=yes
1862 else
1863   GCC=
1864 fi
1865
1866 ac_test_CFLAGS="${CFLAGS+set}"
1867 ac_save_CFLAGS="$CFLAGS"
1868 CFLAGS=
1869 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1870 echo "configure:1871: checking whether ${CC-cc} accepts -g" >&5
1871 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1872   echo $ac_n "(cached) $ac_c" 1>&6
1873 else
1874   echo 'void f(){}' > conftest.c
1875 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1876   ac_cv_prog_cc_g=yes
1877 else
1878   ac_cv_prog_cc_g=no
1879 fi
1880 rm -f conftest*
1881
1882 fi
1883
1884 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1885 if test "$ac_test_CFLAGS" = set; then
1886   CFLAGS="$ac_save_CFLAGS"
1887 elif test $ac_cv_prog_cc_g = yes; then
1888   if test "$GCC" = yes; then
1889     CFLAGS="-g -O2"
1890   else
1891     CFLAGS="-g"
1892   fi
1893 else
1894   if test "$GCC" = yes; then
1895     CFLAGS="-O2"
1896   else
1897     CFLAGS=
1898   fi
1899 fi
1900
1901 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1902 if test "${with_gnu_ld+set}" = set; then
1903   withval="$with_gnu_ld"
1904   test "$withval" = no || with_gnu_ld=yes
1905 else
1906   with_gnu_ld=no
1907 fi
1908
1909 ac_prog=ld
1910 if test "$GCC" = yes; then
1911   # Check if gcc -print-prog-name=ld gives a path.
1912   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1913 echo "configure:1914: checking for ld used by GCC" >&5
1914   case $host in
1915   *-*-mingw*)
1916     # gcc leaves a trailing carriage return which upsets mingw
1917     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1918   *)
1919     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1920   esac
1921   case $ac_prog in
1922     # Accept absolute paths.
1923     [\\/]* | [A-Za-z]:[\\/]*)
1924       re_direlt='/[^/][^/]*/\.\./'
1925       # Canonicalize the path of ld
1926       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1927       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1928         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1929       done
1930       test -z "$LD" && LD="$ac_prog"
1931       ;;
1932   "")
1933     # If it fails, then pretend we aren't using GCC.
1934     ac_prog=ld
1935     ;;
1936   *)
1937     # If it is relative, then search for the first ld in PATH.
1938     with_gnu_ld=unknown
1939     ;;
1940   esac
1941 elif test "$with_gnu_ld" = yes; then
1942   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1943 echo "configure:1944: checking for GNU ld" >&5
1944 else
1945   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1946 echo "configure:1947: checking for non-GNU ld" >&5
1947 fi
1948 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1949   echo $ac_n "(cached) $ac_c" 1>&6
1950 else
1951   if test -z "$LD"; then
1952   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1953   for ac_dir in $PATH; do
1954     test -z "$ac_dir" && ac_dir=.
1955     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1956       lt_cv_path_LD="$ac_dir/$ac_prog"
1957       # Check to see if the program is GNU ld.  I'd rather use --version,
1958       # but apparently some GNU ld's only accept -v.
1959       # Break only if it was the GNU/non-GNU ld that we prefer.
1960       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1961         test "$with_gnu_ld" != no && break
1962       else
1963         test "$with_gnu_ld" != yes && break
1964       fi
1965     fi
1966   done
1967   IFS="$ac_save_ifs"
1968 else
1969   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1970 fi
1971 fi
1972
1973 LD="$lt_cv_path_LD"
1974 if test -n "$LD"; then
1975   echo "$ac_t""$LD" 1>&6
1976 else
1977   echo "$ac_t""no" 1>&6
1978 fi
1979 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1980 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1981 echo "configure:1982: checking if the linker ($LD) is GNU ld" >&5
1982 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1983   echo $ac_n "(cached) $ac_c" 1>&6
1984 else
1985   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1986 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1987   lt_cv_prog_gnu_ld=yes
1988 else
1989   lt_cv_prog_gnu_ld=no
1990 fi
1991 fi
1992
1993 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1994 with_gnu_ld=$lt_cv_prog_gnu_ld
1995
1996
1997 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1998 echo "configure:1999: checking for $LD option to reload object files" >&5
1999 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2000   echo $ac_n "(cached) $ac_c" 1>&6
2001 else
2002   lt_cv_ld_reload_flag='-r'
2003 fi
2004
2005 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
2006 reload_flag=$lt_cv_ld_reload_flag
2007 test -n "$reload_flag" && reload_flag=" $reload_flag"
2008
2009 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2010 echo "configure:2011: checking for BSD-compatible nm" >&5
2011 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2012   echo $ac_n "(cached) $ac_c" 1>&6
2013 else
2014   if test -n "$NM"; then
2015   # Let the user override the test.
2016   lt_cv_path_NM="$NM"
2017 else
2018   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2019   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2020     test -z "$ac_dir" && ac_dir=.
2021     tmp_nm=$ac_dir/${ac_tool_prefix}nm
2022     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2023       # Check to see if the nm accepts a BSD-compat flag.
2024       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2025       #   nm: unknown option "B" ignored
2026       # Tru64's nm complains that /dev/null is an invalid object file
2027       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2028         lt_cv_path_NM="$tmp_nm -B"
2029         break
2030       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2031         lt_cv_path_NM="$tmp_nm -p"
2032         break
2033       else
2034         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2035         continue # so that we can try to find one that supports BSD flags
2036       fi
2037     fi
2038   done
2039   IFS="$ac_save_ifs"
2040   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2041 fi
2042 fi
2043
2044 NM="$lt_cv_path_NM"
2045 echo "$ac_t""$NM" 1>&6
2046
2047 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2048 echo "configure:2049: checking whether ln -s works" >&5
2049 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2050   echo $ac_n "(cached) $ac_c" 1>&6
2051 else
2052   rm -f conftestdata
2053 if ln -s X conftestdata 2>/dev/null
2054 then
2055   rm -f conftestdata
2056   ac_cv_prog_LN_S="ln -s"
2057 else
2058   ac_cv_prog_LN_S=ln
2059 fi
2060 fi
2061 LN_S="$ac_cv_prog_LN_S"
2062 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2063   echo "$ac_t""yes" 1>&6
2064 else
2065   echo "$ac_t""no" 1>&6
2066 fi
2067
2068 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2069 echo "configure:2070: checking how to recognise dependant libraries" >&5
2070 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2071   echo $ac_n "(cached) $ac_c" 1>&6
2072 else
2073   lt_cv_file_magic_cmd='$MAGIC_CMD'
2074 lt_cv_file_magic_test_file=
2075 lt_cv_deplibs_check_method='unknown'
2076 # Need to set the preceding variable on all platforms that support
2077 # interlibrary dependencies.
2078 # 'none' -- dependencies not supported.
2079 # `unknown' -- same as none, but documents that we really don't know.
2080 # 'pass_all' -- all dependencies passed with no checks.
2081 # 'test_compile' -- check by making test program.
2082 # 'file_magic [regex]' -- check by looking for files in library path
2083 # which responds to the $file_magic_cmd with a given egrep regex.
2084 # If you have `file' or equivalent on your system and you're not sure
2085 # whether `pass_all' will *always* work, you probably want this one.
2086
2087 case $host_os in
2088 aix*)
2089   lt_cv_deplibs_check_method=pass_all
2090   ;;
2091
2092 beos*)
2093   lt_cv_deplibs_check_method=pass_all
2094   ;;
2095
2096 bsdi4*)
2097   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2098   lt_cv_file_magic_cmd='/usr/bin/file -L'
2099   lt_cv_file_magic_test_file=/shlib/libc.so
2100   ;;
2101
2102 cygwin* | mingw* |pw32*)
2103   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2104   lt_cv_file_magic_cmd='$OBJDUMP -f'
2105   ;;
2106
2107 darwin* | rhapsody*)
2108   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2109   lt_cv_file_magic_cmd='/usr/bin/file -L'
2110   case "$host_os" in
2111   rhapsody* | darwin1.012)
2112     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2113     ;;
2114   *) # Darwin 1.3 on
2115     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2116     ;;
2117   esac
2118   ;;
2119
2120 freebsd* )
2121   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2122     case $host_cpu in
2123     i*86 )
2124       # Not sure whether the presence of OpenBSD here was a mistake.
2125       # Let's accept both of them until this is cleared up.
2126       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2127       lt_cv_file_magic_cmd=/usr/bin/file
2128       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2129       ;;
2130     esac
2131   else
2132     lt_cv_deplibs_check_method=pass_all
2133   fi
2134   ;;
2135
2136 gnu*)
2137   lt_cv_deplibs_check_method=pass_all
2138   ;;
2139
2140 hpux10.20*|hpux11*)
2141   case $host_cpu in
2142   hppa*)
2143     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2144     lt_cv_file_magic_cmd=/usr/bin/file
2145     lt_cv_file_magic_test_file=/usr/lib/libc.sl
2146     ;;
2147   ia64*)
2148     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2149     lt_cv_file_magic_cmd=/usr/bin/file
2150     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2151     ;;
2152   esac
2153   ;;
2154
2155 irix5* | irix6*)
2156   case $host_os in
2157   irix5*)
2158     # this will be overridden with pass_all, but let us keep it just in case
2159     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2160     ;;
2161   *)
2162     case $LD in
2163     *-32|*"-32 ") libmagic=32-bit;;
2164     *-n32|*"-n32 ") libmagic=N32;;
2165     *-64|*"-64 ") libmagic=64-bit;;
2166     *) libmagic=never-match;;
2167     esac
2168     # this will be overridden with pass_all, but let us keep it just in case
2169     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2170     ;;
2171   esac
2172   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2173   lt_cv_deplibs_check_method=pass_all
2174   ;;
2175
2176 # This must be Linux ELF.
2177 linux-gnu*)
2178   case $host_cpu in
2179   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2180     lt_cv_deplibs_check_method=pass_all ;;
2181   *)
2182     # glibc up to 2.1.1 does not perform some relocations on ARM
2183     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2184   esac
2185   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2186   ;;
2187
2188 netbsd*)
2189   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2190     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2191   else
2192     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2193   fi
2194   ;;
2195
2196 newsos6)
2197   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2198   lt_cv_file_magic_cmd=/usr/bin/file
2199   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2200   ;;
2201
2202 osf3* | osf4* | osf5*)
2203   # this will be overridden with pass_all, but let us keep it just in case
2204   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2205   lt_cv_file_magic_test_file=/shlib/libc.so
2206   lt_cv_deplibs_check_method=pass_all
2207   ;;
2208
2209 sco3.2v5*)
2210   lt_cv_deplibs_check_method=pass_all
2211   ;;
2212
2213 solaris*)
2214   lt_cv_deplibs_check_method=pass_all
2215   lt_cv_file_magic_test_file=/lib/libc.so
2216   ;;
2217
2218 sysv5uw[78]* | sysv4*uw2*)
2219   lt_cv_deplibs_check_method=pass_all
2220   ;;
2221
2222 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2223   case $host_vendor in
2224   ncr)
2225     lt_cv_deplibs_check_method=pass_all
2226     ;;
2227   motorola)
2228     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]'
2229     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2230     ;;
2231   esac
2232   ;;
2233 esac
2234
2235 fi
2236
2237 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2238 file_magic_cmd=$lt_cv_file_magic_cmd
2239 deplibs_check_method=$lt_cv_deplibs_check_method
2240
2241 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2242 echo "configure:2243: checking for object suffix" >&5
2243 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2244   echo $ac_n "(cached) $ac_c" 1>&6
2245 else
2246   rm -f conftest*
2247 echo 'int i = 1;' > conftest.$ac_ext
2248 if { (eval echo configure:2249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2249   for ac_file in conftest.*; do
2250     case $ac_file in
2251     *.c) ;;
2252     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2253     esac
2254   done
2255 else
2256   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2257 fi
2258 rm -f conftest*
2259 fi
2260
2261 echo "$ac_t""$ac_cv_objext" 1>&6
2262 OBJEXT=$ac_cv_objext
2263 ac_objext=$ac_cv_objext
2264
2265 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2266
2267 # Only perform the check for file, if the check method requires it
2268 case $deplibs_check_method in
2269 file_magic*)
2270   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2271     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2272 echo "configure:2273: checking for ${ac_tool_prefix}file" >&5
2273 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2274   echo $ac_n "(cached) $ac_c" 1>&6
2275 else
2276   case $MAGIC_CMD in
2277   /*)
2278   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2279   ;;
2280   ?:/*)
2281   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2282   ;;
2283   *)
2284   ac_save_MAGIC_CMD="$MAGIC_CMD"
2285   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2286   ac_dummy="/usr/bin:$PATH"
2287   for ac_dir in $ac_dummy; do
2288     test -z "$ac_dir" && ac_dir=.
2289     if test -f $ac_dir/${ac_tool_prefix}file; then
2290       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2291       if test -n "$file_magic_test_file"; then
2292         case $deplibs_check_method in
2293         "file_magic "*)
2294           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2295           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2296           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2297             egrep "$file_magic_regex" > /dev/null; then
2298             :
2299           else
2300             cat <<EOF 1>&2
2301
2302 *** Warning: the command libtool uses to detect shared libraries,
2303 *** $file_magic_cmd, produces output that libtool cannot recognize.
2304 *** The result is that libtool may fail to recognize shared libraries
2305 *** as such.  This will affect the creation of libtool libraries that
2306 *** depend on shared libraries, but programs linked with such libtool
2307 *** libraries will work regardless of this problem.  Nevertheless, you
2308 *** may want to report the problem to your system manager and/or to
2309 *** bug-libtool@gnu.org
2310
2311 EOF
2312           fi ;;
2313         esac
2314       fi
2315       break
2316     fi
2317   done
2318   IFS="$ac_save_ifs"
2319   MAGIC_CMD="$ac_save_MAGIC_CMD"
2320   ;;
2321 esac
2322 fi
2323
2324 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2325 if test -n "$MAGIC_CMD"; then
2326   echo "$ac_t""$MAGIC_CMD" 1>&6
2327 else
2328   echo "$ac_t""no" 1>&6
2329 fi
2330
2331 if test -z "$lt_cv_path_MAGIC_CMD"; then
2332   if test -n "$ac_tool_prefix"; then
2333     echo $ac_n "checking for file""... $ac_c" 1>&6
2334 echo "configure:2335: checking for file" >&5
2335 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2336   echo $ac_n "(cached) $ac_c" 1>&6
2337 else
2338   case $MAGIC_CMD in
2339   /*)
2340   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2341   ;;
2342   ?:/*)
2343   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2344   ;;
2345   *)
2346   ac_save_MAGIC_CMD="$MAGIC_CMD"
2347   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2348   ac_dummy="/usr/bin:$PATH"
2349   for ac_dir in $ac_dummy; do
2350     test -z "$ac_dir" && ac_dir=.
2351     if test -f $ac_dir/file; then
2352       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2353       if test -n "$file_magic_test_file"; then
2354         case $deplibs_check_method in
2355         "file_magic "*)
2356           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2357           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2358           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2359             egrep "$file_magic_regex" > /dev/null; then
2360             :
2361           else
2362             cat <<EOF 1>&2
2363
2364 *** Warning: the command libtool uses to detect shared libraries,
2365 *** $file_magic_cmd, produces output that libtool cannot recognize.
2366 *** The result is that libtool may fail to recognize shared libraries
2367 *** as such.  This will affect the creation of libtool libraries that
2368 *** depend on shared libraries, but programs linked with such libtool
2369 *** libraries will work regardless of this problem.  Nevertheless, you
2370 *** may want to report the problem to your system manager and/or to
2371 *** bug-libtool@gnu.org
2372
2373 EOF
2374           fi ;;
2375         esac
2376       fi
2377       break
2378     fi
2379   done
2380   IFS="$ac_save_ifs"
2381   MAGIC_CMD="$ac_save_MAGIC_CMD"
2382   ;;
2383 esac
2384 fi
2385
2386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2387 if test -n "$MAGIC_CMD"; then
2388   echo "$ac_t""$MAGIC_CMD" 1>&6
2389 else
2390   echo "$ac_t""no" 1>&6
2391 fi
2392
2393   else
2394     MAGIC_CMD=:
2395   fi
2396 fi
2397
2398   fi
2399   ;;
2400 esac
2401
2402 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2405 echo "configure:2406: checking for $ac_word" >&5
2406 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2407   echo $ac_n "(cached) $ac_c" 1>&6
2408 else
2409   if test -n "$RANLIB"; then
2410   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2411 else
2412   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2413   ac_dummy="$PATH"
2414   for ac_dir in $ac_dummy; do
2415     test -z "$ac_dir" && ac_dir=.
2416     if test -f $ac_dir/$ac_word; then
2417       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2418       break
2419     fi
2420   done
2421   IFS="$ac_save_ifs"
2422 fi
2423 fi
2424 RANLIB="$ac_cv_prog_RANLIB"
2425 if test -n "$RANLIB"; then
2426   echo "$ac_t""$RANLIB" 1>&6
2427 else
2428   echo "$ac_t""no" 1>&6
2429 fi
2430
2431
2432 if test -z "$ac_cv_prog_RANLIB"; then
2433 if test -n "$ac_tool_prefix"; then
2434   # Extract the first word of "ranlib", so it can be a program name with args.
2435 set dummy ranlib; ac_word=$2
2436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2437 echo "configure:2438: checking for $ac_word" >&5
2438 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2439   echo $ac_n "(cached) $ac_c" 1>&6
2440 else
2441   if test -n "$RANLIB"; then
2442   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2443 else
2444   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2445   ac_dummy="$PATH"
2446   for ac_dir in $ac_dummy; do
2447     test -z "$ac_dir" && ac_dir=.
2448     if test -f $ac_dir/$ac_word; then
2449       ac_cv_prog_RANLIB="ranlib"
2450       break
2451     fi
2452   done
2453   IFS="$ac_save_ifs"
2454   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2455 fi
2456 fi
2457 RANLIB="$ac_cv_prog_RANLIB"
2458 if test -n "$RANLIB"; then
2459   echo "$ac_t""$RANLIB" 1>&6
2460 else
2461   echo "$ac_t""no" 1>&6
2462 fi
2463
2464 else
2465   RANLIB=":"
2466 fi
2467 fi
2468
2469 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2470 set dummy ${ac_tool_prefix}strip; ac_word=$2
2471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2472 echo "configure:2473: checking for $ac_word" >&5
2473 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2474   echo $ac_n "(cached) $ac_c" 1>&6
2475 else
2476   if test -n "$STRIP"; then
2477   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2478 else
2479   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2480   ac_dummy="$PATH"
2481   for ac_dir in $ac_dummy; do
2482     test -z "$ac_dir" && ac_dir=.
2483     if test -f $ac_dir/$ac_word; then
2484       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2485       break
2486     fi
2487   done
2488   IFS="$ac_save_ifs"
2489 fi
2490 fi
2491 STRIP="$ac_cv_prog_STRIP"
2492 if test -n "$STRIP"; then
2493   echo "$ac_t""$STRIP" 1>&6
2494 else
2495   echo "$ac_t""no" 1>&6
2496 fi
2497
2498
2499 if test -z "$ac_cv_prog_STRIP"; then
2500 if test -n "$ac_tool_prefix"; then
2501   # Extract the first word of "strip", so it can be a program name with args.
2502 set dummy strip; ac_word=$2
2503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_word" >&5
2505 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2506   echo $ac_n "(cached) $ac_c" 1>&6
2507 else
2508   if test -n "$STRIP"; then
2509   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2510 else
2511   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2512   ac_dummy="$PATH"
2513   for ac_dir in $ac_dummy; do
2514     test -z "$ac_dir" && ac_dir=.
2515     if test -f $ac_dir/$ac_word; then
2516       ac_cv_prog_STRIP="strip"
2517       break
2518     fi
2519   done
2520   IFS="$ac_save_ifs"
2521   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2522 fi
2523 fi
2524 STRIP="$ac_cv_prog_STRIP"
2525 if test -n "$STRIP"; then
2526   echo "$ac_t""$STRIP" 1>&6
2527 else
2528   echo "$ac_t""no" 1>&6
2529 fi
2530
2531 else
2532   STRIP=":"
2533 fi
2534 fi
2535
2536
2537 # Check for any special flags to pass to ltconfig.
2538 libtool_flags="--cache-file=$cache_file"
2539 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2540 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2541 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2542 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2543 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2544
2545 libtool_flags="$libtool_flags --enable-win32-dll"
2546 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2547 if test "${enable_libtool_lock+set}" = set; then
2548   enableval="$enable_libtool_lock"
2549   :
2550 fi
2551
2552 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2553 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2554
2555 # Check whether --with-pic or --without-pic was given.
2556 if test "${with_pic+set}" = set; then
2557   withval="$with_pic"
2558   pic_mode="$withval"
2559 else
2560   pic_mode=default
2561 fi
2562
2563 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2564 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2565
2566 # Some flags need to be propagated to the compiler or linker for good
2567 # libtool support.
2568 case $host in
2569 *-*-irix6*)
2570   # Find out which ABI we are using.
2571   echo '#line 2572 "configure"' > conftest.$ac_ext
2572   if { (eval echo configure:2573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2573     case `/usr/bin/file conftest.$ac_objext` in
2574     *32-bit*)
2575       LD="${LD-ld} -32"
2576       ;;
2577     *N32*)
2578       LD="${LD-ld} -n32"
2579       ;;
2580     *64-bit*)
2581       LD="${LD-ld} -64"
2582       ;;
2583     esac
2584   fi
2585   rm -rf conftest*
2586   ;;
2587
2588 ia64-*-hpux*)
2589   # Find out which ABI we are using.
2590   echo 'int i;' > conftest.$ac_ext
2591   if { (eval echo configure:2592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2592     case "`/usr/bin/file conftest.o`" in
2593     *ELF-32*)
2594       HPUX_IA64_MODE="32"
2595       ;;
2596     *ELF-64*)
2597       HPUX_IA64_MODE="64"
2598       ;;
2599     esac
2600   fi
2601   rm -rf conftest*
2602   ;;
2603
2604 *-*-sco3.2v5*)
2605   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2606   SAVE_CFLAGS="$CFLAGS"
2607   CFLAGS="$CFLAGS -belf"
2608   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2609 echo "configure:2610: checking whether the C compiler needs -belf" >&5
2610 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2611   echo $ac_n "(cached) $ac_c" 1>&6
2612 else
2613   
2614      ac_ext=c
2615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2619 cross_compiling=$ac_cv_prog_cc_cross
2620
2621      cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2624
2625 int main() {
2626
2627 ; return 0; }
2628 EOF
2629 if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2630   rm -rf conftest*
2631   lt_cv_cc_needs_belf=yes
2632 else
2633   echo "configure: failed program was:" >&5
2634   cat conftest.$ac_ext >&5
2635   rm -rf conftest*
2636   lt_cv_cc_needs_belf=no
2637 fi
2638 rm -f conftest*
2639      ac_ext=c
2640 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2641 ac_cpp='$CPP $CPPFLAGS'
2642 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2643 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2644 cross_compiling=$ac_cv_prog_cc_cross
2645
2646 fi
2647
2648 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2649   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2650     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2651     CFLAGS="$SAVE_CFLAGS"
2652   fi
2653   ;;
2654
2655 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2656   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2657 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2659 echo "configure:2660: checking for $ac_word" >&5
2660 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2661   echo $ac_n "(cached) $ac_c" 1>&6
2662 else
2663   if test -n "$DLLTOOL"; then
2664   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2665 else
2666   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2667   ac_dummy="$PATH"
2668   for ac_dir in $ac_dummy; do
2669     test -z "$ac_dir" && ac_dir=.
2670     if test -f $ac_dir/$ac_word; then
2671       ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2672       break
2673     fi
2674   done
2675   IFS="$ac_save_ifs"
2676 fi
2677 fi
2678 DLLTOOL="$ac_cv_prog_DLLTOOL"
2679 if test -n "$DLLTOOL"; then
2680   echo "$ac_t""$DLLTOOL" 1>&6
2681 else
2682   echo "$ac_t""no" 1>&6
2683 fi
2684
2685
2686 if test -z "$ac_cv_prog_DLLTOOL"; then
2687 if test -n "$ac_tool_prefix"; then
2688   # Extract the first word of "dlltool", so it can be a program name with args.
2689 set dummy dlltool; ac_word=$2
2690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2691 echo "configure:2692: checking for $ac_word" >&5
2692 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2693   echo $ac_n "(cached) $ac_c" 1>&6
2694 else
2695   if test -n "$DLLTOOL"; then
2696   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2697 else
2698   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2699   ac_dummy="$PATH"
2700   for ac_dir in $ac_dummy; do
2701     test -z "$ac_dir" && ac_dir=.
2702     if test -f $ac_dir/$ac_word; then
2703       ac_cv_prog_DLLTOOL="dlltool"
2704       break
2705     fi
2706   done
2707   IFS="$ac_save_ifs"
2708   test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2709 fi
2710 fi
2711 DLLTOOL="$ac_cv_prog_DLLTOOL"
2712 if test -n "$DLLTOOL"; then
2713   echo "$ac_t""$DLLTOOL" 1>&6
2714 else
2715   echo "$ac_t""no" 1>&6
2716 fi
2717
2718 else
2719   DLLTOOL="false"
2720 fi
2721 fi
2722
2723   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2724 set dummy ${ac_tool_prefix}as; ac_word=$2
2725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2726 echo "configure:2727: checking for $ac_word" >&5
2727 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2728   echo $ac_n "(cached) $ac_c" 1>&6
2729 else
2730   if test -n "$AS"; then
2731   ac_cv_prog_AS="$AS" # Let the user override the test.
2732 else
2733   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2734   ac_dummy="$PATH"
2735   for ac_dir in $ac_dummy; do
2736     test -z "$ac_dir" && ac_dir=.
2737     if test -f $ac_dir/$ac_word; then
2738       ac_cv_prog_AS="${ac_tool_prefix}as"
2739       break
2740     fi
2741   done
2742   IFS="$ac_save_ifs"
2743 fi
2744 fi
2745 AS="$ac_cv_prog_AS"
2746 if test -n "$AS"; then
2747   echo "$ac_t""$AS" 1>&6
2748 else
2749   echo "$ac_t""no" 1>&6
2750 fi
2751
2752
2753 if test -z "$ac_cv_prog_AS"; then
2754 if test -n "$ac_tool_prefix"; then
2755   # Extract the first word of "as", so it can be a program name with args.
2756 set dummy as; ac_word=$2
2757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2758 echo "configure:2759: checking for $ac_word" >&5
2759 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2760   echo $ac_n "(cached) $ac_c" 1>&6
2761 else
2762   if test -n "$AS"; then
2763   ac_cv_prog_AS="$AS" # Let the user override the test.
2764 else
2765   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2766   ac_dummy="$PATH"
2767   for ac_dir in $ac_dummy; do
2768     test -z "$ac_dir" && ac_dir=.
2769     if test -f $ac_dir/$ac_word; then
2770       ac_cv_prog_AS="as"
2771       break
2772     fi
2773   done
2774   IFS="$ac_save_ifs"
2775   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2776 fi
2777 fi
2778 AS="$ac_cv_prog_AS"
2779 if test -n "$AS"; then
2780   echo "$ac_t""$AS" 1>&6
2781 else
2782   echo "$ac_t""no" 1>&6
2783 fi
2784
2785 else
2786   AS="false"
2787 fi
2788 fi
2789
2790   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2791 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2793 echo "configure:2794: checking for $ac_word" >&5
2794 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2795   echo $ac_n "(cached) $ac_c" 1>&6
2796 else
2797   if test -n "$OBJDUMP"; then
2798   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2799 else
2800   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2801   ac_dummy="$PATH"
2802   for ac_dir in $ac_dummy; do
2803     test -z "$ac_dir" && ac_dir=.
2804     if test -f $ac_dir/$ac_word; then
2805       ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2806       break
2807     fi
2808   done
2809   IFS="$ac_save_ifs"
2810 fi
2811 fi
2812 OBJDUMP="$ac_cv_prog_OBJDUMP"
2813 if test -n "$OBJDUMP"; then
2814   echo "$ac_t""$OBJDUMP" 1>&6
2815 else
2816   echo "$ac_t""no" 1>&6
2817 fi
2818
2819
2820 if test -z "$ac_cv_prog_OBJDUMP"; then
2821 if test -n "$ac_tool_prefix"; then
2822   # Extract the first word of "objdump", so it can be a program name with args.
2823 set dummy objdump; ac_word=$2
2824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2825 echo "configure:2826: checking for $ac_word" >&5
2826 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2827   echo $ac_n "(cached) $ac_c" 1>&6
2828 else
2829   if test -n "$OBJDUMP"; then
2830   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2831 else
2832   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2833   ac_dummy="$PATH"
2834   for ac_dir in $ac_dummy; do
2835     test -z "$ac_dir" && ac_dir=.
2836     if test -f $ac_dir/$ac_word; then
2837       ac_cv_prog_OBJDUMP="objdump"
2838       break
2839     fi
2840   done
2841   IFS="$ac_save_ifs"
2842   test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2843 fi
2844 fi
2845 OBJDUMP="$ac_cv_prog_OBJDUMP"
2846 if test -n "$OBJDUMP"; then
2847   echo "$ac_t""$OBJDUMP" 1>&6
2848 else
2849   echo "$ac_t""no" 1>&6
2850 fi
2851
2852 else
2853   OBJDUMP="false"
2854 fi
2855 fi
2856
2857
2858   # recent cygwin and mingw systems supply a stub DllMain which the user
2859   # can override, but on older systems we have to supply one
2860   echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2861 echo "configure:2862: checking if libtool should supply DllMain function" >&5
2862 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2863   echo $ac_n "(cached) $ac_c" 1>&6
2864 else
2865   cat > conftest.$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2868
2869 int main() {
2870 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2871       DllMain (0, 0, 0);
2872 ; return 0; }
2873 EOF
2874 if { (eval echo configure:2875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2875   rm -rf conftest*
2876   lt_cv_need_dllmain=no
2877 else
2878   echo "configure: failed program was:" >&5
2879   cat conftest.$ac_ext >&5
2880   rm -rf conftest*
2881   lt_cv_need_dllmain=yes
2882 fi
2883 rm -f conftest*
2884 fi
2885
2886 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2887
2888   case $host/$CC in
2889   *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2890     # old mingw systems require "-dll" to link a DLL, while more recent ones
2891     # require "-mdll"
2892     SAVE_CFLAGS="$CFLAGS"
2893     CFLAGS="$CFLAGS -mdll"
2894     echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2895 echo "configure:2896: checking how to link DLLs" >&5
2896 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2897   echo $ac_n "(cached) $ac_c" 1>&6
2898 else
2899   cat > conftest.$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2902
2903 int main() {
2904
2905 ; return 0; }
2906 EOF
2907 if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2908   rm -rf conftest*
2909   lt_cv_cc_dll_switch=-mdll
2910 else
2911   echo "configure: failed program was:" >&5
2912   cat conftest.$ac_ext >&5
2913   rm -rf conftest*
2914   lt_cv_cc_dll_switch=-dll
2915 fi
2916 rm -f conftest*
2917 fi
2918
2919 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2920     CFLAGS="$SAVE_CFLAGS" ;;
2921   *-*-cygwin* | *-*-pw32*)
2922     # cygwin systems need to pass --dll to the linker, and not link
2923     # crt.o which will require a WinMain@16 definition.
2924     lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2925   esac
2926   ;;
2927   
2928 esac
2929
2930
2931 # Save cache, so that ltconfig can load it
2932 cat > confcache <<\EOF
2933 # This file is a shell script that caches the results of configure
2934 # tests run on this system so they can be shared between configure
2935 # scripts and configure runs.  It is not useful on other systems.
2936 # If it contains results you don't want to keep, you may remove or edit it.
2937 #
2938 # By default, configure uses ./config.cache as the cache file,
2939 # creating it if it does not exist already.  You can give configure
2940 # the --cache-file=FILE option to use a different cache file; that is
2941 # what configure does when it calls configure scripts in
2942 # subdirectories, so they share the cache.
2943 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2944 # config.status only pays attention to the cache file if you give it the
2945 # --recheck option to rerun configure.
2946 #
2947 EOF
2948 # The following way of writing the cache mishandles newlines in values,
2949 # but we know of no workaround that is simple, portable, and efficient.
2950 # So, don't put newlines in cache variables' values.
2951 # Ultrix sh set writes to stderr and can't be redirected directly,
2952 # and sets the high bit in the cache file unless we assign to the vars.
2953 (set) 2>&1 |
2954   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2955   *ac_space=\ *)
2956     # `set' does not quote correctly, so add quotes (double-quote substitution
2957     # turns \\\\ into \\, and sed turns \\ into \).
2958     sed -n \
2959       -e "s/'/'\\\\''/g" \
2960       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2961     ;;
2962   *)
2963     # `set' quotes correctly as required by POSIX, so do not add quotes.
2964     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2965     ;;
2966   esac >> confcache
2967 if cmp -s $cache_file confcache; then
2968   :
2969 else
2970   if test -w $cache_file; then
2971     echo "updating cache $cache_file"
2972     cat confcache > $cache_file
2973   else
2974     echo "not updating unwritable cache $cache_file"
2975   fi
2976 fi
2977 rm -f confcache
2978
2979
2980 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2981 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2982 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2983 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2984 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2985 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2986 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2987 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2988 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2989 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2990
2991 # Reload cache, that may have been modified by ltconfig
2992 if test -r "$cache_file"; then
2993   echo "loading cache $cache_file"
2994   . $cache_file
2995 else
2996   echo "creating cache $cache_file"
2997   > $cache_file
2998 fi
2999
3000
3001 # This can be used to rebuild libtool when needed
3002 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3003
3004 # Always use our own libtool.
3005 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3006
3007 # Redirect the config.log output again, so that the ltconfig log is not
3008 # clobbered by the next message.
3009 exec 5>>./config.log
3010
3011   
3012
3013   
3014          
3015          
3016 fi
3017
3018 LIBM_MACHINE_LIB=
3019 if test -n "${libm_machine_dir}"; then
3020   subdirs="machine"
3021
3022   if test "${use_libtool}" = "yes"; then
3023     LIBM_MACHINE_LIB=machine/${libm_machine_dir}/lib${libm_machine_dir}.${aext}
3024   else
3025     LIBM_MACHINE_LIB=machine/lib.${aext}
3026   fi
3027 fi
3028
3029
3030
3031 trap '' 1 2 15
3032 cat > confcache <<\EOF
3033 # This file is a shell script that caches the results of configure
3034 # tests run on this system so they can be shared between configure
3035 # scripts and configure runs.  It is not useful on other systems.
3036 # If it contains results you don't want to keep, you may remove or edit it.
3037 #
3038 # By default, configure uses ./config.cache as the cache file,
3039 # creating it if it does not exist already.  You can give configure
3040 # the --cache-file=FILE option to use a different cache file; that is
3041 # what configure does when it calls configure scripts in
3042 # subdirectories, so they share the cache.
3043 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3044 # config.status only pays attention to the cache file if you give it the
3045 # --recheck option to rerun configure.
3046 #
3047 EOF
3048 # The following way of writing the cache mishandles newlines in values,
3049 # but we know of no workaround that is simple, portable, and efficient.
3050 # So, don't put newlines in cache variables' values.
3051 # Ultrix sh set writes to stderr and can't be redirected directly,
3052 # and sets the high bit in the cache file unless we assign to the vars.
3053 (set) 2>&1 |
3054   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3055   *ac_space=\ *)
3056     # `set' does not quote correctly, so add quotes (double-quote substitution
3057     # turns \\\\ into \\, and sed turns \\ into \).
3058     sed -n \
3059       -e "s/'/'\\\\''/g" \
3060       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3061     ;;
3062   *)
3063     # `set' quotes correctly as required by POSIX, so do not add quotes.
3064     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3065     ;;
3066   esac >> confcache
3067 if cmp -s $cache_file confcache; then
3068   :
3069 else
3070   if test -w $cache_file; then
3071     echo "updating cache $cache_file"
3072     cat confcache > $cache_file
3073   else
3074     echo "not updating unwritable cache $cache_file"
3075   fi
3076 fi
3077 rm -f confcache
3078
3079 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3080
3081 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3082 # Let make expand exec_prefix.
3083 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3084
3085 # Any assignment to VPATH causes Sun make to only execute
3086 # the first set of double-colon rules, so remove it if not needed.
3087 # If there is a colon in the path, we need to keep it.
3088 if test "x$srcdir" = x.; then
3089   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3090 fi
3091
3092 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3093
3094 # Transform confdefs.h into DEFS.
3095 # Protect against shell expansion while executing Makefile rules.
3096 # Protect against Makefile macro expansion.
3097 cat > conftest.defs <<\EOF
3098 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3099 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3100 s%\[%\\&%g
3101 s%\]%\\&%g
3102 s%\$%$$%g
3103 EOF
3104 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3105 rm -f conftest.defs
3106
3107
3108 # Without the "./", some shells look in PATH for config.status.
3109 : ${CONFIG_STATUS=./config.status}
3110
3111 echo creating $CONFIG_STATUS
3112 rm -f $CONFIG_STATUS
3113 cat > $CONFIG_STATUS <<EOF
3114 #! /bin/sh
3115 # Generated automatically by configure.
3116 # Run this file to recreate the current configuration.
3117 # This directory was configured as follows,
3118 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3119 #
3120 # $0 $ac_configure_args
3121 #
3122 # Compiler output produced by configure, useful for debugging
3123 # configure, is in ./config.log if it exists.
3124
3125 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3126 for ac_option
3127 do
3128   case "\$ac_option" in
3129   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3130     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3131     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3132   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3133     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3134     exit 0 ;;
3135   -help | --help | --hel | --he | --h)
3136     echo "\$ac_cs_usage"; exit 0 ;;
3137   *) echo "\$ac_cs_usage"; exit 1 ;;
3138   esac
3139 done
3140
3141 ac_given_srcdir=$srcdir
3142 ac_given_INSTALL="$INSTALL"
3143
3144 trap 'rm -fr `echo "Makefile math/Makefile mathfp/Makefile common/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3145 EOF
3146 cat >> $CONFIG_STATUS <<EOF
3147
3148 # Protect against being on the right side of a sed subst in config.status.
3149 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3150  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3151 $ac_vpsub
3152 $extrasub
3153 s%@SHELL@%$SHELL%g
3154 s%@CFLAGS@%$CFLAGS%g
3155 s%@CPPFLAGS@%$CPPFLAGS%g
3156 s%@CXXFLAGS@%$CXXFLAGS%g
3157 s%@FFLAGS@%$FFLAGS%g
3158 s%@DEFS@%$DEFS%g
3159 s%@LDFLAGS@%$LDFLAGS%g
3160 s%@LIBS@%$LIBS%g
3161 s%@exec_prefix@%$exec_prefix%g
3162 s%@prefix@%$prefix%g
3163 s%@program_transform_name@%$program_transform_name%g
3164 s%@bindir@%$bindir%g
3165 s%@sbindir@%$sbindir%g
3166 s%@libexecdir@%$libexecdir%g
3167 s%@datadir@%$datadir%g
3168 s%@sysconfdir@%$sysconfdir%g
3169 s%@sharedstatedir@%$sharedstatedir%g
3170 s%@localstatedir@%$localstatedir%g
3171 s%@libdir@%$libdir%g
3172 s%@includedir@%$includedir%g
3173 s%@oldincludedir@%$oldincludedir%g
3174 s%@infodir@%$infodir%g
3175 s%@mandir@%$mandir%g
3176 s%@NEWLIB_HW_FP_TRUE@%$NEWLIB_HW_FP_TRUE%g
3177 s%@NEWLIB_HW_FP_FALSE@%$NEWLIB_HW_FP_FALSE%g
3178 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
3179 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
3180 s%@newlib_basedir@%$newlib_basedir%g
3181 s%@host@%$host%g
3182 s%@host_alias@%$host_alias%g
3183 s%@host_cpu@%$host_cpu%g
3184 s%@host_vendor@%$host_vendor%g
3185 s%@host_os@%$host_os%g
3186 s%@target@%$target%g
3187 s%@target_alias@%$target_alias%g
3188 s%@target_cpu@%$target_cpu%g
3189 s%@target_vendor@%$target_vendor%g
3190 s%@target_os@%$target_os%g
3191 s%@build@%$build%g
3192 s%@build_alias@%$build_alias%g
3193 s%@build_cpu@%$build_cpu%g
3194 s%@build_vendor@%$build_vendor%g
3195 s%@build_os@%$build_os%g
3196 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3197 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3198 s%@INSTALL_DATA@%$INSTALL_DATA%g
3199 s%@PACKAGE@%$PACKAGE%g
3200 s%@VERSION@%$VERSION%g
3201 s%@ACLOCAL@%$ACLOCAL%g
3202 s%@AUTOCONF@%$AUTOCONF%g
3203 s%@AUTOMAKE@%$AUTOMAKE%g
3204 s%@AUTOHEADER@%$AUTOHEADER%g
3205 s%@MAKEINFO@%$MAKEINFO%g
3206 s%@SET_MAKE@%$SET_MAKE%g
3207 s%@CC@%$CC%g
3208 s%@AS@%$AS%g
3209 s%@AR@%$AR%g
3210 s%@RANLIB@%$RANLIB%g
3211 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3212 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3213 s%@MAINT@%$MAINT%g
3214 s%@EXEEXT@%$EXEEXT%g
3215 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
3216 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
3217 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
3218 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
3219 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
3220 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
3221 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
3222 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
3223 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
3224 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
3225 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
3226 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
3227 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
3228 s%@OBJEXT@%$OBJEXT%g
3229 s%@oext@%$oext%g
3230 s%@aext@%$aext%g
3231 s%@libm_machine_dir@%$libm_machine_dir%g
3232 s%@machine_dir@%$machine_dir%g
3233 s%@sys_dir@%$sys_dir%g
3234 s%@LN_S@%$LN_S%g
3235 s%@STRIP@%$STRIP%g
3236 s%@DLLTOOL@%$DLLTOOL%g
3237 s%@OBJDUMP@%$OBJDUMP%g
3238 s%@LIBTOOL@%$LIBTOOL%g
3239 s%@subdirs@%$subdirs%g
3240 s%@LIBM_MACHINE_LIB@%$LIBM_MACHINE_LIB%g
3241
3242 CEOF
3243 EOF
3244
3245 cat >> $CONFIG_STATUS <<\EOF
3246
3247 # Split the substitutions into bite-sized pieces for seds with
3248 # small command number limits, like on Digital OSF/1 and HP-UX.
3249 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3250 ac_file=1 # Number of current file.
3251 ac_beg=1 # First line for current file.
3252 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3253 ac_more_lines=:
3254 ac_sed_cmds=""
3255 while $ac_more_lines; do
3256   if test $ac_beg -gt 1; then
3257     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3258   else
3259     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3260   fi
3261   if test ! -s conftest.s$ac_file; then
3262     ac_more_lines=false
3263     rm -f conftest.s$ac_file
3264   else
3265     if test -z "$ac_sed_cmds"; then
3266       ac_sed_cmds="sed -f conftest.s$ac_file"
3267     else
3268       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3269     fi
3270     ac_file=`expr $ac_file + 1`
3271     ac_beg=$ac_end
3272     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3273   fi
3274 done
3275 if test -z "$ac_sed_cmds"; then
3276   ac_sed_cmds=cat
3277 fi
3278 EOF
3279
3280 cat >> $CONFIG_STATUS <<EOF
3281
3282 CONFIG_FILES=\${CONFIG_FILES-"Makefile math/Makefile mathfp/Makefile common/Makefile"}
3283 EOF
3284 cat >> $CONFIG_STATUS <<\EOF
3285 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3286   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3287   case "$ac_file" in
3288   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3289        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3290   *) ac_file_in="${ac_file}.in" ;;
3291   esac
3292
3293   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3294
3295   # Remove last slash and all that follows it.  Not all systems have dirname.
3296   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3297   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3298     # The file is in a subdirectory.
3299     test ! -d "$ac_dir" && mkdir "$ac_dir"
3300     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3301     # A "../" for each directory in $ac_dir_suffix.
3302     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3303   else
3304     ac_dir_suffix= ac_dots=
3305   fi
3306
3307   case "$ac_given_srcdir" in
3308   .)  srcdir=.
3309       if test -z "$ac_dots"; then top_srcdir=.
3310       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3311   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3312   *) # Relative path.
3313     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3314     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3315   esac
3316
3317   case "$ac_given_INSTALL" in
3318   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3319   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3320   esac
3321
3322   echo creating "$ac_file"
3323   rm -f "$ac_file"
3324   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3325   case "$ac_file" in
3326   *Makefile*) ac_comsub="1i\\
3327 # $configure_input" ;;
3328   *) ac_comsub= ;;
3329   esac
3330
3331   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3332   sed -e "$ac_comsub
3333 s%@configure_input@%$configure_input%g
3334 s%@srcdir@%$srcdir%g
3335 s%@top_srcdir@%$top_srcdir%g
3336 s%@INSTALL@%$INSTALL%g
3337 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3338 fi; done
3339 rm -f conftest.s*
3340
3341 EOF
3342 cat >> $CONFIG_STATUS <<EOF
3343
3344 EOF
3345 cat >> $CONFIG_STATUS <<\EOF
3346
3347 exit 0
3348 EOF
3349 chmod +x $CONFIG_STATUS
3350 rm -fr confdefs* $ac_clean_files
3351 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3352
3353 if test "$no_recursion" != yes; then
3354
3355   # Remove --cache-file and --srcdir arguments so they do not pile up.
3356   ac_sub_configure_args=
3357   ac_prev=
3358   for ac_arg in $ac_configure_args; do
3359     if test -n "$ac_prev"; then
3360       ac_prev=
3361       continue
3362     fi
3363     case "$ac_arg" in
3364     -cache-file | --cache-file | --cache-fil | --cache-fi \
3365     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3366       ac_prev=cache_file ;;
3367     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3368     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3369       ;;
3370     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3371       ac_prev=srcdir ;;
3372     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3373       ;;
3374     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3375     esac
3376   done
3377
3378   for ac_config_dir in machine; do
3379
3380     # Do not complain, so a configure script can configure whichever
3381     # parts of a large source tree are present.
3382     if test ! -d $srcdir/$ac_config_dir; then
3383       continue
3384     fi
3385
3386     echo configuring in $ac_config_dir
3387
3388     case "$srcdir" in
3389     .) ;;
3390     *)
3391       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3392       else
3393         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3394       fi
3395       ;;
3396     esac
3397
3398     ac_popdir=`pwd`
3399     cd $ac_config_dir
3400
3401       # A "../" for each directory in /$ac_config_dir.
3402       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3403
3404     case "$srcdir" in
3405     .) # No --srcdir option.  We are building in place.
3406       ac_sub_srcdir=$srcdir ;;
3407     /*) # Absolute path.
3408       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3409     *) # Relative path.
3410       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3411     esac
3412
3413     # Check for guested configure; otherwise get Cygnus style configure.
3414     if test -f $ac_sub_srcdir/configure; then
3415       ac_sub_configure=$ac_sub_srcdir/configure
3416     elif test -f $ac_sub_srcdir/configure.in; then
3417       ac_sub_configure=$ac_configure
3418     else
3419       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3420       ac_sub_configure=
3421     fi
3422
3423     # The recursion is here.
3424     if test -n "$ac_sub_configure"; then
3425
3426       # Make the cache file name correct relative to the subdirectory.
3427       case "$cache_file" in
3428       /*) ac_sub_cache_file=$cache_file ;;
3429       *) # Relative path.
3430         ac_sub_cache_file="$ac_dots$cache_file" ;;
3431       esac
3432   case "$ac_given_INSTALL" in
3433         [/$]*) INSTALL="$ac_given_INSTALL" ;;
3434         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3435         esac
3436
3437       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3438       # The eval makes quoting arguments work.
3439       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3440       then :
3441       else
3442         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3443       fi
3444     fi
3445
3446     cd $ac_popdir
3447   done
3448 fi
3449