OSDN Git Service

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