OSDN Git Service

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