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