OSDN Git Service

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