OSDN Git Service

* Makefile.in: Rebuilt.
[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   --with-target-subdir=SUBDIR      Configuring with a cross compiler"
21 ac_help="$ac_help
22   --with-cross-host=HOST           Configuring with a cross compiler"
23 ac_help="$ac_help
24   --enable-maintainer-mode enable make rules and dependencies not useful
25                           (and sometimes confusing) to the casual installer"
26 ac_help="$ac_help
27   --enable-threads=TYPE    choose threading package"
28 ac_help="$ac_help
29   --enable-java-gc=TYPE    choose garbage collector [boehm]"
30 ac_help="$ac_help
31   --with-ecos      Enable runtime eCos target support."
32
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
36 build=NONE
37 cache_file=./config.cache
38 exec_prefix=NONE
39 host=NONE
40 no_create=
41 nonopt=NONE
42 no_recursion=
43 prefix=NONE
44 program_prefix=NONE
45 program_suffix=NONE
46 program_transform_name=s,x,x,
47 silent=
48 site=
49 srcdir=
50 target=NONE
51 verbose=
52 x_includes=NONE
53 x_libraries=NONE
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
66
67 # Initialize some other variables.
68 subdirs=
69 MFLAGS= MAKEFLAGS=
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
72 ac_max_here_lines=12
73
74 ac_prev=
75 for ac_option
76 do
77
78   # If the previous option needs an argument, assign it.
79   if test -n "$ac_prev"; then
80     eval "$ac_prev=\$ac_option"
81     ac_prev=
82     continue
83   fi
84
85   case "$ac_option" in
86   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87   *) ac_optarg= ;;
88   esac
89
90   # Accept the important Cygnus configure options, so we can diagnose typos.
91
92   case "$ac_option" in
93
94   -bindir | --bindir | --bindi | --bind | --bin | --bi)
95     ac_prev=bindir ;;
96   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97     bindir="$ac_optarg" ;;
98
99   -build | --build | --buil | --bui | --bu)
100     ac_prev=build ;;
101   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102     build="$ac_optarg" ;;
103
104   -cache-file | --cache-file | --cache-fil | --cache-fi \
105   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106     ac_prev=cache_file ;;
107   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109     cache_file="$ac_optarg" ;;
110
111   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112     ac_prev=datadir ;;
113   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114   | --da=*)
115     datadir="$ac_optarg" ;;
116
117   -disable-* | --disable-*)
118     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119     # Reject names that are not valid shell variable names.
120     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122     fi
123     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124     eval "enable_${ac_feature}=no" ;;
125
126   -enable-* | --enable-*)
127     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128     # Reject names that are not valid shell variable names.
129     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131     fi
132     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133     case "$ac_option" in
134       *=*) ;;
135       *) ac_optarg=yes ;;
136     esac
137     eval "enable_${ac_feature}='$ac_optarg'" ;;
138
139   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141   | --exec | --exe | --ex)
142     ac_prev=exec_prefix ;;
143   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145   | --exec=* | --exe=* | --ex=*)
146     exec_prefix="$ac_optarg" ;;
147
148   -gas | --gas | --ga | --g)
149     # Obsolete; use --with-gas.
150     with_gas=yes ;;
151
152   -help | --help | --hel | --he)
153     # Omit some internal or obsolete options to make the list less imposing.
154     # This message is too long to be a string in the A/UX 3.1 sh.
155     cat << EOF
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
158 Configuration:
159   --cache-file=FILE       cache test results in FILE
160   --help                  print this message
161   --no-create             do not create output files
162   --quiet, --silent       do not print \`checking...' messages
163   --version               print the version of autoconf that created configure
164 Directory and file names:
165   --prefix=PREFIX         install architecture-independent files in PREFIX
166                           [$ac_default_prefix]
167   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
168                           [same as prefix]
169   --bindir=DIR            user executables in DIR [EPREFIX/bin]
170   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
171   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
172   --datadir=DIR           read-only architecture-independent data in DIR
173                           [PREFIX/share]
174   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
175   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
176                           [PREFIX/com]
177   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
178   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
179   --includedir=DIR        C header files in DIR [PREFIX/include]
180   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
181   --infodir=DIR           info documentation in DIR [PREFIX/info]
182   --mandir=DIR            man documentation in DIR [PREFIX/man]
183   --srcdir=DIR            find the sources in DIR [configure dir or ..]
184   --program-prefix=PREFIX prepend PREFIX to installed program names
185   --program-suffix=SUFFIX append SUFFIX to installed program names
186   --program-transform-name=PROGRAM
187                           run sed PROGRAM on installed program names
188 EOF
189     cat << EOF
190 Host type:
191   --build=BUILD           configure for building on BUILD [BUILD=HOST]
192   --host=HOST             configure for HOST [guessed]
193   --target=TARGET         configure for TARGET [TARGET=HOST]
194 Features and packages:
195   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
196   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
197   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
198   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
199   --x-includes=DIR        X include files are in DIR
200   --x-libraries=DIR       X library files are in DIR
201 EOF
202     if test -n "$ac_help"; then
203       echo "--enable and --with options recognized:$ac_help"
204     fi
205     exit 0 ;;
206
207   -host | --host | --hos | --ho)
208     ac_prev=host ;;
209   -host=* | --host=* | --hos=* | --ho=*)
210     host="$ac_optarg" ;;
211
212   -includedir | --includedir | --includedi | --included | --include \
213   | --includ | --inclu | --incl | --inc)
214     ac_prev=includedir ;;
215   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216   | --includ=* | --inclu=* | --incl=* | --inc=*)
217     includedir="$ac_optarg" ;;
218
219   -infodir | --infodir | --infodi | --infod | --info | --inf)
220     ac_prev=infodir ;;
221   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222     infodir="$ac_optarg" ;;
223
224   -libdir | --libdir | --libdi | --libd)
225     ac_prev=libdir ;;
226   -libdir=* | --libdir=* | --libdi=* | --libd=*)
227     libdir="$ac_optarg" ;;
228
229   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230   | --libexe | --libex | --libe)
231     ac_prev=libexecdir ;;
232   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233   | --libexe=* | --libex=* | --libe=*)
234     libexecdir="$ac_optarg" ;;
235
236   -localstatedir | --localstatedir | --localstatedi | --localstated \
237   | --localstate | --localstat | --localsta | --localst \
238   | --locals | --local | --loca | --loc | --lo)
239     ac_prev=localstatedir ;;
240   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243     localstatedir="$ac_optarg" ;;
244
245   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246     ac_prev=mandir ;;
247   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248     mandir="$ac_optarg" ;;
249
250   -nfp | --nfp | --nf)
251     # Obsolete; use --without-fp.
252     with_fp=no ;;
253
254   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255   | --no-cr | --no-c)
256     no_create=yes ;;
257
258   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260     no_recursion=yes ;;
261
262   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264   | --oldin | --oldi | --old | --ol | --o)
265     ac_prev=oldincludedir ;;
266   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269     oldincludedir="$ac_optarg" ;;
270
271   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272     ac_prev=prefix ;;
273   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274     prefix="$ac_optarg" ;;
275
276   -program-prefix | --program-prefix | --program-prefi | --program-pref \
277   | --program-pre | --program-pr | --program-p)
278     ac_prev=program_prefix ;;
279   -program-prefix=* | --program-prefix=* | --program-prefi=* \
280   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281     program_prefix="$ac_optarg" ;;
282
283   -program-suffix | --program-suffix | --program-suffi | --program-suff \
284   | --program-suf | --program-su | --program-s)
285     ac_prev=program_suffix ;;
286   -program-suffix=* | --program-suffix=* | --program-suffi=* \
287   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288     program_suffix="$ac_optarg" ;;
289
290   -program-transform-name | --program-transform-name \
291   | --program-transform-nam | --program-transform-na \
292   | --program-transform-n | --program-transform- \
293   | --program-transform | --program-transfor \
294   | --program-transfo | --program-transf \
295   | --program-trans | --program-tran \
296   | --progr-tra | --program-tr | --program-t)
297     ac_prev=program_transform_name ;;
298   -program-transform-name=* | --program-transform-name=* \
299   | --program-transform-nam=* | --program-transform-na=* \
300   | --program-transform-n=* | --program-transform-=* \
301   | --program-transform=* | --program-transfor=* \
302   | --program-transfo=* | --program-transf=* \
303   | --program-trans=* | --program-tran=* \
304   | --progr-tra=* | --program-tr=* | --program-t=*)
305     program_transform_name="$ac_optarg" ;;
306
307   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308   | -silent | --silent | --silen | --sile | --sil)
309     silent=yes ;;
310
311   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312     ac_prev=sbindir ;;
313   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314   | --sbi=* | --sb=*)
315     sbindir="$ac_optarg" ;;
316
317   -sharedstatedir | --sharedstatedir | --sharedstatedi \
318   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319   | --sharedst | --shareds | --shared | --share | --shar \
320   | --sha | --sh)
321     ac_prev=sharedstatedir ;;
322   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325   | --sha=* | --sh=*)
326     sharedstatedir="$ac_optarg" ;;
327
328   -site | --site | --sit)
329     ac_prev=site ;;
330   -site=* | --site=* | --sit=*)
331     site="$ac_optarg" ;;
332
333   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334     ac_prev=srcdir ;;
335   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336     srcdir="$ac_optarg" ;;
337
338   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339   | --syscon | --sysco | --sysc | --sys | --sy)
340     ac_prev=sysconfdir ;;
341   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343     sysconfdir="$ac_optarg" ;;
344
345   -target | --target | --targe | --targ | --tar | --ta | --t)
346     ac_prev=target ;;
347   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348     target="$ac_optarg" ;;
349
350   -v | -verbose | --verbose | --verbos | --verbo | --verb)
351     verbose=yes ;;
352
353   -version | --version | --versio | --versi | --vers)
354     echo "configure generated by autoconf version 2.13"
355     exit 0 ;;
356
357   -with-* | --with-*)
358     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359     # Reject names that are not valid shell variable names.
360     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362     fi
363     ac_package=`echo $ac_package| sed 's/-/_/g'`
364     case "$ac_option" in
365       *=*) ;;
366       *) ac_optarg=yes ;;
367     esac
368     eval "with_${ac_package}='$ac_optarg'" ;;
369
370   -without-* | --without-*)
371     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372     # Reject names that are not valid shell variable names.
373     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375     fi
376     ac_package=`echo $ac_package| sed 's/-/_/g'`
377     eval "with_${ac_package}=no" ;;
378
379   --x)
380     # Obsolete; use --with-x.
381     with_x=yes ;;
382
383   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384   | --x-incl | --x-inc | --x-in | --x-i)
385     ac_prev=x_includes ;;
386   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388     x_includes="$ac_optarg" ;;
389
390   -x-libraries | --x-libraries | --x-librarie | --x-librari \
391   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392     ac_prev=x_libraries ;;
393   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395     x_libraries="$ac_optarg" ;;
396
397   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398     ;;
399
400   *)
401     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402       echo "configure: warning: $ac_option: invalid host type" 1>&2
403     fi
404     if test "x$nonopt" != xNONE; then
405       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406     fi
407     nonopt="$ac_option"
408     ;;
409
410   esac
411 done
412
413 if test -n "$ac_prev"; then
414   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 fi
416
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418
419 # File descriptor usage:
420 # 0 standard input
421 # 1 file creation
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
428   exec 6>/dev/null
429 else
430   exec 6>&1
431 fi
432 exec 5>./config.log
433
434 echo "\
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
437 " 1>&5
438
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
441 ac_configure_args=
442 for ac_arg
443 do
444   case "$ac_arg" in
445   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446   | --no-cr | --no-c) ;;
447   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452   esac
453 done
454
455 # NLS nuisances.
456 # Only set these to C if already set.  These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
464
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 echo > confdefs.h
469
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=gc_mark.h
473
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476   ac_srcdir_defaulted=yes
477   # Try the directory containing this script, then its parent.
478   ac_prog=$0
479   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481   srcdir=$ac_confdir
482   if test ! -r $srcdir/$ac_unique_file; then
483     srcdir=..
484   fi
485 else
486   ac_srcdir_defaulted=no
487 fi
488 if test ! -r $srcdir/$ac_unique_file; then
489   if test "$ac_srcdir_defaulted" = yes; then
490     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491   else
492     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493   fi
494 fi
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499   if test "x$prefix" != xNONE; then
500     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501   else
502     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503   fi
504 fi
505 for ac_site_file in $CONFIG_SITE; do
506   if test -r "$ac_site_file"; then
507     echo "loading site script $ac_site_file"
508     . "$ac_site_file"
509   fi
510 done
511
512 if test -r "$cache_file"; then
513   echo "loading cache $cache_file"
514   . $cache_file
515 else
516   echo "creating cache $cache_file"
517   > $cache_file
518 fi
519
520 ac_ext=c
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp='$CPP $CPPFLAGS'
523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling=$ac_cv_prog_cc_cross
526
527 ac_exeext=
528 ac_objext=o
529 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
530   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532     ac_n= ac_c='
533 ' ac_t='        '
534   else
535     ac_n=-n ac_c= ac_t=
536   fi
537 else
538   ac_n= ac_c='\c' ac_t=
539 fi
540
541
542
543 ac_aux_dir=
544 for ac_dir in .. $srcdir/..; do
545   if test -f $ac_dir/install-sh; then
546     ac_aux_dir=$ac_dir
547     ac_install_sh="$ac_aux_dir/install-sh -c"
548     break
549   elif test -f $ac_dir/install.sh; then
550     ac_aux_dir=$ac_dir
551     ac_install_sh="$ac_aux_dir/install.sh -c"
552     break
553   fi
554 done
555 if test -z "$ac_aux_dir"; then
556   { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
557 fi
558 ac_config_guess=$ac_aux_dir/config.guess
559 ac_config_sub=$ac_aux_dir/config.sub
560 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
561
562
563
564 # Do some error checking and defaulting for the host and target type.
565 # The inputs are:
566 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
567 #
568 # The rules are:
569 # 1. You are not allowed to specify --host, --target, and nonopt at the
570 #    same time.
571 # 2. Host defaults to nonopt.
572 # 3. If nonopt is not specified, then host defaults to the current host,
573 #    as determined by config.guess.
574 # 4. Target and build default to nonopt.
575 # 5. If nonopt is not specified, then target and build default to host.
576
577 # The aliases save the names the user supplied, while $host etc.
578 # will get canonicalized.
579 case $host---$target---$nonopt in
580 NONE---*---* | *---NONE---* | *---*---NONE) ;;
581 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
582 esac
583
584
585 # Make sure we can run config.sub.
586 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
587 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
588 fi
589
590 echo $ac_n "checking host system type""... $ac_c" 1>&6
591 echo "configure:592: checking host system type" >&5
592
593 host_alias=$host
594 case "$host_alias" in
595 NONE)
596   case $nonopt in
597   NONE)
598     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
599     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
600     fi ;;
601   *) host_alias=$nonopt ;;
602   esac ;;
603 esac
604
605 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
606 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
607 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
608 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
609 echo "$ac_t""$host" 1>&6
610
611 echo $ac_n "checking target system type""... $ac_c" 1>&6
612 echo "configure:613: checking target system type" >&5
613
614 target_alias=$target
615 case "$target_alias" in
616 NONE)
617   case $nonopt in
618   NONE) target_alias=$host_alias ;;
619   *) target_alias=$nonopt ;;
620   esac ;;
621 esac
622
623 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
624 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
625 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
626 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
627 echo "$ac_t""$target" 1>&6
628
629 echo $ac_n "checking build system type""... $ac_c" 1>&6
630 echo "configure:631: checking build system type" >&5
631
632 build_alias=$build
633 case "$build_alias" in
634 NONE)
635   case $nonopt in
636   NONE) build_alias=$host_alias ;;
637   *) build_alias=$nonopt ;;
638   esac ;;
639 esac
640
641 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
642 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
643 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
644 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
645 echo "$ac_t""$build" 1>&6
646
647 test "$host_alias" != "$target_alias" &&
648   test "$program_prefix$program_suffix$program_transform_name" = \
649     NONENONEs,x,x, &&
650   program_prefix=${target_alias}-
651
652
653 # Find a good install program.  We prefer a C program (faster),
654 # so one script is as good as another.  But avoid the broken or
655 # incompatible versions:
656 # SysV /etc/install, /usr/sbin/install
657 # SunOS /usr/etc/install
658 # IRIX /sbin/install
659 # AIX /bin/install
660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
663 # ./install, which can be erroneously created by make from ./install.sh.
664 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
665 echo "configure:666: checking for a BSD compatible install" >&5
666 if test -z "$INSTALL"; then
667 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
668   echo $ac_n "(cached) $ac_c" 1>&6
669 else
670     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
671   for ac_dir in $PATH; do
672     # Account for people who put trailing slashes in PATH elements.
673     case "$ac_dir/" in
674     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
675     *)
676       # OSF1 and SCO ODT 3.0 have their own names for install.
677       # Don't use installbsd from OSF since it installs stuff as root
678       # by default.
679       for ac_prog in ginstall scoinst install; do
680         if test -f $ac_dir/$ac_prog; then
681           if test $ac_prog = install &&
682             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
683             # AIX install.  It has an incompatible calling convention.
684             :
685           else
686             ac_cv_path_install="$ac_dir/$ac_prog -c"
687             break 2
688           fi
689         fi
690       done
691       ;;
692     esac
693   done
694   IFS="$ac_save_IFS"
695
696 fi
697   if test "${ac_cv_path_install+set}" = set; then
698     INSTALL="$ac_cv_path_install"
699   else
700     # As a last resort, use the slow shell script.  We don't cache a
701     # path for INSTALL within a source directory, because that will
702     # break other packages using the cache if that directory is
703     # removed, or if the path is relative.
704     INSTALL="$ac_install_sh"
705   fi
706 fi
707 echo "$ac_t""$INSTALL" 1>&6
708
709 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
710 # It thinks the first close brace ends the variable substitution.
711 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
712
713 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
714
715 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
716
717 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
718 echo "configure:719: checking whether build environment is sane" >&5
719 # Just in case
720 sleep 1
721 echo timestamp > conftestfile
722 # Do `set' in a subshell so we don't clobber the current shell's
723 # arguments.  Must try -L first in case configure is actually a
724 # symlink; some systems play weird games with the mod time of symlinks
725 # (eg FreeBSD returns the mod time of the symlink's containing
726 # directory).
727 if (
728    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
729    if test "$*" = "X"; then
730       # -L didn't work.
731       set X `ls -t $srcdir/configure conftestfile`
732    fi
733    if test "$*" != "X $srcdir/configure conftestfile" \
734       && test "$*" != "X conftestfile $srcdir/configure"; then
735
736       # If neither matched, then we have a broken ls.  This can happen
737       # if, for instance, CONFIG_SHELL is bash and it inherits a
738       # broken ls alias from the environment.  This has actually
739       # happened.  Such a system could not be considered "sane".
740       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
741 alias in your environment" 1>&2; exit 1; }
742    fi
743
744    test "$2" = conftestfile
745    )
746 then
747    # Ok.
748    :
749 else
750    { echo "configure: error: newly created file is older than distributed files!
751 Check your system clock" 1>&2; exit 1; }
752 fi
753 rm -f conftest*
754 echo "$ac_t""yes" 1>&6
755 if test "$program_transform_name" = s,x,x,; then
756   program_transform_name=
757 else
758   # Double any \ or $.  echo might interpret backslashes.
759   cat <<\EOF_SED > conftestsed
760 s,\\,\\\\,g; s,\$,$$,g
761 EOF_SED
762   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
763   rm -f conftestsed
764 fi
765 test "$program_prefix" != NONE &&
766   program_transform_name="s,^,${program_prefix},; $program_transform_name"
767 # Use a double $ so make ignores it.
768 test "$program_suffix" != NONE &&
769   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
770
771 # sed with no file args requires a program.
772 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
773
774 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
775 echo "configure:776: checking whether ${MAKE-make} sets \${MAKE}" >&5
776 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
777 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
778   echo $ac_n "(cached) $ac_c" 1>&6
779 else
780   cat > conftestmake <<\EOF
781 all:
782         @echo 'ac_maketemp="${MAKE}"'
783 EOF
784 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
785 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
786 if test -n "$ac_maketemp"; then
787   eval ac_cv_prog_make_${ac_make}_set=yes
788 else
789   eval ac_cv_prog_make_${ac_make}_set=no
790 fi
791 rm -f conftestmake
792 fi
793 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
794   echo "$ac_t""yes" 1>&6
795   SET_MAKE=
796 else
797   echo "$ac_t""no" 1>&6
798   SET_MAKE="MAKE=${MAKE-make}"
799 fi
800
801 if test $host != $build; then
802   ac_tool_prefix=${host_alias}-
803 else
804   ac_tool_prefix=
805 fi
806
807 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
808 echo "configure:809: checking for Cygwin environment" >&5
809 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
810   echo $ac_n "(cached) $ac_c" 1>&6
811 else
812   cat > conftest.$ac_ext <<EOF
813 #line 814 "configure"
814 #include "confdefs.h"
815
816 int main() {
817
818 #ifndef __CYGWIN__
819 #define __CYGWIN__ __CYGWIN32__
820 #endif
821 return __CYGWIN__;
822 ; return 0; }
823 EOF
824 if { (eval echo configure:825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
825   rm -rf conftest*
826   ac_cv_cygwin=yes
827 else
828   echo "configure: failed program was:" >&5
829   cat conftest.$ac_ext >&5
830   rm -rf conftest*
831   ac_cv_cygwin=no
832 fi
833 rm -f conftest*
834 rm -f conftest*
835 fi
836
837 echo "$ac_t""$ac_cv_cygwin" 1>&6
838 CYGWIN=
839 test "$ac_cv_cygwin" = yes && CYGWIN=yes
840 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
841 echo "configure:842: checking for mingw32 environment" >&5
842 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
843   echo $ac_n "(cached) $ac_c" 1>&6
844 else
845   cat > conftest.$ac_ext <<EOF
846 #line 847 "configure"
847 #include "confdefs.h"
848
849 int main() {
850 return __MINGW32__;
851 ; return 0; }
852 EOF
853 if { (eval echo configure:854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
854   rm -rf conftest*
855   ac_cv_mingw32=yes
856 else
857   echo "configure: failed program was:" >&5
858   cat conftest.$ac_ext >&5
859   rm -rf conftest*
860   ac_cv_mingw32=no
861 fi
862 rm -f conftest*
863 rm -f conftest*
864 fi
865
866 echo "$ac_t""$ac_cv_mingw32" 1>&6
867 MINGW32=
868 test "$ac_cv_mingw32" = yes && MINGW32=yes
869
870 # Check whether --enable-multilib or --disable-multilib was given.
871 if test "${enable_multilib+set}" = set; then
872   enableval="$enable_multilib"
873   case "${enableval}" in
874   yes) multilib=yes ;;
875   no)  multilib=no ;;
876   *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
877  esac
878 else
879   multilib=yes
880 fi
881
882
883 if test "${srcdir}" = "."; then
884   if test "${with_target_subdir}" != "."; then
885     boehm_gc_basedir="${srcdir}/${with_multisrctop}../."
886   else
887     boehm_gc_basedir="${srcdir}/${with_multisrctop}."
888   fi
889 else
890   boehm_gc_basedir="${srcdir}/."
891 fi
892
893
894
895 # Make sure we can run config.sub.
896 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
897 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
898 fi
899
900 echo $ac_n "checking host system type""... $ac_c" 1>&6
901 echo "configure:902: checking host system type" >&5
902
903 host_alias=$host
904 case "$host_alias" in
905 NONE)
906   case $nonopt in
907   NONE)
908     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
909     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
910     fi ;;
911   *) host_alias=$nonopt ;;
912   esac ;;
913 esac
914
915 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
916 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
917 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
918 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
919 echo "$ac_t""$host" 1>&6
920
921
922
923 PACKAGE=boehm-gc
924
925 VERSION=4.13a2
926
927 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
928   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
929 fi
930
931
932
933 missing_dir=`cd $ac_aux_dir && pwd`
934 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
935 echo "configure:936: checking for working aclocal" >&5
936 # Run test in a subshell; some versions of sh will print an error if
937 # an executable is not found, even if stderr is redirected.
938 # Redirect stdin to placate older versions of autoconf.  Sigh.
939 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
940    ACLOCAL=aclocal
941    echo "$ac_t""found" 1>&6
942 else
943    ACLOCAL="$missing_dir/missing aclocal"
944    echo "$ac_t""missing" 1>&6
945 fi
946
947 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
948 echo "configure:949: checking for working autoconf" >&5
949 # Run test in a subshell; some versions of sh will print an error if
950 # an executable is not found, even if stderr is redirected.
951 # Redirect stdin to placate older versions of autoconf.  Sigh.
952 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
953    AUTOCONF=autoconf
954    echo "$ac_t""found" 1>&6
955 else
956    AUTOCONF="$missing_dir/missing autoconf"
957    echo "$ac_t""missing" 1>&6
958 fi
959
960 echo $ac_n "checking for working automake""... $ac_c" 1>&6
961 echo "configure:962: checking for working automake" >&5
962 # Run test in a subshell; some versions of sh will print an error if
963 # an executable is not found, even if stderr is redirected.
964 # Redirect stdin to placate older versions of autoconf.  Sigh.
965 if (automake --version) < /dev/null > /dev/null 2>&1; then
966    AUTOMAKE=automake
967    echo "$ac_t""found" 1>&6
968 else
969    AUTOMAKE="$missing_dir/missing automake"
970    echo "$ac_t""missing" 1>&6
971 fi
972
973 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
974 echo "configure:975: checking for working autoheader" >&5
975 # Run test in a subshell; some versions of sh will print an error if
976 # an executable is not found, even if stderr is redirected.
977 # Redirect stdin to placate older versions of autoconf.  Sigh.
978 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
979    AUTOHEADER=autoheader
980    echo "$ac_t""found" 1>&6
981 else
982    AUTOHEADER="$missing_dir/missing autoheader"
983    echo "$ac_t""missing" 1>&6
984 fi
985
986 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
987 echo "configure:988: checking for working makeinfo" >&5
988 # Run test in a subshell; some versions of sh will print an error if
989 # an executable is not found, even if stderr is redirected.
990 # Redirect stdin to placate older versions of autoconf.  Sigh.
991 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
992    MAKEINFO=makeinfo
993    echo "$ac_t""found" 1>&6
994 else
995    MAKEINFO="$missing_dir/missing makeinfo"
996    echo "$ac_t""missing" 1>&6
997 fi
998
999
1000
1001 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1002 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1003 # are probably using a cross compiler, which will not be able to fully
1004 # link an executable.  This should really be fixed in autoconf
1005 # itself.
1006
1007
1008
1009 # Extract the first word of "gcc", so it can be a program name with args.
1010 set dummy gcc; ac_word=$2
1011 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1012 echo "configure:1013: checking for $ac_word" >&5
1013 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1014   echo $ac_n "(cached) $ac_c" 1>&6
1015 else
1016   if test -n "$CC"; then
1017   ac_cv_prog_CC="$CC" # Let the user override the test.
1018 else
1019   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1020   ac_dummy="$PATH"
1021   for ac_dir in $ac_dummy; do
1022     test -z "$ac_dir" && ac_dir=.
1023     if test -f $ac_dir/$ac_word; then
1024       ac_cv_prog_CC="gcc"
1025       break
1026     fi
1027   done
1028   IFS="$ac_save_ifs"
1029 fi
1030 fi
1031 CC="$ac_cv_prog_CC"
1032 if test -n "$CC"; then
1033   echo "$ac_t""$CC" 1>&6
1034 else
1035   echo "$ac_t""no" 1>&6
1036 fi
1037
1038 if test -z "$CC"; then
1039   # Extract the first word of "cc", so it can be a program name with args.
1040 set dummy cc; ac_word=$2
1041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042 echo "configure:1043: checking for $ac_word" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1044   echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046   if test -n "$CC"; then
1047   ac_cv_prog_CC="$CC" # Let the user override the test.
1048 else
1049   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1050   ac_prog_rejected=no
1051   ac_dummy="$PATH"
1052   for ac_dir in $ac_dummy; do
1053     test -z "$ac_dir" && ac_dir=.
1054     if test -f $ac_dir/$ac_word; then
1055       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1056         ac_prog_rejected=yes
1057         continue
1058       fi
1059       ac_cv_prog_CC="cc"
1060       break
1061     fi
1062   done
1063   IFS="$ac_save_ifs"
1064 if test $ac_prog_rejected = yes; then
1065   # We found a bogon in the path, so make sure we never use it.
1066   set dummy $ac_cv_prog_CC
1067   shift
1068   if test $# -gt 0; then
1069     # We chose a different compiler from the bogus one.
1070     # However, it has the same basename, so the bogon will be chosen
1071     # first if we set CC to just the basename; use the full file name.
1072     shift
1073     set dummy "$ac_dir/$ac_word" "$@"
1074     shift
1075     ac_cv_prog_CC="$@"
1076   fi
1077 fi
1078 fi
1079 fi
1080 CC="$ac_cv_prog_CC"
1081 if test -n "$CC"; then
1082   echo "$ac_t""$CC" 1>&6
1083 else
1084   echo "$ac_t""no" 1>&6
1085 fi
1086
1087   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1088 fi
1089
1090 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1091 echo "configure:1092: checking whether we are using GNU C" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1093   echo $ac_n "(cached) $ac_c" 1>&6
1094 else
1095   cat > conftest.c <<EOF
1096 #ifdef __GNUC__
1097   yes;
1098 #endif
1099 EOF
1100 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1101   ac_cv_prog_gcc=yes
1102 else
1103   ac_cv_prog_gcc=no
1104 fi
1105 fi
1106
1107 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1108
1109 if test $ac_cv_prog_gcc = yes; then
1110   GCC=yes
1111   ac_test_CFLAGS="${CFLAGS+set}"
1112   ac_save_CFLAGS="$CFLAGS"
1113   CFLAGS=
1114   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1115 echo "configure:1116: checking whether ${CC-cc} accepts -g" >&5
1116 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1117   echo $ac_n "(cached) $ac_c" 1>&6
1118 else
1119   echo 'void f(){}' > conftest.c
1120 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1121   ac_cv_prog_cc_g=yes
1122 else
1123   ac_cv_prog_cc_g=no
1124 fi
1125 rm -f conftest*
1126
1127 fi
1128
1129 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1130   if test "$ac_test_CFLAGS" = set; then
1131     CFLAGS="$ac_save_CFLAGS"
1132   elif test $ac_cv_prog_cc_g = yes; then
1133     CFLAGS="-g -O2"
1134   else
1135     CFLAGS="-O2"
1136   fi
1137 else
1138   GCC=
1139   test "${CFLAGS+set}" = set || CFLAGS="-g"
1140 fi
1141
1142
1143 # Likewise for AC_PROG_CXX.
1144
1145
1146 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1147 do
1148 # Extract the first word of "$ac_prog", so it can be a program name with args.
1149 set dummy $ac_prog; ac_word=$2
1150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1151 echo "configure:1152: checking for $ac_word" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1153   echo $ac_n "(cached) $ac_c" 1>&6
1154 else
1155   if test -n "$CXX"; then
1156   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1157 else
1158   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1159   ac_dummy="$PATH"
1160   for ac_dir in $ac_dummy; do
1161     test -z "$ac_dir" && ac_dir=.
1162     if test -f $ac_dir/$ac_word; then
1163       ac_cv_prog_CXX="$ac_prog"
1164       break
1165     fi
1166   done
1167   IFS="$ac_save_ifs"
1168 fi
1169 fi
1170 CXX="$ac_cv_prog_CXX"
1171 if test -n "$CXX"; then
1172   echo "$ac_t""$CXX" 1>&6
1173 else
1174   echo "$ac_t""no" 1>&6
1175 fi
1176
1177 test -n "$CXX" && break
1178 done
1179 test -n "$CXX" || CXX="gcc"
1180
1181 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1182
1183 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether we are using GNU C++" >&5
1185 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1186   echo $ac_n "(cached) $ac_c" 1>&6
1187 else
1188   cat > conftest.C <<EOF
1189 #ifdef __GNUC__
1190   yes;
1191 #endif
1192 EOF
1193 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1194   ac_cv_prog_gxx=yes
1195 else
1196   ac_cv_prog_gxx=no
1197 fi
1198 fi
1199
1200 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1201
1202 if test $ac_cv_prog_gxx = yes; then
1203   GXX=yes
1204   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1205   ac_save_CXXFLAGS="$CXXFLAGS"
1206   CXXFLAGS=
1207   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1208 echo "configure:1209: checking whether ${CXX-g++} accepts -g" >&5
1209 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1210   echo $ac_n "(cached) $ac_c" 1>&6
1211 else
1212   echo 'void f(){}' > conftest.cc
1213 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1214   ac_cv_prog_cxx_g=yes
1215 else
1216   ac_cv_prog_cxx_g=no
1217 fi
1218 rm -f conftest*
1219
1220 fi
1221
1222 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1223   if test "$ac_test_CXXFLAGS" = set; then
1224     CXXFLAGS="$ac_save_CXXFLAGS"
1225   elif test $ac_cv_prog_cxx_g = yes; then
1226     CXXFLAGS="-g -O2"
1227   else
1228     CXXFLAGS="-O2"
1229   fi
1230 else
1231   GXX=
1232   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1233 fi
1234
1235
1236 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD).  If we don't
1237 # run it explicitly here, it will be run implicitly before
1238 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1239 # be run before AC_CANONICAL_HOST.
1240 echo $ac_n "checking build system type""... $ac_c" 1>&6
1241 echo "configure:1242: checking build system type" >&5
1242
1243 build_alias=$build
1244 case "$build_alias" in
1245 NONE)
1246   case $nonopt in
1247   NONE) build_alias=$host_alias ;;
1248   *) build_alias=$nonopt ;;
1249   esac ;;
1250 esac
1251
1252 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1253 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1254 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1255 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1256 echo "$ac_t""$build" 1>&6
1257
1258
1259 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1260 set dummy ${ac_tool_prefix}as; ac_word=$2
1261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1262 echo "configure:1263: checking for $ac_word" >&5
1263 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1264   echo $ac_n "(cached) $ac_c" 1>&6
1265 else
1266   if test -n "$AS"; then
1267   ac_cv_prog_AS="$AS" # Let the user override the test.
1268 else
1269   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1270   ac_dummy="$PATH"
1271   for ac_dir in $ac_dummy; do
1272     test -z "$ac_dir" && ac_dir=.
1273     if test -f $ac_dir/$ac_word; then
1274       ac_cv_prog_AS="${ac_tool_prefix}as"
1275       break
1276     fi
1277   done
1278   IFS="$ac_save_ifs"
1279   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1280 fi
1281 fi
1282 AS="$ac_cv_prog_AS"
1283 if test -n "$AS"; then
1284   echo "$ac_t""$AS" 1>&6
1285 else
1286   echo "$ac_t""no" 1>&6
1287 fi
1288
1289
1290
1291 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1292 set dummy ${ac_tool_prefix}ar; ac_word=$2
1293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1294 echo "configure:1295: checking for $ac_word" >&5
1295 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1296   echo $ac_n "(cached) $ac_c" 1>&6
1297 else
1298   if test -n "$AR"; then
1299   ac_cv_prog_AR="$AR" # Let the user override the test.
1300 else
1301   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1302   ac_dummy="$PATH"
1303   for ac_dir in $ac_dummy; do
1304     test -z "$ac_dir" && ac_dir=.
1305     if test -f $ac_dir/$ac_word; then
1306       ac_cv_prog_AR="${ac_tool_prefix}ar"
1307       break
1308     fi
1309   done
1310   IFS="$ac_save_ifs"
1311   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1312 fi
1313 fi
1314 AR="$ac_cv_prog_AR"
1315 if test -n "$AR"; then
1316   echo "$ac_t""$AR" 1>&6
1317 else
1318   echo "$ac_t""no" 1>&6
1319 fi
1320
1321
1322
1323 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1324 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1326 echo "configure:1327: checking for $ac_word" >&5
1327 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1328   echo $ac_n "(cached) $ac_c" 1>&6
1329 else
1330   if test -n "$RANLIB"; then
1331   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1332 else
1333   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1334   ac_dummy="$PATH"
1335   for ac_dir in $ac_dummy; do
1336     test -z "$ac_dir" && ac_dir=.
1337     if test -f $ac_dir/$ac_word; then
1338       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1339       break
1340     fi
1341   done
1342   IFS="$ac_save_ifs"
1343 fi
1344 fi
1345 RANLIB="$ac_cv_prog_RANLIB"
1346 if test -n "$RANLIB"; then
1347   echo "$ac_t""$RANLIB" 1>&6
1348 else
1349   echo "$ac_t""no" 1>&6
1350 fi
1351
1352
1353 if test -z "$ac_cv_prog_RANLIB"; then
1354 if test -n "$ac_tool_prefix"; then
1355   # Extract the first word of "ranlib", so it can be a program name with args.
1356 set dummy ranlib; ac_word=$2
1357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1358 echo "configure:1359: checking for $ac_word" >&5
1359 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1360   echo $ac_n "(cached) $ac_c" 1>&6
1361 else
1362   if test -n "$RANLIB"; then
1363   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1364 else
1365   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1366   ac_dummy="$PATH"
1367   for ac_dir in $ac_dummy; do
1368     test -z "$ac_dir" && ac_dir=.
1369     if test -f $ac_dir/$ac_word; then
1370       ac_cv_prog_RANLIB="ranlib"
1371       break
1372     fi
1373   done
1374   IFS="$ac_save_ifs"
1375   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1376 fi
1377 fi
1378 RANLIB="$ac_cv_prog_RANLIB"
1379 if test -n "$RANLIB"; then
1380   echo "$ac_t""$RANLIB" 1>&6
1381 else
1382   echo "$ac_t""no" 1>&6
1383 fi
1384
1385 else
1386   RANLIB=":"
1387 fi
1388 fi
1389
1390
1391 # Find a good install program.  We prefer a C program (faster),
1392 # so one script is as good as another.  But avoid the broken or
1393 # incompatible versions:
1394 # SysV /etc/install, /usr/sbin/install
1395 # SunOS /usr/etc/install
1396 # IRIX /sbin/install
1397 # AIX /bin/install
1398 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1399 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1400 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1401 # ./install, which can be erroneously created by make from ./install.sh.
1402 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1403 echo "configure:1404: checking for a BSD compatible install" >&5
1404 if test -z "$INSTALL"; then
1405 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1406   echo $ac_n "(cached) $ac_c" 1>&6
1407 else
1408     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1409   for ac_dir in $PATH; do
1410     # Account for people who put trailing slashes in PATH elements.
1411     case "$ac_dir/" in
1412     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1413     *)
1414       # OSF1 and SCO ODT 3.0 have their own names for install.
1415       # Don't use installbsd from OSF since it installs stuff as root
1416       # by default.
1417       for ac_prog in ginstall scoinst install; do
1418         if test -f $ac_dir/$ac_prog; then
1419           if test $ac_prog = install &&
1420             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1421             # AIX install.  It has an incompatible calling convention.
1422             :
1423           else
1424             ac_cv_path_install="$ac_dir/$ac_prog -c"
1425             break 2
1426           fi
1427         fi
1428       done
1429       ;;
1430     esac
1431   done
1432   IFS="$ac_save_IFS"
1433
1434 fi
1435   if test "${ac_cv_path_install+set}" = set; then
1436     INSTALL="$ac_cv_path_install"
1437   else
1438     # As a last resort, use the slow shell script.  We don't cache a
1439     # path for INSTALL within a source directory, because that will
1440     # break other packages using the cache if that directory is
1441     # removed, or if the path is relative.
1442     INSTALL="$ac_install_sh"
1443   fi
1444 fi
1445 echo "$ac_t""$INSTALL" 1>&6
1446
1447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1448 # It thinks the first close brace ends the variable substitution.
1449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1450
1451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1452
1453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1454
1455
1456 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1457 echo "configure:1458: checking whether to enable maintainer-specific portions of Makefiles" >&5
1458     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1459 if test "${enable_maintainer_mode+set}" = set; then
1460   enableval="$enable_maintainer_mode"
1461   USE_MAINTAINER_MODE=$enableval
1462 else
1463   USE_MAINTAINER_MODE=no
1464 fi
1465
1466   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1467   
1468
1469 if test $USE_MAINTAINER_MODE = yes; then
1470   MAINTAINER_MODE_TRUE=
1471   MAINTAINER_MODE_FALSE='#'
1472 else
1473   MAINTAINER_MODE_TRUE='#'
1474   MAINTAINER_MODE_FALSE=
1475 fi
1476   MAINT=$MAINTAINER_MODE_TRUE
1477   
1478
1479
1480 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1481 # at least currently, we never actually build a program, so we never
1482 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1483 # fails, because we are probably configuring with a cross compiler
1484 # which can't create executables.  So we include AC_EXEEXT to keep
1485 # automake happy, but we don't execute it, since we don't care about
1486 # the result.
1487 if false; then
1488   
1489
1490 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1491 echo "configure:1492: checking for executable suffix" >&5
1492 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1493   echo $ac_n "(cached) $ac_c" 1>&6
1494 else
1495   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1496   ac_cv_exeext=.exe
1497 else
1498   rm -f conftest*
1499   echo 'int main () { return 0; }' > conftest.$ac_ext
1500   ac_cv_exeext=
1501   if { (eval echo configure:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1502     for file in conftest.*; do
1503       case $file in
1504       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1505       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1506       esac
1507     done
1508   else
1509     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1510   fi
1511   rm -f conftest*
1512   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1513 fi
1514 fi
1515
1516 EXEEXT=""
1517 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1518 echo "$ac_t""${ac_cv_exeext}" 1>&6
1519 ac_exeext=$EXEEXT
1520
1521 fi
1522
1523 . ${boehm_gc_basedir}/configure.host
1524
1525 case ${boehm_gc_basedir} in
1526 /* | A-Za-z:/\\*) boehm_gc_flagbasedir=${boehm_gc_basedir} ;;
1527 *) boehm_gc_flagbasedir='$(top_builddir)/'${boehm_gc_basedir} ;;
1528 esac
1529
1530 boehm_gc_cflags="${boehm_gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${boehm_gc_flagbasedir}/libc/include"
1531 case "${host}" in
1532   *-*-cygwin32*)
1533     boehm_gc_cflags="${boehm_gc_cflags} -I${boehm_gc_flagbasedir}/../winsup/include"
1534     ;;
1535 esac
1536
1537 boehm_gc_cflags="${boehm_gc_cflags} -fno-builtin"
1538
1539 BOEHM_GC_CFLAGS=${boehm_gc_cflags}
1540
1541
1542
1543 # Check whether --with-target-subdir or --without-target-subdir was given.
1544 if test "${with_target_subdir+set}" = set; then
1545   withval="$with_target_subdir"
1546   :
1547 fi
1548
1549 # Check whether --with-cross-host or --without-cross-host was given.
1550 if test "${with_cross_host+set}" = set; then
1551   withval="$with_cross_host"
1552   :
1553 fi
1554
1555
1556 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1557 echo "configure:1558: checking whether to enable maintainer-specific portions of Makefiles" >&5
1558     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1559 if test "${enable_maintainer_mode+set}" = set; then
1560   enableval="$enable_maintainer_mode"
1561   USE_MAINTAINER_MODE=$enableval
1562 else
1563   USE_MAINTAINER_MODE=no
1564 fi
1565
1566   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1567   
1568
1569 if test $USE_MAINTAINER_MODE = yes; then
1570   MAINTAINER_MODE_TRUE=
1571   MAINTAINER_MODE_FALSE='#'
1572 else
1573   MAINTAINER_MODE_TRUE='#'
1574   MAINTAINER_MODE_FALSE=
1575 fi
1576   MAINT=$MAINTAINER_MODE_TRUE
1577   
1578
1579 # automake wants to see AC_EXEEXT.  But we don't need it.  And having
1580 # it is actually a problem, because the compiler we're passed can't
1581 # necessarily do a full link.  So we fool automake here.
1582 if test "x" = "y"; then
1583    
1584
1585 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1586 echo "configure:1587: checking for executable suffix" >&5
1587 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1588   echo $ac_n "(cached) $ac_c" 1>&6
1589 else
1590   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1591   ac_cv_exeext=.exe
1592 else
1593   rm -f conftest*
1594   echo 'int main () { return 0; }' > conftest.$ac_ext
1595   ac_cv_exeext=
1596   if { (eval echo configure:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1597     for file in conftest.*; do
1598       case $file in
1599       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1600       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1601       esac
1602     done
1603   else
1604     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1605   fi
1606   rm -f conftest*
1607   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1608 fi
1609 fi
1610
1611 EXEEXT=""
1612 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1613 echo "$ac_t""${ac_cv_exeext}" 1>&6
1614 ac_exeext=$EXEEXT
1615
1616 fi
1617
1618 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
1619 echo "configure:1620: checking for threads package to use" >&5
1620 # Check whether --enable-threads or --disable-threads was given.
1621 if test "${enable_threads+set}" = set; then
1622   enableval="$enable_threads"
1623   THREADS=$enableval
1624 else
1625     THREADS=no
1626 fi
1627
1628
1629 if test "$THREADS" = yes; then
1630    case "$host" in
1631     *-*-vxworks*)
1632        THREADS=vxworks
1633        ;;
1634     *-*-linux*)
1635        # FIXME: this isn't correct in all cases.
1636        THREADS=posix
1637        ;;
1638     *-*-win*)
1639        THREADS=win32
1640        ;;
1641     *-*-irix*)
1642        THREADS=irix
1643        ;;
1644     *-*-solaris*)
1645        # FIXME: for now, choose POSIX, because we implement that.
1646        # Later, choose solaris threads.
1647        THREADS=posix
1648        ;;
1649     *)
1650        # For now.
1651        THREADS=none
1652        ;;
1653    esac
1654 fi
1655
1656 INCLUDES=
1657 case "$THREADS" in
1658  no | none | single)
1659     THREADS=none
1660     ;;
1661  posix | pthreads)
1662     THREADS=posix
1663     case "$host" in
1664      *-*-linux*)
1665         cat >> confdefs.h <<\EOF
1666 #define LINUX_THREADS 1
1667 EOF
1668
1669         cat >> confdefs.h <<\EOF
1670 #define _REENTRANT 1
1671 EOF
1672
1673         ;;
1674      *-*-solaris*)
1675         cat >> confdefs.h <<\EOF
1676 #define SOLARIS_THREADS 1
1677 EOF
1678
1679         cat >> confdefs.h <<\EOF
1680 #define _SOLARIS_PTHREADS 1
1681 EOF
1682
1683         ;;
1684     esac
1685     ;;
1686  qt)
1687     cat >> confdefs.h <<\EOF
1688 #define QUICK_THREADS 1
1689 EOF
1690
1691     INCLUDES="-I${boehm_gc_basedir}/../qthreads"
1692     ;;
1693  decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
1694     { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
1695     ;;
1696  *)
1697     { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
1698     ;;
1699 esac
1700 echo "$ac_t""$THREADS" 1>&6
1701
1702 # Check whether --enable-java-gc or --disable-java-gc was given.
1703 if test "${enable_java_gc+set}" = set; then
1704   enableval="$enable_java_gc"
1705   
1706   GC=$enableval
1707 else
1708   GC=boehm
1709 fi
1710
1711 target_all=
1712 if test "$GC" = "boehm"; then
1713    target_all=libgcjgc.a
1714 fi
1715
1716
1717 TARGET_ECOS="no"
1718 # Check whether --with-ecos or --without-ecos was given.
1719 if test "${with_ecos+set}" = set; then
1720   withval="$with_ecos"
1721   TARGET_ECOS="$with_ecos"
1722
1723 fi
1724
1725
1726 addobjs=
1727 CXXINCLUDES=
1728 case "$TARGET_ECOS" in
1729    no)
1730       ;;
1731    *)
1732       cat >> confdefs.h <<\EOF
1733 #define ECOS 1
1734 EOF
1735
1736       CXXINCLUDES="-I${TARGET_ECOS}/include"
1737       addobjs="$addobjs ecos.o"
1738       ;;
1739 esac
1740
1741
1742
1743
1744
1745 machdep=
1746 case "$host" in
1747  mipstx39-*-elf*)
1748     machdep="mips_ultrix_mach_dep.o"
1749     cat >> confdefs.h <<\EOF
1750 #define STACKBASE __stackbase
1751 EOF
1752
1753     cat >> confdefs.h <<\EOF
1754 #define DATASTART_IS_ETEXT 1
1755 EOF
1756
1757     ;;
1758  sparc-sun-solaris2.3*)
1759     machdep="sparc_mach_dep.o"
1760     cat >> confdefs.h <<\EOF
1761 #define SUNOS53_SHARED_LIB 1
1762 EOF
1763
1764     ;;
1765 esac
1766 if test x"$machdep" = x; then
1767    machdep="mach_dep.o"
1768 fi
1769 addobjs="$addobjs $machdep"
1770
1771
1772 case "$host" in
1773  sparc-sun-solaris2*)
1774     if test "$GCC" = yes; then
1775        new_CFLAGS=
1776        for i in $CFLAGS; do
1777           case "$i" in
1778            -O*)
1779               ;;
1780            *)
1781               new_CFLAGS="$new_CFLAGS $i"
1782               ;;
1783           esac
1784        done
1785        CFLAGS="$new_CFLAGS"
1786     fi
1787     ;;
1788 esac
1789
1790 MY_CFLAGS="$CFLAGS"
1791
1792
1793 cat >> confdefs.h <<\EOF
1794 #define SILENT 1
1795 EOF
1796
1797 cat >> confdefs.h <<\EOF
1798 #define NO_SIGNALS 1
1799 EOF
1800
1801 cat >> confdefs.h <<\EOF
1802 #define NO_DEBUGGING 1
1803 EOF
1804
1805 cat >> confdefs.h <<\EOF
1806 #define JAVA_FINALIZATION 1
1807 EOF
1808
1809
1810
1811
1812 if test -n "${with_cross_host}"; then
1813    cat >> confdefs.h <<\EOF
1814 #define NO_SIGSET 1
1815 EOF
1816
1817    cat >> confdefs.h <<\EOF
1818 #define NO_CLOCK 1
1819 EOF
1820
1821    cat >> confdefs.h <<\EOF
1822 #define SMALL_CONFIG 1
1823 EOF
1824
1825 fi
1826
1827 if test "${multilib}" = "yes"; then
1828   multilib_arg="--enable-multilib"
1829 else
1830   multilib_arg=
1831 fi
1832
1833 trap '' 1 2 15
1834 cat > confcache <<\EOF
1835 # This file is a shell script that caches the results of configure
1836 # tests run on this system so they can be shared between configure
1837 # scripts and configure runs.  It is not useful on other systems.
1838 # If it contains results you don't want to keep, you may remove or edit it.
1839 #
1840 # By default, configure uses ./config.cache as the cache file,
1841 # creating it if it does not exist already.  You can give configure
1842 # the --cache-file=FILE option to use a different cache file; that is
1843 # what configure does when it calls configure scripts in
1844 # subdirectories, so they share the cache.
1845 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1846 # config.status only pays attention to the cache file if you give it the
1847 # --recheck option to rerun configure.
1848 #
1849 EOF
1850 # The following way of writing the cache mishandles newlines in values,
1851 # but we know of no workaround that is simple, portable, and efficient.
1852 # So, don't put newlines in cache variables' values.
1853 # Ultrix sh set writes to stderr and can't be redirected directly,
1854 # and sets the high bit in the cache file unless we assign to the vars.
1855 (set) 2>&1 |
1856   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1857   *ac_space=\ *)
1858     # `set' does not quote correctly, so add quotes (double-quote substitution
1859     # turns \\\\ into \\, and sed turns \\ into \).
1860     sed -n \
1861       -e "s/'/'\\\\''/g" \
1862       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1863     ;;
1864   *)
1865     # `set' quotes correctly as required by POSIX, so do not add quotes.
1866     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1867     ;;
1868   esac >> confcache
1869 if cmp -s $cache_file confcache; then
1870   :
1871 else
1872   if test -w $cache_file; then
1873     echo "updating cache $cache_file"
1874     cat confcache > $cache_file
1875   else
1876     echo "not updating unwritable cache $cache_file"
1877   fi
1878 fi
1879 rm -f confcache
1880
1881 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1882
1883 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1884 # Let make expand exec_prefix.
1885 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1886
1887 # Any assignment to VPATH causes Sun make to only execute
1888 # the first set of double-colon rules, so remove it if not needed.
1889 # If there is a colon in the path, we need to keep it.
1890 if test "x$srcdir" = x.; then
1891   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1892 fi
1893
1894 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1895
1896 # Transform confdefs.h into DEFS.
1897 # Protect against shell expansion while executing Makefile rules.
1898 # Protect against Makefile macro expansion.
1899 cat > conftest.defs <<\EOF
1900 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1901 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1902 s%\[%\\&%g
1903 s%\]%\\&%g
1904 s%\$%$$%g
1905 EOF
1906 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1907 rm -f conftest.defs
1908
1909
1910 # Without the "./", some shells look in PATH for config.status.
1911 : ${CONFIG_STATUS=./config.status}
1912
1913 echo creating $CONFIG_STATUS
1914 rm -f $CONFIG_STATUS
1915 cat > $CONFIG_STATUS <<EOF
1916 #! /bin/sh
1917 # Generated automatically by configure.
1918 # Run this file to recreate the current configuration.
1919 # This directory was configured as follows,
1920 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1921 #
1922 # $0 $ac_configure_args
1923 #
1924 # Compiler output produced by configure, useful for debugging
1925 # configure, is in ./config.log if it exists.
1926
1927 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1928 for ac_option
1929 do
1930   case "\$ac_option" in
1931   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1932     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1933     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1934   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1935     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1936     exit 0 ;;
1937   -help | --help | --hel | --he | --h)
1938     echo "\$ac_cs_usage"; exit 0 ;;
1939   *) echo "\$ac_cs_usage"; exit 1 ;;
1940   esac
1941 done
1942
1943 ac_given_srcdir=$srcdir
1944 ac_given_INSTALL="$INSTALL"
1945
1946 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1947 EOF
1948 cat >> $CONFIG_STATUS <<EOF
1949
1950 # Protect against being on the right side of a sed subst in config.status.
1951 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1952  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1953 $ac_vpsub
1954 $extrasub
1955 s%@SHELL@%$SHELL%g
1956 s%@CFLAGS@%$CFLAGS%g
1957 s%@CPPFLAGS@%$CPPFLAGS%g
1958 s%@CXXFLAGS@%$CXXFLAGS%g
1959 s%@FFLAGS@%$FFLAGS%g
1960 s%@DEFS@%$DEFS%g
1961 s%@LDFLAGS@%$LDFLAGS%g
1962 s%@LIBS@%$LIBS%g
1963 s%@exec_prefix@%$exec_prefix%g
1964 s%@prefix@%$prefix%g
1965 s%@program_transform_name@%$program_transform_name%g
1966 s%@bindir@%$bindir%g
1967 s%@sbindir@%$sbindir%g
1968 s%@libexecdir@%$libexecdir%g
1969 s%@datadir@%$datadir%g
1970 s%@sysconfdir@%$sysconfdir%g
1971 s%@sharedstatedir@%$sharedstatedir%g
1972 s%@localstatedir@%$localstatedir%g
1973 s%@libdir@%$libdir%g
1974 s%@includedir@%$includedir%g
1975 s%@oldincludedir@%$oldincludedir%g
1976 s%@infodir@%$infodir%g
1977 s%@mandir@%$mandir%g
1978 s%@host@%$host%g
1979 s%@host_alias@%$host_alias%g
1980 s%@host_cpu@%$host_cpu%g
1981 s%@host_vendor@%$host_vendor%g
1982 s%@host_os@%$host_os%g
1983 s%@target@%$target%g
1984 s%@target_alias@%$target_alias%g
1985 s%@target_cpu@%$target_cpu%g
1986 s%@target_vendor@%$target_vendor%g
1987 s%@target_os@%$target_os%g
1988 s%@build@%$build%g
1989 s%@build_alias@%$build_alias%g
1990 s%@build_cpu@%$build_cpu%g
1991 s%@build_vendor@%$build_vendor%g
1992 s%@build_os@%$build_os%g
1993 s%@boehm_gc_basedir@%$boehm_gc_basedir%g
1994 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1995 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1996 s%@INSTALL_DATA@%$INSTALL_DATA%g
1997 s%@PACKAGE@%$PACKAGE%g
1998 s%@VERSION@%$VERSION%g
1999 s%@ACLOCAL@%$ACLOCAL%g
2000 s%@AUTOCONF@%$AUTOCONF%g
2001 s%@AUTOMAKE@%$AUTOMAKE%g
2002 s%@AUTOHEADER@%$AUTOHEADER%g
2003 s%@MAKEINFO@%$MAKEINFO%g
2004 s%@SET_MAKE@%$SET_MAKE%g
2005 s%@CC@%$CC%g
2006 s%@CXX@%$CXX%g
2007 s%@AS@%$AS%g
2008 s%@AR@%$AR%g
2009 s%@RANLIB@%$RANLIB%g
2010 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2011 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2012 s%@MAINT@%$MAINT%g
2013 s%@EXEEXT@%$EXEEXT%g
2014 s%@BOEHM_GC_CFLAGS@%$BOEHM_GC_CFLAGS%g
2015 s%@target_all@%$target_all%g
2016 s%@INCLUDES@%$INCLUDES%g
2017 s%@CXXINCLUDES@%$CXXINCLUDES%g
2018 s%@addobjs@%$addobjs%g
2019 s%@MY_CFLAGS@%$MY_CFLAGS%g
2020
2021 CEOF
2022 EOF
2023
2024 cat >> $CONFIG_STATUS <<\EOF
2025
2026 # Split the substitutions into bite-sized pieces for seds with
2027 # small command number limits, like on Digital OSF/1 and HP-UX.
2028 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2029 ac_file=1 # Number of current file.
2030 ac_beg=1 # First line for current file.
2031 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2032 ac_more_lines=:
2033 ac_sed_cmds=""
2034 while $ac_more_lines; do
2035   if test $ac_beg -gt 1; then
2036     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2037   else
2038     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2039   fi
2040   if test ! -s conftest.s$ac_file; then
2041     ac_more_lines=false
2042     rm -f conftest.s$ac_file
2043   else
2044     if test -z "$ac_sed_cmds"; then
2045       ac_sed_cmds="sed -f conftest.s$ac_file"
2046     else
2047       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2048     fi
2049     ac_file=`expr $ac_file + 1`
2050     ac_beg=$ac_end
2051     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2052   fi
2053 done
2054 if test -z "$ac_sed_cmds"; then
2055   ac_sed_cmds=cat
2056 fi
2057 EOF
2058
2059 cat >> $CONFIG_STATUS <<EOF
2060
2061 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2062 EOF
2063 cat >> $CONFIG_STATUS <<\EOF
2064 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2065   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2066   case "$ac_file" in
2067   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2068        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2069   *) ac_file_in="${ac_file}.in" ;;
2070   esac
2071
2072   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2073
2074   # Remove last slash and all that follows it.  Not all systems have dirname.
2075   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2076   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2077     # The file is in a subdirectory.
2078     test ! -d "$ac_dir" && mkdir "$ac_dir"
2079     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2080     # A "../" for each directory in $ac_dir_suffix.
2081     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2082   else
2083     ac_dir_suffix= ac_dots=
2084   fi
2085
2086   case "$ac_given_srcdir" in
2087   .)  srcdir=.
2088       if test -z "$ac_dots"; then top_srcdir=.
2089       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2090   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2091   *) # Relative path.
2092     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2093     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2094   esac
2095
2096   case "$ac_given_INSTALL" in
2097   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2098   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2099   esac
2100
2101   echo creating "$ac_file"
2102   rm -f "$ac_file"
2103   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2104   case "$ac_file" in
2105   *Makefile*) ac_comsub="1i\\
2106 # $configure_input" ;;
2107   *) ac_comsub= ;;
2108   esac
2109
2110   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2111   sed -e "$ac_comsub
2112 s%@configure_input@%$configure_input%g
2113 s%@srcdir@%$srcdir%g
2114 s%@top_srcdir@%$top_srcdir%g
2115 s%@INSTALL@%$INSTALL%g
2116 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2117 fi; done
2118 rm -f conftest.s*
2119
2120 EOF
2121
2122 cat >> $CONFIG_STATUS <<EOF
2123 ac_sources="config.h"
2124 ac_dests="boehm-config.h"
2125 EOF
2126
2127 cat >> $CONFIG_STATUS <<\EOF
2128 srcdir=$ac_given_srcdir
2129 while test -n "$ac_sources"; do
2130   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2131   set $ac_sources; ac_source=$1; shift; ac_sources=$*
2132
2133   echo "linking $srcdir/$ac_source to $ac_dest"
2134
2135   if test ! -r $srcdir/$ac_source; then
2136     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2137   fi
2138   rm -f $ac_dest
2139
2140   # Make relative symlinks.
2141   # Remove last slash and all that follows it.  Not all systems have dirname.
2142   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2143   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2144     # The dest file is in a subdirectory.
2145     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2146     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2147     # A "../" for each directory in $ac_dest_dir_suffix.
2148     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2149   else
2150     ac_dest_dir_suffix= ac_dots=
2151   fi
2152
2153   case "$srcdir" in
2154   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2155   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2156   esac
2157
2158   # Make a symlink if possible; otherwise try a hard link.
2159   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2160     ln $srcdir/$ac_source $ac_dest; then :
2161   else
2162     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2163   fi
2164 done
2165 EOF
2166 cat >> $CONFIG_STATUS <<EOF
2167 srcdir=${srcdir}
2168 host=${host}
2169 target=${target}
2170 with_multisubdir=${with_multisubdir}
2171 ac_configure_args="${multilib_arg} ${ac_configure_args}"
2172 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2173 boehm_gc_basedir=${boehm_gc_basedir}
2174 CC="${CC}"
2175 DEFS="$DEFS"
2176
2177 EOF
2178 cat >> $CONFIG_STATUS <<\EOF
2179
2180 echo "$DEFS" > boehm-cflags
2181
2182 if test -n "$CONFIG_FILES"; then
2183   ac_file=Makefile . ${boehm_gc_basedir}/../config-ml.in
2184 fi
2185 exit 0
2186 EOF
2187 chmod +x $CONFIG_STATUS
2188 rm -fr confdefs* $ac_clean_files
2189 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2190