OSDN Git Service

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