* configure.ac (AC_CHECK_HEADERS): Added sys/socket.h.
[cacao.git] / configure.ac
1 dnl configure.ac
2 dnl
3 dnl Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
4 dnl C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 dnl E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 dnl J. Wenninger, Institut f. Computersprachen - TU Wien
7 dnl 
8 dnl This file is part of CACAO.
9 dnl 
10 dnl This program is free software; you can redistribute it and/or
11 dnl modify it under the terms of the GNU General Public License as
12 dnl published by the Free Software Foundation; either version 2, or (at
13 dnl your option) any later version.
14 dnl 
15 dnl This program is distributed in the hope that it will be useful, but
16 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
17 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 dnl General Public License for more details.
19 dnl 
20 dnl You should have received a copy of the GNU General Public License
21 dnl along with this program; if not, write to the Free Software
22 dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 dnl 02110-1301, USA.
24 dnl 
25 dnl $Id: configure.ac 8125 2007-06-21 10:02:14Z twisti $
26
27 dnl Process this file with autoconf to produce a configure script.
28
29
30 AC_INIT(cacao, 0.98+svn, cacao@cacaojvm.org)
31 AC_CONFIG_SRCDIR(src/cacao/cacao.c)
32 AC_CANONICAL_HOST
33 AC_PREREQ(2.59)
34 AM_INIT_AUTOMAKE([1.9.0 dist-bzip2])
35 AM_MAINTAINER_MODE
36
37 AM_CONFIG_HEADER([config.h])
38
39 AC_PREFIX_DEFAULT(/usr/local/cacao)
40
41
42 dnl set optimization and debugging for all architectures and systems
43 if test x"$CFLAGS" = "x"; then
44     OPT_CFLAGS="-O0 -g3"
45 else
46     OPT_CFLAGS=$CFLAGS
47 fi
48
49 dnl system type
50 case "$host_cpu" in
51 alpha | alphaev56 | alphapca56 )
52     ARCH_DIR="alpha"
53     ARCH_CFLAGS="-mieee -D__ALPHA__"
54     ;;
55
56 arm | armv4 | armv4tl | armv5b | armv5l )
57     ARCH_DIR="arm"
58     ARCH_CFLAGS="-D__ARM__"
59     ;;
60
61 hppa2.0 )
62     ARCH_DIR="parisc"
63     ARCH_CFLAGS="-D__PARISC__"
64     ;;
65
66 i386 | i486 | i586 | i686 )
67     ARCH_DIR="i386"
68     ARCH_CFLAGS="-D__I386__"
69     ;;
70
71 m68k )
72     ARCH_DIR="m68k"
73     ARCH_CFLAGS="-D__M68K__"
74     ;;
75
76 mips | mipsel )
77     ARCH_DIR="mips"
78     ARCH_CFLAGS="-D__MIPS__"
79     ;;
80
81 powerpc )
82     ARCH_DIR="powerpc"
83     ARCH_CFLAGS="-D__POWERPC__"
84     ;;
85
86 powerpc64 )
87     ARCH_DIR="powerpc64"
88     ARCH_CFLAGS="-D__POWERPC64__"
89     ;;
90
91 s390 )
92     ARCH_DIR="s390"
93     ARCH_CFLAGS="-D__S390__"
94     ;;
95
96 sparc | sparc64 )
97     ARCH_DIR="sparc64"
98     ARCH_CFLAGS="-mcpu=v9 -m64 -D__SPARC_64__"
99     ;;
100
101 x86_64 )
102     ARCH_DIR="x86_64"
103     ARCH_CFLAGS="-D__X86_64__"
104     ;;
105
106 xdspcore )
107     ARCH_DIR="xdspcore"
108     ENABLE_STATICVM="yes"
109     ARCH_CFLAGS="-D__XDSPCORE__"
110     USE_SCHEDULER="1"
111     ;;
112
113 * )
114     AC_MSG_ERROR($host_cpu systems are not supported at this time)
115     ;;
116 esac
117
118 dnl host type
119 case "$host_os" in
120 *cygwin* )
121     OS_DIR="cygwin"
122     INTRP_CFLAGS="$ARCH_CFLAGS -D__WINDOWS__ -D__CYGWIN__ -Wall -Wno-long-long"
123     ARCH_CFLAGS="$ARCH_CFLAGS -D__WINDOWS__ -D__CYGWIN__ -ansi -pedantic -Wall -Wno-long-long"
124     ;;
125
126 *darwin* )
127     OS_DIR="darwin"
128     INTRP_CFLAGS="$ARCH_CFLAGS -D__DARWIN__ -Wall -Wno-long-long"
129     ARCH_CFLAGS="$ARCH_CFLAGS -D__DARWIN__ -ansi -pedantic -Wall -Wno-long-long"
130     ;;
131
132 *freebsd* )
133     OS_DIR="freebsd"
134     INTRP_CFLAGS="$ARCH_CFLAGS -D__FREEBSD__ -Wall -Wno-long-long -D_XOPEN_SOURCE_EXTENDED"
135     ARCH_CFLAGS="$ARCH_CFLAGS -D__FREEBSD__ -ansi -pedantic -Wall -Wno-long-long -D_XOPEN_SOURCE_EXTENDED"
136     ;;
137
138 *irix* )
139     OS_DIR="irix"
140     INTRP_CFLAGS="$ARCH_CFLAGS -D__IRIX__"
141     ARCH_CFLAGS="$ARCH_CFLAGS -D__IRIX__"
142     ;;
143
144 *kfreebsd*-gnu)
145     OS_DIR="freebsd"
146     INTRP_CFLAGS="$ARCH_CFLAGS -D__FREEBSD__ -Wall -Wno-long-long -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE"
147     ARCH_CFLAGS="$ARCH_CFLAGS -D__FREEBSD__ -ansi -pedantic -Wall -Wno-long-long -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE"
148     ;;
149
150 dnl must be before *linux*
151 *uclinux | *elf )
152     OS_DIR="uclinux"
153     INTRP_CFLAGS="$ARCH_CFLAGS -D__LINUX__ -Wall -Wno-long-long -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE"
154     ARCH_CFLAGS="$ARCH_CFLAGS -D__LINUX__ -ansi -pedantic -Wall -Wno-long-long -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE"
155     ;;
156
157 *linux* | *Linux* )
158     OS_DIR="linux"
159     INTRP_CFLAGS="$ARCH_CFLAGS -D__LINUX__ -Wall -Wno-long-long -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE"
160     ARCH_CFLAGS="$ARCH_CFLAGS -D__LINUX__ -ansi -pedantic -Wall -Wno-long-long -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE"
161     ;;
162
163 *netbsd* )
164     OS_DIR="netbsd"
165     INTRP_CFLAGS="$ARCH_CFLAGS -D__NETBSD__ -Wall -Wno-long-long -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE"
166     ARCH_CFLAGS="$ARCH_CFLAGS -D__NETBSD__ -ansi -pedantic -Wall -Wno-long-long -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE"
167     ;;
168
169 *solaris* )
170     OS_DIR="solaris"
171         dnl on solaris the architecture defines 'sparc','sun','unix' are not set when cpp is called with -ansi
172         dnl therefore we add them here
173     INTRP_CFLAGS="$ARCH_CFLAGS -D__SOLARIS__ -Wall -Wno-long-long -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ -D_BSD_SOURCE -Dsparc -Dsun -Dunix"
174     ARCH_CFLAGS="$ARCH_CFLAGS -D__SOLARIS__ -ansi -pedantic -Wall -Wno-long-long -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ -D_BSD_SOURCE -Dsparc -Dsun -Dunix"
175     ;;
176
177 * )
178     ;;
179 esac
180
181
182 dnl temporary set the CFLAGS for configure tests (e.g. inline keyword)
183 dnl we set it properly at the end of this file
184 CFLAGS="$ARCH_CFLAGS $OPT_CFLAGS"
185
186 dnl set interpreter flags
187 AC_SUBST(INTRP_CFLAGS)
188
189 dnl define some stuff required for --fullversion
190 AC_DEFINE_UNQUOTED(VERSION_CONFIGURE_ARGS, "$ac_configure_args", [configure arguments])
191 AC_DEFINE_UNQUOTED(VERSION_CC, "$CC", [CC used])
192 AC_DEFINE_UNQUOTED(VERSION_CFLAGS, "$OPT_CFLAGS $ARCH_CFLAGS", [CFLAGS used])
193
194
195 dnl define and substitute some architecture specific variables
196 AC_DEFINE_UNQUOTED([ARCH_DIR], "${ARCH_DIR}", [architecture directory])
197 AC_SUBST(ARCH_DIR)
198 AC_SUBST(OS_DIR)
199 AC_SUBST(USE_SCHEDULER)
200
201
202 dnl Checks for programs.
203 AC_PROG_CC
204 AM_PROG_AS
205 AC_PROG_LD
206 AC_PROG_LD_GNU
207 AC_PROG_RANLIB
208 AC_PROG_LN_S
209 AC_PROG_MAKE_SET
210 AM_PROG_MKDIR_P
211
212 dnl Checks for header files.
213 AC_HEADER_DIRENT
214 AC_HEADER_STDC
215
216 dnl keep them alpha-sorted!
217 AC_CHECK_HEADERS([fcntl.h])
218 AC_CHECK_HEADERS([stdlib.h])
219 AC_CHECK_HEADERS([string.h])
220 AC_CHECK_HEADERS([time.h])
221 AC_CHECK_HEADERS([unistd.h])
222 AC_CHECK_HEADERS([sys/ioctl.h])
223 AC_CHECK_HEADERS([sys/mman.h])
224 AC_CHECK_HEADERS([sys/resource.h])
225 AC_CHECK_HEADERS([sys/select.h])
226 AC_CHECK_HEADERS([sys/socket.h])
227 AC_CHECK_HEADERS([sys/stat.h])
228 AC_CHECK_HEADERS([sys/time.h])
229 AC_CHECK_HEADERS([sys/types.h])
230
231 dnl this is for fdlibm
232 AC_CHECK_HEADERS([stdint.h])
233 AC_CHECK_HEADERS([inttypes.h])
234 AC_CHECK_HEADERS([sys/config.h])
235 AC_CHECK_HEADERS([sys/types.h])
236 AC_EGREP_HEADER(uint32_t, stdint.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t]))
237 AC_EGREP_HEADER(uint32_t, inttypes.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t]))
238 AC_EGREP_HEADER(u_int32_t, sys/types.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t]))
239 AC_EGREP_HEADER(u_int32_t, sys/config.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t]))
240
241 dnl Checks for typedefs, structures, and compiler characteristics.
242 AC_C_CONST
243 AC_C_INLINE
244 AC_C_ATTRIBUTE
245 AC_TYPE_OFF_T
246 AC_TYPE_SIZE_T
247 AC_HEADER_TIME
248 AC_STRUCT_TM
249
250 dnl Checks for library functions.
251 AC_PROG_GCC_TRADITIONAL
252 AC_TYPE_SIGNAL
253 AC_FUNC_MEMCMP
254 AC_FUNC_MMAP
255
256 dnl keep them alpha-sorted!
257 AC_CHECK_FUNCS([accept])
258 AC_CHECK_FUNCS([atoi])
259 AC_CHECK_FUNCS([atol])
260 AC_CHECK_FUNCS([calloc])
261 AC_CHECK_FUNCS([close])
262 AC_CHECK_FUNCS([confstr])
263 AC_CHECK_FUNCS([connect])
264 AC_CHECK_FUNCS([fflush])
265 AC_CHECK_FUNCS([fopen])
266 AC_CHECK_FUNCS([fprintf])
267 AC_CHECK_FUNCS([free])
268 AC_CHECK_FUNCS([fstat])
269 AC_CHECK_FUNCS([getcwd])
270 AC_CHECK_FUNCS([getpagesize])
271 AC_CHECK_FUNCS([getrusage])
272 AC_CHECK_FUNCS([getsockname])
273 AC_CHECK_FUNCS([gettimeofday])
274 AC_CHECK_FUNCS([ioctl])
275 AC_CHECK_FUNCS([isnan])
276 AC_CHECK_FUNCS([listen])
277 AC_CHECK_FUNCS([localtime])
278 AC_CHECK_FUNCS([localtime_r])
279 AC_CHECK_FUNCS([lseek])
280 AC_CHECK_FUNCS([mmap])
281 AC_CHECK_FUNCS([mprotect])
282 AC_CHECK_FUNCS([open])
283 AC_CHECK_FUNCS([scandir])
284 AC_CHECK_FUNCS([select])
285 AC_CHECK_FUNCS([setsockopt])
286 AC_CHECK_FUNCS([shutdown])
287 AC_CHECK_FUNCS([socket])
288 AC_CHECK_FUNCS([strchr])
289 AC_CHECK_FUNCS([strdup])
290 AC_CHECK_FUNCS([strerror])
291 AC_CHECK_FUNCS([strncmp])
292 AC_CHECK_FUNCS([strstr])
293 AC_CHECK_FUNCS([time])
294
295
296 dnl Checks for libraries.
297
298 dnl Checking sizeof void *
299 AC_CHECK_SIZEOF(void *)
300 AC_C_BIGENDIAN
301
302
303 dnl define install prefix
304 if test "x$prefix" = "xNONE"; then
305     CACAO_PREFIX=$ac_default_prefix
306 else
307     CACAO_PREFIX=$prefix
308 fi
309 AC_DEFINE_UNQUOTED([CACAO_PREFIX], "${CACAO_PREFIX}", [installation prefix])
310 AC_SUBST(CACAO_PREFIX)
311
312 dnl define libdir prefix
313 if test "x$libdir" = "xNONE"; then
314     CACAO_LIBDIR=$ac_default_libdir
315 else
316     CACAO_LIBDIR=$libdir
317 fi
318 dnl expand CACAO_LIBDIR to something that is usable in C code
319 AS_AC_EXPAND([CACAO_LIBDIR], ${CACAO_LIBDIR})
320 AC_DEFINE_UNQUOTED([CACAO_LIBDIR], "${CACAO_LIBDIR}", [library installation prefix])
321 AC_SUBST(CACAO_LIBDIR)
322
323
324 dnl Features
325
326 AC_CHECK_ENABLE_JAVA
327 AC_CHECK_ENABLE_JIT
328
329 dnl with-options
330 AC_CHECK_WITH_CACAOH
331
332 dnl check for stuff that should be done in software
333 AC_CHECK_SOFTFLOAT
334 AC_CHECK_SOFT_FLOAT_CMP
335 AC_CHECK_SOFT_DOUBLE_CMP
336
337
338 dnl check for interpreter
339 AC_ARG_ENABLE([intrp], [AS_HELP_STRING(--enable-intrp,enable interpreter [[default=no]])])
340
341 AC_MSG_CHECKING(whether interpreter should be compiled)
342 if test x"$enable_intrp" = "xyes"; then
343     AC_MSG_RESULT(yes)
344     AC_DEFINE([ENABLE_INTRP], 1, [enable interpreter])
345     AM_CONDITIONAL([ENABLE_INTRP], [true])
346     ENABLE_INTRP=yes
347
348     AC_ASM_SKIP16
349
350     dnl check for libffi
351     AC_ARG_WITH([ffi],
352                 [AS_HELP_STRING(--with-ffi,use libffi to call native functions)],
353                 [WITH_FFI=yes
354                  AC_CHECK_HEADERS([ffi.h],, [AC_MSG_ERROR(cannot find ffi.h)])
355                  AC_CHECK_LIB(ffi, ffi_call,, [AC_MSG_ERROR(cannot find libffi)])
356                  AC_DEFINE([WITH_FFI], 1, [use libffi])],
357                 [WITH_FFI=no])
358
359     dnl check for libffcall
360     AC_ARG_WITH([ffcall],
361                 [AS_HELP_STRING(--with-ffcall,use libffcall to call native functions)],
362                 [WITH_FFCALL=yes
363                  AC_CHECK_HEADERS([avcall.h],, [AC_MSG_ERROR(cannot find avcall.h)])
364                  AC_CHECK_LIB(avcall, __builtin_avcall,, [AC_MSG_ERROR(cannot find libavcall (from libffcall))])
365                  AC_DEFINE([WITH_FFCALL], 1, [use libffcall])],
366                 [WITH_FFCALL=no])
367
368     dnl check for libffi or libffcall
369     if test x"${WITH_FFI}" = "xyes" -a x"${WITH_FFCALL}" = "xyes"; then
370         AC_ERROR(Enable only libffi or libffcall.)
371     fi
372     if test x"${WITH_FFI}" = "xno" -a x"${WITH_FFCALL}" = "xno"; then
373         AC_ERROR(Enable one of libffi or libffcall.)
374     fi
375
376 else
377     AC_MSG_RESULT(no)
378     AM_CONDITIONAL([ENABLE_INTRP], [false])
379     ENABLE_INTRP="no"
380 fi
381
382 if test x"${ENABLE_JIT}" = "xno" -a x"${ENABLE_INTRP}" = "xno"; then
383     AC_ERROR(You have to enable at least the JIT or the interpreter.)
384 fi
385
386
387 dnl check for garbage collector usage
388 AC_ARG_ENABLE([gc], [AS_HELP_STRING(--enable-gc,enable garbage collector support (none,boehm,cacao) [[default=boehm]])])
389 AC_MSG_CHECKING(whether GC should be enabled)
390 enable_gc=${enable_gc:-boehm}
391 case "$enable_gc" in
392 no | none)
393     AC_DEFINE([DISABLE_GC], 1, [disable garbage collector])
394     ENABLE_GC=none
395     AC_MSG_RESULT(no)
396     ;;
397
398 boehm)
399     AC_DEFINE([ENABLE_GC_BOEHM], 1, [enable conservative boehm-gc])
400     ENABLE_GC=boehm
401     AC_MSG_RESULT(yes, boehm-gc)
402     ;;
403
404 cacao)
405     AC_DEFINE([ENABLE_GC_CACAO], 1, [enable exact cacao-gc])
406     ENABLE_GC=cacao
407     AC_MSG_RESULT(yes, cacao-gc)
408     ;;
409
410 *)
411     AC_MSG_ERROR($enable_gc is an unknown garbage collector package)
412     ;;
413 esac
414 AM_CONDITIONAL([DISABLE_GC], test x"${ENABLE_GC}" = "xnone")
415 AM_CONDITIONAL([ENABLE_GC_BOEHM], test x"${ENABLE_GC}" = "xboehm")
416 AM_CONDITIONAL([ENABLE_GC_CACAO], test x"${ENABLE_GC}" = "xcacao")
417
418
419
420 dnl check for dump memory usage
421 AC_MSG_CHECKING(whether dump memory should be disabled)
422 AC_ARG_ENABLE([dump],
423               [AS_HELP_STRING(--disable-dump,disable dump memory (for debugging only!) [[default=yes]])],
424               [case "${enableval}" in
425                    no)
426                        DISABLE_DUMP=yes
427                        AC_DEFINE([DISABLE_DUMP], 1, [disable dump memory])
428                        ;;
429                    *) DISABLE_DUMP=no;;
430                esac],
431                [DISABLE_DUMP=no])
432 AC_MSG_RESULT(${DISABLE_DUMP})
433
434
435 dnl check for debug
436 AC_MSG_CHECKING(whether debug code generation should be enabled)
437 AC_ARG_ENABLE([debug],
438               [AS_HELP_STRING(--disable-debug,disable debug code generation [[default=yes]])],
439               [case "${enableval}" in
440                    no) NDEBUG=yes
441                        AC_DEFINE([NDEBUG], 1, [disable debug code])
442                        ;;
443                    *) NDEBUG=no;;
444                esac],
445               [NDEBUG=no])
446
447 if test x"${NDEBUG}" = "xno"; then
448     AC_MSG_RESULT(yes)
449 else
450     AC_MSG_RESULT(no)
451 fi
452 AM_CONDITIONAL([NDEBUG], test x"${NDEBUG}" = "xyes")
453
454
455 dnl check for memcheck support
456 AC_MSG_CHECKING(whether debugging memory checks should be enabled)
457 AC_ARG_ENABLE([memcheck],
458               [AS_HELP_STRING(--enable-memcheck,enable debugging memory checks [[default=no]])],
459               [case "${enableval}" in
460                    yes) ENABLE_MEMCHECK=yes;;
461                    *) ENABLE_MEMCHECK=no;;
462                esac],
463               [ENABLE_MEMCHECK=no])
464 AC_MSG_RESULT(${ENABLE_MEMCHECK})
465 AM_CONDITIONAL([ENABLE_MEMCHECK], test x"${ENABLE_MEMCHECK}" = "xyes")
466
467 if test x"${ENABLE_MEMCHECK}" = "xyes"; then
468     AC_DEFINE([ENABLE_MEMCHECK], 1, [perform debugging memory checks])
469 fi
470
471
472 dnl check for vmlog support
473 AC_MSG_CHECKING(whether vmlog tracing should be enabled)
474 AC_ARG_ENABLE([vmlog],
475               [AS_HELP_STRING(--enable-vmlog,enable vmlog tracing [[default=no]])],
476               [case "${enableval}" in
477                    yes) ENABLE_VMLOG=yes;;
478                    *) ENABLE_VMLOG=no;;
479                esac],
480               [ENABLE_VMLOG=no])
481 AC_MSG_RESULT(${ENABLE_VMLOG})
482 AM_CONDITIONAL([ENABLE_VMLOG], test x"${ENABLE_VMLOG}" = "xyes")
483
484 if test x"${ENABLE_VMLOG}" = "xyes"; then
485     AC_DEFINE([ENABLE_VMLOG], 1, [enable vmlog tracing code])
486 fi
487
488
489 dnl check for disassembler support
490 AC_MSG_CHECKING(whether disassembler should be enabled)
491 AC_ARG_ENABLE([disassembler],
492               [AS_HELP_STRING(--enable-disassembler,enable disassembler [[default=no]])],
493               [case "${enableval}" in
494                    yes) ENABLE_DISASSEMBLER=yes;;
495                    *) ENABLE_DISASSEMBLER=no;;
496                esac],
497               [ENABLE_DISASSEMBLER=no])
498 AC_MSG_RESULT(${ENABLE_DISASSEMBLER})
499 AM_CONDITIONAL([ENABLE_DISASSEMBLER], test x"${ENABLE_DISASSEMBLER}" = "xyes")
500
501 if test x"${ENABLE_DISASSEMBLER}" = "xyes"; then
502     AC_DEFINE([ENABLE_DISASSEMBLER], 1, [enable disassembler])
503
504     dnl check for binutils headers and libraries on some architectures for the
505     dnl disassembler
506     case "${ARCH_DIR}" in
507         arm | i386 | powerpc | x86_64 | sparc64 | powerpc64 | s390 | m68k)
508             AC_CHECK_HEADER([ansidecl.h],, [AC_MSG_ERROR(cannot find ansidecl.h)])
509             AC_CHECK_HEADER([symcat.h],, [AC_MSG_ERROR(cannot find symcat.h)])
510             AC_CHECK_HEADER([bfd.h],, [AC_MSG_ERROR(cannot find bfd.h)])
511             AC_CHECK_HEADER([dis-asm.h],, [AC_MSG_ERROR(cannot find dis-asm.h)])
512
513             case "${OS_DIR}" in
514                 cygwin | darwin | netbsd | solaris)
515                      AC_CHECK_LIB(intl, dcgettext,, [AC_MSG_ERROR(cannot find libintl (from binutils))])
516                      ;;
517             esac
518
519             AC_CHECK_LIB(iberty, xstrerror,, [AC_MSG_ERROR(cannot find libiberty (from binutils))])
520             AC_CHECK_LIB(bfd, bfd_get_arch,, [AC_MSG_ERROR(cannot find libbfd (from binutils))])
521             AC_CHECK_LIB(opcodes, disassembler,, [AC_MSG_ERROR(cannot find libopcodes (from binutils))])
522             AC_DEFINE([WITH_BINUTILS_DISASSEMBLER], 1, [use binutils disassembler])
523             AM_CONDITIONAL([WITH_BINUTILS_DISASSEMBLER], [true])
524             ;;
525         * )
526             AM_CONDITIONAL([WITH_BINUTILS_DISASSEMBLER], [false])
527             ;;
528     esac
529 else
530     AM_CONDITIONAL([WITH_BINUTILS_DISASSEMBLER], [false])
531 fi
532
533
534 dnl check for statistics
535 AC_MSG_CHECKING(whether statistics generation should be enabled)
536 AC_ARG_ENABLE([statistics],
537               [AS_HELP_STRING(--enable-statistics,enable statistics generation [[default=no]])],
538               [case "${enableval}" in
539                    yes) ENABLE_STATISTICS=yes;;
540                    *) ENABLE_STATISTICS=no;;
541                esac],
542               [ENABLE_STATISTICS=no])
543 AC_MSG_RESULT(${ENABLE_STATISTICS})
544 AM_CONDITIONAL([ENABLE_STATISTICS], test x"${ENABLE_STATISTICS}" = "xyes")
545
546 if test x"${ENABLE_STATISTICS}" = "xyes"; then
547     AC_DEFINE([ENABLE_STATISTICS], 1, [enable statistics])
548 fi
549
550
551 dnl check for verifier
552 AC_MSG_CHECKING(whether classfile verification should be enabled)
553 AC_ARG_ENABLE([verifier],
554               [AS_HELP_STRING(--disable-verifier,disable classfile verification [[default=yes]])],
555               [case "${enableval}" in
556                    no) ENABLE_VERIFIER=no;;
557                    *) ENABLE_VERIFIER=yes;;
558                esac],
559               [ENABLE_VERIFIER=yes])
560 AC_MSG_RESULT(${ENABLE_VERIFIER})
561 AM_CONDITIONAL([ENABLE_VERIFIER], test x"${ENABLE_VERIFIER}" = "xyes")
562
563 if test x"${ENABLE_VERIFIER}" = "xyes"; then
564     AC_DEFINE([ENABLE_VERIFIER], 1, [enable classfile verification])
565 fi
566
567
568 dnl check for compiler timing
569 AC_MSG_CHECKING(whether real-time timing should be enabled)
570 AC_ARG_ENABLE([rt-timing],
571               [AS_HELP_STRING(--enable-rt-timing,enable real-time timing [[default=no]])],
572               [case "${enableval}" in
573                    yes) ENABLE_RT_TIMING=yes;;
574                    *) ENABLE_RT_TIMING=no;;
575                esac],
576               [ENABLE_RT_TIMING=no])
577 AC_MSG_RESULT(${ENABLE_RT_TIMING})
578 AM_CONDITIONAL([ENABLE_RT_TIMING], test x"${ENABLE_RT_TIMING}" = "xyes")
579
580 if test x"${ENABLE_RT_TIMING}" = "xyes"; then
581     AC_DEFINE([ENABLE_RT_TIMING], 1, [enable real-time timing])
582 fi
583
584
585 dnl check for cycle count statistics
586 AC_MSG_CHECKING(whether cycle count statistics should be enabled)
587 AC_ARG_ENABLE([cycles-stats],
588               [AS_HELP_STRING(--enable-cycles-stats,enable cycle count statistics [[default=no]])],
589               [case "${enableval}" in
590                    yes) ENABLE_CYCLES_STATS=yes;;
591                    *) ENABLE_CYCLES_STATS=no;;
592                esac],
593               [ENABLE_CYCLES_STATS=no])
594 AC_MSG_RESULT(${ENABLE_CYCLES_STATS})
595 AM_CONDITIONAL([ENABLE_CYCLES_STATS], test x"${ENABLE_CYCLES_STATS}" = "xyes")
596
597 if test x"${ENABLE_CYCLES_STATS}" = "xyes"; then
598     AC_DEFINE([ENABLE_CYCLES_STATS], 1, [enable cycle count statistics])
599 fi
600
601
602 dnl check for JVMTI
603 AC_MSG_CHECKING(whether to compile JVMTI support)
604 AC_ARG_ENABLE([jvmti],
605               [AS_HELP_STRING(--enable-jvmti,enable JVMTI [[default=no]])],
606               [case "${enableval}" in
607                    yes) ENABLE_JVMTI=yes;;
608                    *) ENABLE_JVMTI=no;;
609                esac],
610               [ENABLE_JVMTI=no])
611 AC_MSG_RESULT(${ENABLE_JVMTI})
612 AM_CONDITIONAL([ENABLE_JVMTI], test x"${ENABLE_JVMTI}" = "xyes")
613
614 if test x"${ENABLE_JVMTI}" = "xyes"; then
615     AC_DEFINE([ENABLE_JVMTI], 1, [use JVMTI])
616 fi
617
618
619 AC_CHECK_ENABLE_THREADS
620
621
622 dnl check if if-conversion should be supported
623 AC_MSG_CHECKING(whether if-conversion should be supported)
624 AC_ARG_ENABLE([ifconv],
625               [AS_HELP_STRING(--disable-ifconv,disable if-conversion [[default=yes]])],
626               [case "${enableval}" in
627                    no) ENABLE_IFCONV=no;;
628                    *) ENABLE_IFCONV=yes;;
629                esac],
630               [ENABLE_IFCONV=yes])
631 AC_MSG_RESULT(${ENABLE_IFCONV})
632 AM_CONDITIONAL([ENABLE_IFCONV], test x"${ENABLE_IFCONV}" = "xyes")
633    
634 if test x"${ENABLE_IFCONV}" = "xyes"; then
635     AC_DEFINE([ENABLE_IFCONV], 1, [enable if-conversion])
636 fi
637
638
639 dnl check for inlining
640 AC_MSG_CHECKING(whether method inlining should be supported)
641 AC_ARG_ENABLE([inlining],
642               [AS_HELP_STRING(--enable-inlining,enable method inlining [[default=no]])],
643               [case "${enableval}" in
644                    yes) ENABLE_INLINING=yes;;
645                    *) ENABLE_INLINING=no;;
646                esac],
647               [ENABLE_INLINING=no])
648 AC_MSG_RESULT(${ENABLE_INLINING})
649 AM_CONDITIONAL([ENABLE_INLINING], test x"${ENABLE_INLINING}" = "xyes")
650
651 if test x"${ENABLE_INLINING}" = "xyes"; then
652     AC_DEFINE([ENABLE_INLINING], 1, [use method inlining])
653 fi
654
655
656 dnl check for inlining debug options
657 AC_MSG_CHECKING(whether method inlining debug options should be enabled)
658 AC_ARG_ENABLE([inlining-debug],
659               [AS_HELP_STRING(--enable-inlining-debug,enable method inlining debug options [[default=no]])],
660               [case "${enableval}" in
661                    yes) ENABLE_INLINING_DEBUG=yes;;
662                    *) ENABLE_INLINING_DEBUG=no;;
663                esac],
664               [ENABLE_INLINING_DEBUG=no])
665 AC_MSG_RESULT(${ENABLE_INLINING_DEBUG})
666 AM_CONDITIONAL([ENABLE_INLINING_DEBUG], test x"${ENABLE_INLINING_DEBUG}" = "xyes")
667
668 if test x"${ENABLE_INLINING_DEBUG}" = "xyes"; then
669     AC_DEFINE([ENABLE_INLINING_DEBUG], 1, [enable method inlining debug options])
670 fi
671
672
673 dnl check for replacement
674 AC_MSG_CHECKING(whether on-stack replacement should be supported)
675 AC_ARG_ENABLE([replacement],
676               [AS_HELP_STRING(--enable-replacement,enable on-stack replacement [[default=no]])],
677               [case "${enableval}" in
678                    yes) ENABLE_REPLACEMENT=yes;;
679                    *) ENABLE_REPLACEMENT=no;;
680                esac],
681               [ENABLE_REPLACEMENT=no])
682 AC_MSG_RESULT(${ENABLE_REPLACEMENT})
683 AM_CONDITIONAL([ENABLE_REPLACEMENT], test x"${ENABLE_REPLACEMENT}" = "xyes")
684
685 if test x"${ENABLE_REPLACEMENT}" = "xyes"; then
686     AC_DEFINE([ENABLE_REPLACEMENT], 1, [use on-stack replacement])
687 fi
688
689
690 dnl check for loop optimization
691 AC_MSG_CHECKING(whether loop optimization should be supported)
692 AC_ARG_ENABLE([loop],
693               [AS_HELP_STRING(--enable-loop,enable loop optimization [[default=no]])],
694               [case "${enableval}" in
695                    yes) ENABLE_LOOP=yes;;
696                    *) ENABLE_LOOP=no;;
697                esac],
698               [ENABLE_LOOP=no])
699 AC_MSG_RESULT(${ENABLE_LOOP})
700 AM_CONDITIONAL([ENABLE_LOOP], test x"${ENABLE_LOOP}" = "xyes")
701
702 if test x"${ENABLE_LOOP}" = "xyes"; then
703     AC_DEFINE([ENABLE_LOOP], 1, [use loop optimization])
704 fi
705
706
707 dnl check if linear scan register allocator(lsra) with SSA should be used
708 AC_MSG_CHECKING(whether lsra with ssa should be supported)
709 AC_ARG_ENABLE([ssa],
710               [AS_HELP_STRING(--disable-ssa,disable ssa [[default=no]])],
711               [case "${enableval}" in
712                    no) ENABLE_SSA=no;;
713                    *) ENABLE_SSA=yes;;
714                esac],
715               [ENABLE_SSA=no])
716 AC_MSG_RESULT(${ENABLE_SSA})
717 AM_CONDITIONAL([ENABLE_SSA], test x"${ENABLE_SSA}" = "xyes")
718
719 if test x"${ENABLE_SSA}" = "xyes"; then
720     AC_DEFINE([ENABLE_SSA], 1, [enable lsra with ssa])
721     ENABLE_LSRA="no"
722 fi
723
724
725 dnl check if linear scan register allocator(lsra) should be used
726 AC_MSG_CHECKING(whether lsra should be supported)
727 AC_ARG_ENABLE([lsra],
728               [AS_HELP_STRING(--enable-lsra,enable linear scan register allocator [[default=no]])],
729               [case "${enableval}" in
730                    yes) ENABLE_LSRA=yes;;
731                    *) ENABLE_LSRA=no;;
732                esac],
733               [ENABLE_LSRA=no])
734    
735 if test x"${ENABLE_LSRA}" = "xyes"; then
736     if test x"${ENABLE_SSA}" = "xyes"; then
737         ENABLE_LSRA="no"
738     fi
739 fi
740 AC_MSG_RESULT(${ENABLE_LSRA})
741 AM_CONDITIONAL([ENABLE_LSRA], test x"${ENABLE_LSRA}" = "xyes")
742  
743 if test x"${ENABLE_LSRA}" = "xyes"; then
744     AC_DEFINE([ENABLE_LSRA], 1, [enable lsra])
745 fi
746
747
748 dnl check if profiling should be supported
749 AC_MSG_CHECKING(whether profiling should be supported)
750 AC_ARG_ENABLE([profiling],
751               [AS_HELP_STRING(--enable-profiling,enable profiling [[default=no]])],
752               [case "${enableval}" in
753                    yes) ENABLE_PROFILING=yes;;
754                    *) ENABLE_PROFILING=no;;
755                esac],
756               [ENABLE_PROFILING=no])
757 AC_MSG_RESULT(${ENABLE_PROFILING})
758 AM_CONDITIONAL([ENABLE_PROFILING], test x"${ENABLE_PROFILING}" = "xyes")
759    
760 if test x"${ENABLE_PROFILING}" = "xyes"; then
761     AC_DEFINE([ENABLE_PROFILING], 1, [enable profiling])
762 fi
763
764
765 dnl check for instruction scheduler
766 AC_ARG_ENABLE([scheduler], [AS_HELP_STRING(--enable-scheduler,enable instruction scheduler [[default=no]])])
767
768 AC_MSG_CHECKING(whether instruction scheduler should be supported)
769 if test x"${USE_SCHEDULER}" = "x1" -o x"$enable_scheduler" = "xyes"; then
770         case "${ARCH_DIR}" in
771                 xdspcore )
772                         ;;
773                 * )
774                         AC_MSG_ERROR(instruction scheduler is not available for ${ARCH_DIR} code generator)
775                         ;;
776         esac
777
778         AC_MSG_RESULT(yes)
779         AC_DEFINE([USE_SCHEDULER], 1, [use scheduler])
780         AM_CONDITIONAL([USE_SCHEDULER], [true])
781 else
782         AC_MSG_RESULT(no)
783         AM_CONDITIONAL([USE_SCHEDULER], [false])
784 fi
785
786
787 dnl check if zlib should be used
788 AC_MSG_CHECKING(whether ZIP/JAR archives should be supported)
789 AC_ARG_ENABLE([zlib],
790               [AS_HELP_STRING(--disable-zlib,disable ZIP/JAR archive support (needs zlib) [[default=yes]])],
791               [case "${enableval}" in
792                   no) ENABLE_ZLIB=no;;
793                   *) ENABLE_ZLIB=yes;;
794                esac],
795               [ENABLE_ZLIB=yes])
796 AC_MSG_RESULT(${ENABLE_ZLIB})
797
798 if test x"${ENABLE_ZLIB}" = "xyes"; then
799     AC_CHECK_HEADERS([zconf.h],, [AC_MSG_ERROR(cannot find zconf.h)])
800     AC_CHECK_HEADERS([zlib.h],, [AC_MSG_ERROR(cannot find zlib.h)])
801     AC_CHECK_LIB(z, inflate,, [AC_MSG_ERROR(cannot find libz)])
802     AC_DEFINE([ENABLE_ZLIB], 1, [use zlib])
803 fi
804 AM_CONDITIONAL([ENABLE_ZLIB], test x"${ENABLE_ZLIB}" = "xyes")
805
806
807 dnl check for stuff to be built
808 AC_CHECK_ENABLE_JNI
809
810
811 dnl check if a libjvm.so should be built
812 AC_MSG_CHECKING(whether to build a libjvm.so)
813 AC_ARG_ENABLE([libjvm],
814               [AS_HELP_STRING(--disable-libjvm,build a libjvm.so [[default=yes]])],
815               [case "${enableval}" in
816                   no) ENABLE_LIBJVM=no;;
817                   *) ENABLE_LIBJVM=yes;;
818                esac],
819               [ENABLE_LIBJVM=yes])
820 AC_MSG_RESULT(${ENABLE_LIBJVM})
821 AM_CONDITIONAL([ENABLE_LIBJVM], test x"${ENABLE_LIBJVM}" = "xyes")
822 AC_SUBST(ENABLE_LIBJVM)
823
824 if test x"${ENABLE_LIBJVM}" = "xyes"; then
825     AC_DEFINE([ENABLE_LIBJVM], 1, [enable libjvm.so])
826
827     dnl set AC_ENABLE_SHARED and AC_DISABLE_STATIC properly
828     enable_shared=yes
829     enable_static=no
830 else
831     enable_shared=no
832     enable_static=yes
833 fi
834
835 dnl libtool stuff
836 AC_LIBTOOL_DLOPEN
837 AC_PROG_LIBTOOL
838
839
840 dnl check if CACAO should be linked statically
841 AC_MSG_CHECKING(whether to link CACAO statically)
842 AC_ARG_ENABLE([staticvm],
843               [AS_HELP_STRING(--enable-staticvm,link CACAO statically [[default=no]])],
844               [case "${enableval}" in
845                   yes) ENABLE_STATICVM=yes
846                        AC_DEFINE([ENABLE_STATICVM], 1, [link CACAO statically])
847                        ;;
848                   *) ENABLE_STATICVM=no;;
849                esac],
850               [ENABLE_STATICVM=no])
851 AC_MSG_RESULT(${ENABLE_STATICVM})
852 AM_CONDITIONAL([ENABLE_STATICVM], test x"${ENABLE_STATICVM}" = "xyes")
853 AC_SUBST(ENABLE_STATICVM)
854
855
856 dnl where is CACAO's vm.zip
857 AC_MSG_CHECKING(where CACAO's vm.zip is installed)
858 AC_ARG_WITH([vm-zip],
859             [AS_HELP_STRING(--with-vm-zip=<path>,path to CACAO's vm.zip (includes the name of the file and may be flat) [[default=/usr/local/cacao/share/cacao/vm.zip]])],
860             [CACAO_VM_ZIP=${withval}],
861             [CACAO_VM_ZIP=${CACAO_PREFIX}/share/cacao/vm.zip])
862 AC_MSG_RESULT(${CACAO_VM_ZIP})
863 AC_DEFINE_UNQUOTED([CACAO_VM_ZIP], "${CACAO_VM_ZIP}", [CACAO's vm.zip])
864 AC_SUBST(CACAO_VM_ZIP)
865
866
867 AC_CHECK_WITH_CLASSPATH
868 AC_CHECK_WITH_CLASSPATH_PREFIX
869 AC_CHECK_WITH_CLASSPATH_CLASSES
870 AC_CHECK_WITH_CLASSPATH_LIBDIR
871 AC_CHECK_WITH_CLASSPATH_INCLUDEDIR
872
873
874 dnl if we compile for a JRE-style directory layout
875 AC_MSG_CHECKING(if we compile for a JRE-style directory layout)
876 AC_ARG_WITH([jre-layout],
877             [AS_HELP_STRING(--with-jre-layout,compile for JRE-style directory layout [[default=no]])],
878             [case "${enableval}" in
879                 yes) WITH_JRE_LAYOUT=yes
880                      AC_DEFINE([WITH_JRE_LAYOUT], 1, [with JRE layout])
881                      ;;
882                 *) WITH_JRE_LAYOUT=no;;
883              esac],
884             [WITH_JRE_LAYOUT=no])
885 AC_MSG_RESULT(${WITH_JRE_LAYOUT})
886
887
888 dnl check if GNU Classpath should be linked statically into CACAO
889 AC_MSG_CHECKING(whether to link GNU Classpath native libraries statically into CACAO)
890 AC_ARG_WITH([static-classpath],
891             [AS_HELP_STRING(--with-static-classpath,link GNU classpath native libraries statically into CACAO [[default=no]])],
892             [case "${enableval}" in
893                 yes) WITH_STATIC_CLASSPATH=yes;;
894                 *) WITH_STATIC_CLASSPATH=no;;
895              esac],
896             [WITH_STATIC_CLASSPATH=no])
897 AC_MSG_RESULT(${WITH_STATIC_CLASSPATH})
898
899 if test x"${WITH_STATIC_CLASSPATH}" = "xyes"; then
900     AC_DEFINE([WITH_STATIC_CLASSPATH], 1, [link GNU classpath native libraries statically into CACAO])
901
902     dnl check for some classpath related stuff when we link statically
903     AM_ICONV_LINK
904 else
905     dnl we need this check for --enable-staticvm, otherwise ltdl can't find dlopen
906     if test x"${ENABLE_STATICVM}" = "xyes"; then
907         AC_CHECK_LIB(dl, dlopen,, [AC_MSG_ERROR(cannot find libdl)])
908     fi
909
910     AC_CHECK_HEADERS([ltdl.h],, [AC_MSG_ERROR(cannot find ltdl.h)])
911     AC_CHECK_LIB(ltdl, lt_dlopen,, [AC_MSG_ERROR(cannot find libltdl)])
912 fi
913 AM_CONDITIONAL([WITH_STATIC_CLASSPATH], test x"${WITH_STATIC_CLASSPATH}" = "xyes")
914 AC_SUBST(WITH_STATIC_CLASSPATH)
915
916
917 dnl check for some programs we need
918 AC_PROG_JAVAC
919 AC_PROG_JAR
920
921 AC_CHECK_HEADERS(
922         [regex.h], 
923         [
924                 dnl If debug build and regex.h available, enable debug filter
925                 if test x"${NDEBUG}" = "xno"; then
926                         AC_DEFINE(ENABLE_DEBUG_FILTER, 1, [debug filter])
927                 fi
928                 dnl If vmlog enambled and regex.h available, enable vmlogfilter
929                 AM_CONDITIONAL([ENABLE_VMLOGFILTER], [test x"${ENABLE_VMLOG}" = "xyes"])
930         ],
931         [
932                 AM_CONDITIONAL([ENABLE_VMLOGFILTER], [false])
933         ]
934 )
935
936 dnl finally pass CFLAGS to Makefiles via AM_CFLAGS
937 CFLAGS=$OPT_CFLAGS
938 AM_CFLAGS=$ARCH_CFLAGS
939 AC_SUBST(AM_CFLAGS)
940
941
942 AC_CONFIG_FILES([Makefile]
943                 [contrib/Makefile]
944                 [contrib/setenvinstalled]
945                 [contrib/setenvsource]
946                 [contrib/vmlog/Makefile]
947                 [contrib/vmlog/t/Makefile]
948                 [doc/Makefile]
949                 [doc/handbook/Makefile]
950                 [man/Makefile]
951                 [src/Makefile]
952                 [src/cacao/Makefile]
953                 [src/cacaoh/Makefile]
954                 [src/fdlibm/Makefile]
955                 [src/lib/Makefile]
956                 [src/mm/Makefile]
957                 [src/mm/cacao-gc/Makefile]
958                 [src/native/Makefile]
959                 [src/native/include/Makefile]
960                 [src/native/jvmti/Makefile]
961                 [src/native/tools/Makefile]
962                 [src/native/vm/Makefile]
963                 [src/native/vm/cldc1.1/Makefile]
964                 [src/native/vm/gnu/Makefile]
965                 [src/scripts/Makefile]
966                 [src/scripts/java]
967                 [src/threads/Makefile]
968                 [src/threads/native/Makefile]
969                 [src/threads/none/Makefile]
970                 [src/toolbox/Makefile]
971                 [src/vm/Makefile]
972                 [src/vm/jit/Makefile]
973                 [src/vm/jit/allocator/Makefile]
974                 [src/vm/jit/alpha/Makefile]
975                 [src/vm/jit/alpha/freebsd/Makefile]
976                 [src/vm/jit/alpha/linux/Makefile]
977                 [src/vm/jit/arm/Makefile]
978                 [src/vm/jit/arm/linux/Makefile]
979                 [src/vm/jit/i386/Makefile]
980                 [src/vm/jit/i386/cygwin/Makefile]
981                 [src/vm/jit/i386/darwin/Makefile]
982                 [src/vm/jit/i386/freebsd/Makefile]
983                 [src/vm/jit/i386/linux/Makefile]
984                 [src/vm/jit/intrp/Makefile]
985                 [src/vm/jit/inline/Makefile]
986                 [src/vm/jit/loop/Makefile]
987                 [src/vm/jit/m68k/Makefile]
988                 [src/vm/jit/m68k/linux/Makefile]
989                 [src/vm/jit/mips/Makefile]
990                 [src/vm/jit/mips/irix/Makefile]
991                 [src/vm/jit/mips/linux/Makefile]
992                 [src/vm/jit/mips/uclinux/Makefile]
993                 [src/vm/jit/optimizing/Makefile]
994                 [src/vm/jit/parisc/Makefile]
995                 [src/vm/jit/parisc/linux/Makefile]
996                 [src/vm/jit/powerpc/Makefile]
997                 [src/vm/jit/powerpc/darwin/Makefile]
998                 [src/vm/jit/powerpc/linux/Makefile]
999                 [src/vm/jit/powerpc/netbsd/Makefile]
1000                 [src/vm/jit/powerpc64/Makefile]
1001                 [src/vm/jit/powerpc64/linux/Makefile]
1002                 [src/vm/jit/s390/Makefile]
1003                 [src/vm/jit/schedule/Makefile]
1004                 [src/vm/jit/sparc64/Makefile]
1005                 [src/vm/jit/sparc64/linux/Makefile]
1006                 [src/vm/jit/sparc64/solaris/Makefile]
1007                 [src/vm/jit/tools/Makefile]
1008                 [src/vm/jit/verify/Makefile]
1009                 [src/vm/jit/x86_64/Makefile]
1010                 [src/vm/jit/x86_64/freebsd/Makefile]
1011                 [src/vm/jit/x86_64/linux/Makefile]
1012                 [src/vmcore/Makefile]
1013                 [tests/Makefile]
1014                 [tests/regression/Makefile]
1015                 [tests/regression/codepatching/Makefile]
1016                 [tests/regression/jasmin/Makefile]
1017                 [tests/regression/native/Makefile]
1018                 [tests/regression/resolving/Makefile]
1019                 [tests/regression/resolving/classes1/Makefile]
1020                 [tests/regression/resolving/classes2/Makefile]
1021                 [tests/regression/resolving/classes3/Makefile]
1022                 )
1023
1024
1025 dnl now configure subpackages with OPT_CFLAGS and ARCH_CFLAGS
1026 export OPT_CFLAGS
1027 export ARCH_CFLAGS
1028 AC_CONFIG_SUBDIRS(src/mm/boehm-gc)
1029
1030
1031 AC_OUTPUT
1032
1033
1034 ## Local variables:
1035 ## mode: m4
1036 ## indent-tabs-mode: t
1037 ## c-basic-offset: 4
1038 ## tab-width: 8
1039 ## compile-command: "automake --add-missing"
1040 ## End: