OSDN Git Service

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