OSDN Git Service

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