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