1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT(cacao, 0.95+svn, cacao@cacaojvm.org)
4 AC_CONFIG_SRCDIR(src/cacao/cacao.c)
7 AM_INIT_AUTOMAKE([1.9.0])
10 AM_CONFIG_HEADER([config.h])
12 AC_PREFIX_DEFAULT(/usr/local/cacao)
15 dnl set optimization and debugging for all architectures and systems
16 if test x"$CFLAGS" = "x"; then
22 alpha | alphaev56 | alphapca56 )
24 CFLAGS="$CFLAGS -mieee -D__ALPHA__"
27 arm | armv4tl | armv5b )
29 CFLAGS="$CFLAGS -D__ARM__"
32 i386 | i486 | i586 | i686 )
34 CFLAGS="$CFLAGS -D__I386__"
39 CFLAGS="$CFLAGS -D__MIPS__"
44 CFLAGS="$CFLAGS -D__POWERPC__"
49 CFLAGS="$CFLAGS -D__POWERPC64__"
54 CFLAGS="$CFLAGS -D__X86_64__"
60 CFLAGS="$CFLAGS -D__XDSPCORE__"
65 AC_MSG_ERROR($host_cpu systems are not supported at this time)
73 CFLAGS="$CFLAGS -D__DARWIN__ -ansi -pedantic -Wall -Wno-long-long"
78 CFLAGS="$CFLAGS -D__FREEBSD__ -ansi -pedantic -Wall -Wno-long-long -D_XOPEN_SOURCE_EXTENDED"
83 CFLAGS="$CFLAGS -D__IRIX__"
88 CFLAGS="$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"
96 dnl define some stuff required for --fullversion
97 AC_DEFINE_UNQUOTED(VERSION_CONFIGURE_ARGS, "$ac_configure_args", [configure arguments])
98 AC_DEFINE_UNQUOTED(VERSION_CC, "$CC", [CC used])
99 AC_DEFINE_UNQUOTED(VERSION_CFLAGS, "$CFLAGS", [CFLAGS used])
102 dnl define and substitute some architecture specific variables
103 AC_DEFINE_UNQUOTED([ARCH_DIR], "${ARCH_DIR}", [architecture directory])
106 AC_SUBST(USE_SCHEDULER)
109 dnl Checks for programs.
119 dnl Checks for header files.
122 AC_CHECK_HEADERS([fcntl.h])
123 AC_CHECK_HEADERS([sys/time.h])
124 AC_CHECK_HEADERS([unistd.h])
125 AC_CHECK_HEADERS([sys/ioctl.h])
127 dnl this is for fdlibm
128 AC_CHECK_HEADERS([stdint.h])
129 AC_CHECK_HEADERS([inttypes.h])
130 AC_CHECK_HEADERS([sys/config.h])
131 AC_CHECK_HEADERS([sys/types.h])
132 AC_EGREP_HEADER(uint32_t, stdint.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t]))
133 AC_EGREP_HEADER(uint32_t, inttypes.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t]))
134 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]))
135 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]))
137 dnl Checks for typedefs, structures, and compiler characteristics.
146 dnl Checks for library functions.
147 AC_PROG_GCC_TRADITIONAL
150 AC_CHECK_FUNCS([calloc mprotect getpagesize free])
151 AC_CHECK_FUNCS([getcwd gettimeofday])
152 AC_CHECK_FUNCS([scandir])
153 AC_CHECK_FUNCS([mmap])
154 AC_CHECK_FUNCS([isnan])
156 dnl Checks for libraries.
158 dnl Checking sizeof void *
159 AC_CHECK_SIZEOF(void *)
163 dnl define install prefix
164 if test "x$prefix" = "xNONE"; then
165 CACAO_PREFIX=$ac_default_prefix
169 AC_DEFINE_UNQUOTED([CACAO_PREFIX], "${CACAO_PREFIX}", [installation prefix])
170 AC_SUBST(CACAO_PREFIX)
177 dnl check for JIT compiler
178 AC_MSG_CHECKING(whether JIT compiler should be compiled)
180 [AS_HELP_STRING(--disable-jit,disable JIT compiler [[default=yes]])],
181 [case "${enableval}" in
186 AC_MSG_RESULT(${ENABLE_JIT})
187 AM_CONDITIONAL([ENABLE_JIT], test x"${ENABLE_JIT}" = "xyes")
189 if test x"${ENABLE_JIT}" = "xyes"; then
190 AC_DEFINE([ENABLE_JIT], 1, [enable JIT compiler])
194 dnl check if softfloat should be used
195 AC_MSG_CHECKING(whether softfloat should be used)
196 AC_ARG_ENABLE([softfloat],
197 [AS_HELP_STRING(--enable-softfloat,use softfloat [[default=no]])],
198 [case "${enableval}" in
199 yes) ENABLE_SOFTFLOAT=yes;;
200 *) ENABLE_SOFTFLOAT=no;;
202 [ENABLE_SOFTFLOAT=no])
203 AC_MSG_RESULT(${ENABLE_SOFTFLOAT})
205 if test x"${ENABLE_SOFTFLOAT}" = "xyes"; then
206 AC_DEFINE([ENABLE_SOFTFLOAT], 1, [enable softfloat])
210 dnl check for interpreter
211 AC_ARG_ENABLE([intrp], [AS_HELP_STRING(--enable-intrp,enable interpreter [[default=no]])])
213 AC_MSG_CHECKING(whether interpreter should be compiled)
214 if test x"$enable_intrp" = "xyes"; then
216 AC_DEFINE([ENABLE_INTRP], 1, [enable interpreter])
217 AM_CONDITIONAL([ENABLE_INTRP], [true])
224 [AS_HELP_STRING(--with-ffi,use libffi to call native functions)],
226 AC_CHECK_HEADERS([ffi.h],, [AC_MSG_ERROR(cannot find ffi.h)])
227 AC_CHECK_LIB(ffi, ffi_call,, [AC_MSG_ERROR(cannot find libffi)])
228 AC_DEFINE([WITH_FFI], 1, [use libffi])],
231 dnl check for libffcall
232 AC_ARG_WITH([ffcall],
233 [AS_HELP_STRING(--with-ffcall,use libffcall to call native functions)],
235 AC_CHECK_HEADERS([avcall.h],, [AC_MSG_ERROR(cannot find avcall.h)])
236 AC_CHECK_LIB(avcall, __builtin_avcall,, [AC_MSG_ERROR(cannot find libavcall (from libffcall))])
237 AC_DEFINE([WITH_FFCALL], 1, [use libffcall])],
240 dnl check for libffi or libffcall
241 if test x"${WITH_FFI}" = "xyes" -a x"${WITH_FFCALL}" = "xyes"; then
242 AC_ERROR(Enable only libffi or libffcall.)
244 if test x"${WITH_FFI}" = "xno" -a x"${WITH_FFCALL}" = "xno"; then
245 AC_ERROR(Enable one of libffi or libffcall.)
250 AM_CONDITIONAL([ENABLE_INTRP], [false])
254 if test x"${ENABLE_JIT}" = "xno" -a x"${ENABLE_INTRP}" = "xno"; then
255 AC_ERROR(You have to enable at least the JIT or the interpreter.)
259 dnl check for garbage collector usage
260 AC_MSG_CHECKING(whether GC should be disabled)
262 [AS_HELP_STRING(--disable-gc,disable garbage collector (for debugging only!) [[default=yes]])],
263 [case "${enableval}" in
265 AC_DEFINE([DISABLE_GC], 1, [disable garbage collector])
270 AC_MSG_RESULT(${DISABLE_GC})
271 AM_CONDITIONAL([DISABLE_GC], test x"${DISABLE_GC}" = "xyes")
274 dnl check for dump memory usage
275 AC_MSG_CHECKING(whether dump memory should be disabled)
276 AC_ARG_ENABLE([dump],
277 [AS_HELP_STRING(--disable-dump,disable dump memory (for debugging only!) [[default=yes]])],
278 [case "${enableval}" in
281 AC_DEFINE([DISABLE_DUMP], 1, [disable dump memory])
286 AC_MSG_RESULT(${DISABLE_DUMP})
290 AC_MSG_CHECKING(whether debug code generation should be enabled)
291 AC_ARG_ENABLE([debug],
292 [AS_HELP_STRING(--disable-debug,disable debug code generation [[default=yes]])],
293 [case "${enableval}" in
295 AC_DEFINE([NDEBUG], 1, [disable debug code])
301 if test x"${NDEBUG}" = "xno"; then
306 AM_CONDITIONAL([NDEBUG], test x"${NDEBUG}" = "xyes")
309 dnl check for disassembler support
310 AC_MSG_CHECKING(whether disassembler should be enabled)
311 AC_ARG_ENABLE([disassembler],
312 [AS_HELP_STRING(--disable-disassembler,disable disassembler [[default=yes]])],
313 [case "${enableval}" in
314 no) ENABLE_DISASSEMBLER=no;;
315 *) ENABLE_DISASSEMBLER=yes;;
317 [ENABLE_DISASSEMBLER=yes])
318 AC_MSG_RESULT(${ENABLE_DISASSEMBLER})
319 AM_CONDITIONAL([ENABLE_DISASSEMBLER], test x"${ENABLE_DISASSEMBLER}" = "xyes")
321 if test x"${ENABLE_DISASSEMBLER}" = "xyes"; then
322 AC_DEFINE([ENABLE_DISASSEMBLER], 1, [enable disassembler])
324 dnl check for binutils headers and libraries on some architectures for the
326 case "${ARCH_DIR}" in
327 arm | i386 | powerpc | x86_64 )
328 AC_CHECK_HEADER([ansidecl.h],, [AC_MSG_ERROR(cannot find ansidecl.h)])
329 AC_CHECK_HEADER([symcat.h],, [AC_MSG_ERROR(cannot find symcat.h)])
330 AC_CHECK_HEADER([bfd.h],, [AC_MSG_ERROR(cannot find bfd.h)])
331 AC_CHECK_HEADER([dis-asm.h],, [AC_MSG_ERROR(cannot find dis-asm.h)])
335 AC_CHECK_LIB(intl, dcgettext,, [AC_MSG_ERROR(cannot find libintl (from bintuils))])
339 AC_CHECK_LIB(iberty, xstrerror,, [AC_MSG_ERROR(cannot find libiberty (from bintuils))])
340 AC_CHECK_LIB(bfd, bfd_get_arch,, [AC_MSG_ERROR(cannot find libbfd (from bintuils))])
341 AC_CHECK_LIB(opcodes, init_disassemble_info,, [AC_MSG_ERROR(cannot find libopcodes (from bintuils))])
342 AC_DEFINE([WITH_BINUTILS_DISASSEMBLER], 1, [use binutils disassembler])
343 AM_CONDITIONAL([WITH_BINUTILS_DISASSEMBLER], [true])
346 AM_CONDITIONAL([WITH_BINUTILS_DISASSEMBLER], [false])
350 AM_CONDITIONAL([WITH_BINUTILS_DISASSEMBLER], [false])
354 dnl check for statistics
355 AC_MSG_CHECKING(whether statistics generation should be enabled)
356 AC_ARG_ENABLE([statistics],
357 [AS_HELP_STRING(--disable-statistics,disable statistics generation [[default=yes]])],
358 [case "${enableval}" in
359 no) ENABLE_STATISTICS=no;;
360 *) ENABLE_STATISTICS=yes;;
362 [ENABLE_STATISTICS=yes])
363 AC_MSG_RESULT(${ENABLE_STATISTICS})
364 AM_CONDITIONAL([ENABLE_STATISTICS], test x"${ENABLE_STATISTICS}" = "xyes")
366 if test x"${ENABLE_STATISTICS}" = "xyes"; then
367 AC_DEFINE([ENABLE_STATISTICS], 1, [enable statistics])
372 AC_MSG_CHECKING(whether to compile JVMTI support)
373 AC_ARG_ENABLE([jvmti],
374 [AS_HELP_STRING(--enable-jvmti,enable JVMTI [[default=no]])],
375 [case "${enableval}" in
376 yes) ENABLE_JVMTI=yes;;
380 AC_MSG_RESULT(${ENABLE_JVMTI})
381 AM_CONDITIONAL([ENABLE_JVMTI], test x"${ENABLE_JVMTI}" = "xyes")
383 if test x"${ENABLE_JVMTI}" = "xyes"; then
384 AC_DEFINE([ENABLE_JVMTI], 1, [use JVMTI])
389 AC_ARG_ENABLE([threads], [AS_HELP_STRING(--enable-threads,enable threads support (none,green,native) [[default=native]])])
390 AC_ARG_ENABLE([__thread], [AS_HELP_STRING(--enable-__thread,use TLS features)], [use__thread=$enableval], [use__thread=no])
392 AC_MSG_CHECKING(whether to include threads support)
393 enable_threads=${enable_threads:-native}
394 case "$enable_threads" in
397 dnl no threads for boehm
398 ac_configure_args="$ac_configure_args --disable-boehm-threads"
399 AM_CONDITIONAL([USE_THREADS], [false])
400 AM_CONDITIONAL([NATIVE_THREADS], [false])
403 green | native | posix | pthreads)
404 AC_DEFINE([USE_THREADS], 1, [use threads])
406 AM_CONDITIONAL([USE_THREADS], [true])
408 if test x"$enable_threads" != "xgreen"; then
409 AC_MSG_RESULT(yes, native)
410 AC_CHECK_LIB(pthread, main)
411 AC_DEFINE([NATIVE_THREADS], 1, [use pthreads])
413 CFLAGS="$CFLAGS -D_REENTRANT"
415 dnl tell boehm to support threads as well
416 ac_configure_args="$ac_configure_args --enable-boehm-threads=posix"
417 AM_CONDITIONAL([NATIVE_THREADS], [true])
420 AC_MSG_RESULT(yes, green)
422 dnl no threads for boehm
423 ac_configure_args="$ac_configure_args --disable-boehm-threads"
424 AM_CONDITIONAL([NATIVE_THREADS], [false])
428 AC_MSG_ERROR($enable_threads is an unknown thread package)
433 dnl Check whether the compiler supports the __thread keyword.
434 if test "x$use__thread" != xno; then
435 AC_CACHE_CHECK([for __thread], ac_cv_gcc___thread,
436 [cat > conftest.c <<\EOF
439 if AC_TRY_COMMAND([${CC-cc} $CFLAGS -c conftest.c >&AS_MESSAGE_LOG_FD]); then
440 ac_cv_gcc___thread=yes
442 ac_cv_gcc___thread=no
445 if test "$ac_cv_gcc___thread" = yes; then
446 AC_DEFINE([HAVE___THREAD], 1, [have __thread])
449 ac_cv_gcc___thread=no
453 dnl check if if-conversion should be supported
454 AC_MSG_CHECKING(whether if-conversion should be supported)
455 AC_ARG_ENABLE([ifconv],
456 [AS_HELP_STRING(--disable-ifconv,disable if-conversion [[default=yes]])],
457 [case "${enableval}" in
458 no) ENABLE_IFCONV=no;;
459 *) ENABLE_IFCONV=yes;;
462 AC_MSG_RESULT(${ENABLE_IFCONV})
463 AM_CONDITIONAL([ENABLE_IFCONV], test x"${ENABLE_IFCONV}" = "xyes")
465 if test x"${ENABLE_IFCONV}" = "xyes"; then
466 AC_DEFINE([ENABLE_IFCONV], 1, [enable if-conversion])
470 dnl check for inlining
471 AC_MSG_CHECKING(whether method inlining should be supported)
472 AC_ARG_ENABLE([inlining],
473 [AS_HELP_STRING(--disable-inlining,disable method inlining [[default=yes]])],
474 [case "${enableval}" in
475 no) ENABLE_INLINING=no;;
476 *) ENABLE_INLINING=yes;;
478 [ENABLE_INLINING=yes])
479 AC_MSG_RESULT(${ENABLE_INLINING})
480 AM_CONDITIONAL([ENABLE_INLINING], test x"${ENABLE_INLINING}" = "xyes")
482 if test x"${ENABLE_INLINING}" = "xyes"; then
483 AC_DEFINE([ENABLE_INLINING], 1, [use method inlining])
487 dnl check for loop optimization
488 AC_MSG_CHECKING(whether loop optimization should be supported)
489 AC_ARG_ENABLE([loop],
490 [AS_HELP_STRING(--disable-loop,disable loop optimization [[default=yes]])],
491 [case "${enableval}" in
496 AC_MSG_RESULT(${ENABLE_LOOP})
497 AM_CONDITIONAL([ENABLE_LOOP], test x"${ENABLE_LOOP}" = "xyes")
499 if test x"${ENABLE_LOOP}" = "xyes"; then
500 AC_DEFINE([ENABLE_LOOP], 1, [use loop optimization])
504 dnl check if linear scan register allocator(lsra) should be used
505 AC_MSG_CHECKING(whether lsra should be supported)
506 AC_ARG_ENABLE([lsra],
507 [AS_HELP_STRING(--disable-lsra,disable linear scan register allocator [[default=yes]])],
508 [case "${enableval}" in
513 AC_MSG_RESULT(${ENABLE_LSRA})
514 AM_CONDITIONAL([ENABLE_LSRA], test x"${ENABLE_LSRA}" = "xyes")
516 if test x"${ENABLE_LSRA}" = "xyes"; then
517 AC_DEFINE([ENABLE_LSRA], 1, [enable lsra])
521 dnl check if profiling should be supported
522 AC_MSG_CHECKING(whether profiling should be supported)
523 AC_ARG_ENABLE([profiling],
524 [AS_HELP_STRING(--disable-profiling,disable profiling [[default=yes]])],
525 [case "${enableval}" in
526 no) ENABLE_PROFILING=no;;
527 *) ENABLE_PROFILING=yes;;
529 [ENABLE_PROFILING=yes])
530 AC_MSG_RESULT(${ENABLE_PROFILING})
531 AM_CONDITIONAL([ENABLE_PROFILING], test x"${ENABLE_PROFILING}" = "xyes")
533 if test x"${ENABLE_PROFILING}" = "xyes"; then
534 AC_DEFINE([ENABLE_PROFILING], 1, [enable profiling])
538 dnl check for instruction scheduler
539 AC_ARG_ENABLE([scheduler], [AS_HELP_STRING(--enable-scheduler,enable instruction scheduler [[default=no]])])
541 AC_MSG_CHECKING(whether instruction scheduler should be supported)
542 if test x"${USE_SCHEDULER}" = "x1" -o x"$enable_scheduler" = "xyes"; then
543 case "${ARCH_DIR}" in
547 AC_MSG_ERROR(instruction scheduler is not available for ${ARCH_DIR} code generator)
552 AC_DEFINE([USE_SCHEDULER], 1, [use scheduler])
553 AM_CONDITIONAL([USE_SCHEDULER], [true])
556 AM_CONDITIONAL([USE_SCHEDULER], [false])
560 dnl check if zlib should be used
561 AC_MSG_CHECKING(whether ZIP/JAR archives should be supported)
562 AC_ARG_ENABLE([zlib],
563 [AS_HELP_STRING(--disable-zlib,disable ZIP/JAR archive support (needs zlib) [[default=yes]])],
564 [case "${enableval}" in
569 AC_MSG_RESULT(${ENABLE_ZLIB})
571 if test x"${ENABLE_ZLIB}" = "xyes"; then
572 AC_CHECK_HEADERS([zconf.h],, [AC_MSG_ERROR(cannot find zconf.h)])
573 AC_CHECK_HEADERS([zlib.h],, [AC_MSG_ERROR(cannot find zlib.h)])
574 AC_CHECK_LIB(z, inflate,, [AC_MSG_ERROR(cannot find libz)])
575 AC_DEFINE([ENABLE_ZLIB], 1, [use zlib])
578 VM_ZIP_STRING=classes/
580 AC_DEFINE_UNQUOTED(VM_ZIP_STRING, "${VM_ZIP_STRING}", [define to the string base name of the VM zip file])
581 AC_SUBST(VM_ZIP_STRING)
582 AM_CONDITIONAL([ENABLE_ZLIB], test x"${ENABLE_ZLIB}" = "xyes")
585 dnl check if a libjvm.so should be built
586 AC_MSG_CHECKING(whether to build a libjvm.so)
587 AC_ARG_ENABLE([libjvm],
588 [AS_HELP_STRING(--disable-libjvm,build a libjvm.so [[default=yes]])],
589 [case "${enableval}" in
590 no) ENABLE_LIBJVM=no;;
591 *) ENABLE_LIBJVM=yes;;
594 AC_MSG_RESULT(${ENABLE_LIBJVM})
595 AM_CONDITIONAL([ENABLE_LIBJVM], test x"${ENABLE_LIBJVM}" = "xyes")
596 AC_SUBST(ENABLE_LIBJVM)
598 if test x"${ENABLE_LIBJVM}" = "xyes"; then
599 AC_DEFINE([ENABLE_LIBJVM], 1, [enable libjvm.so])
601 dnl set AC_ENABLE_SHARED and AC_DISABLE_STATIC properly
614 dnl check if CACAO should be linked statically
615 AC_MSG_CHECKING(whether to link CACAO statically)
616 AC_ARG_ENABLE([staticvm],
617 [AS_HELP_STRING(--enable-staticvm,link CACAO statically [[default=no]])],
618 [case "${enableval}" in
619 yes) ENABLE_STATICVM=yes
620 AC_DEFINE([ENABLE_STATICVM], 1, [link CACAO statically])
622 *) ENABLE_STATICVM=no;;
624 [ENABLE_STATICVM=no])
625 AC_MSG_RESULT(${ENABLE_STATICVM})
626 AM_CONDITIONAL([ENABLE_STATICVM], test x"${ENABLE_STATICVM}" = "xyes")
627 AC_SUBST(ENABLE_STATICVM)
630 dnl is GNU classpath installed somewhere different
631 AC_MSG_CHECKING(where GNU Classpath is installed)
632 AC_ARG_WITH([classpath-prefix],
633 [AS_HELP_STRING(--with-classpath-prefix=<dir>,installation directory of GNU Classpath [[default=/usr/local/classpath]])],
634 [CLASSPATH_PREFIX=${withval}],
635 [CLASSPATH_PREFIX=/usr/local/classpath])
636 AC_MSG_RESULT(${CLASSPATH_PREFIX})
637 AC_DEFINE_UNQUOTED([CLASSPATH_PREFIX], "${CLASSPATH_PREFIX}", [GNU Classpath installation directory])
638 AC_SUBST(CLASSPATH_PREFIX)
640 AC_MSG_CHECKING(where GNU Classpath libraries are installed)
641 AC_ARG_WITH([classpath-libdir],
642 [AS_HELP_STRING(--with-classpath-libdir=<dir>,installation directory of GNU Classpath libraries [[default=/usr/local/classpath/lib]])],
643 [CLASSPATH_LIBDIR=${withval}],
644 [CLASSPATH_LIBDIR=${CLASSPATH_PREFIX}/lib])
645 AC_MSG_RESULT(${CLASSPATH_LIBDIR})
647 dnl expand CLASSPATH_LIBDIR to something that is usable in C code
648 AS_AC_EXPAND([CLASSPATH_LIBDIR], ${CLASSPATH_LIBDIR})
649 AC_DEFINE_UNQUOTED([CLASSPATH_LIBDIR], "${CLASSPATH_LIBDIR}", [GNU Classpath libraries installation directory])
650 AC_SUBST(CLASSPATH_LIBDIR)
652 AC_CHECK_HEADER([${CLASSPATH_PREFIX}/include/jni.h],
653 [AC_DEFINE_UNQUOTED([CLASSPATH_JNI_H], "${CLASSPATH_PREFIX}/include/jni.h", [GNU Classpath jni.h header])],
654 [AC_MSG_ERROR(cannot find jni.h)])
657 dnl check if GNU Classpath should be linked statically into CACAO
658 AC_MSG_CHECKING(whether to link GNU Classpath native libraries statically into CACAO)
659 AC_ARG_WITH([static-classpath],
660 [AS_HELP_STRING(--with-static-classpath,link GNU classpath native libraries statically into CACAO [[default=no]])],
661 [case "${enableval}" in
662 yes) WITH_STATIC_CLASSPATH=yes;;
663 *) WITH_STATIC_CLASSPATH=no;;
665 [WITH_STATIC_CLASSPATH=no])
666 AC_MSG_RESULT(${WITH_STATIC_CLASSPATH})
668 if test x"${WITH_STATIC_CLASSPATH}" = "xyes"; then
669 AC_DEFINE([WITH_STATIC_CLASSPATH], 1, [link GNU classpath native libraries statically into CACAO])
671 dnl check for some classpath related stuff when we link statically
674 AC_CHECK_HEADERS([ltdl.h],, [AC_MSG_ERROR(cannot find ltdl.h)])
675 AC_CHECK_LIB(ltdl, lt_dlopen,, [AC_MSG_ERROR(cannot find libltdl)])
677 AM_CONDITIONAL([WITH_STATIC_CLASSPATH], test x"${WITH_STATIC_CLASSPATH}" = "xyes")
678 AC_SUBST(WITH_STATIC_CLASSPATH)
681 dnl Maybe the user has Classpath installed 'flat'.
682 AC_ARG_WITH([flat-classpath],
683 [AS_HELP_STRING(--with-flat-classpath, GNU Classpath is not zipped in the install directory)])
685 if test x"$with_flat_classpath" = "x"; then
686 GLIBJ_ZIP_STRING=glibj.zip
690 AC_SUBST(GLIBJ_ZIP_STRING)
691 AC_DEFINE_UNQUOTED(GLIBJ_ZIP_STRING, "$GLIBJ_ZIP_STRING", [define to the string base name of the classpath zip file])
694 dnl check for some programs we need
699 dnl now configure subpackages
700 dnl the export is not my favorite (is there another way?)
702 AC_CONFIG_SUBDIRS(src/boehm-gc)
705 AC_CONFIG_FILES([Makefile]
707 [contrib/setenvinstalled]
708 [contrib/setenvsource]
710 [doc/handbook/Makefile]
714 [src/cacaoh/Makefile]
715 [src/fdlibm/Makefile]
718 [src/native/Makefile]
719 [src/native/include/Makefile]
720 [src/native/jvmti/Makefile]
721 [src/native/tools/Makefile]
722 [src/native/vm/Makefile]
723 [src/scripts/Makefile]
725 [src/scripts/rmiregistry]
726 [src/threads/Makefile]
727 [src/threads/green/Makefile]
728 [src/threads/native/Makefile]
729 [src/toolbox/Makefile]
731 [src/vm/jit/Makefile]
732 [src/vm/jit/allocator/Makefile]
733 [src/vm/jit/alpha/Makefile]
734 [src/vm/jit/alpha/freebsd/Makefile]
735 [src/vm/jit/alpha/linux/Makefile]
736 [src/vm/jit/i386/Makefile]
737 [src/vm/jit/i386/freebsd/Makefile]
738 [src/vm/jit/i386/linux/Makefile]
739 [src/vm/jit/intrp/Makefile]
740 [src/vm/jit/inline/Makefile]
741 [src/vm/jit/loop/Makefile]
742 [src/vm/jit/mips/Makefile]
743 [src/vm/jit/mips/irix/Makefile]
744 [src/vm/jit/mips/linux/Makefile]
745 [src/vm/jit/powerpc/Makefile]
746 [src/vm/jit/powerpc/darwin/Makefile]
747 [src/vm/jit/powerpc/linux/Makefile]
748 [src/vm/jit/profile/Makefile]
749 [src/vm/jit/schedule/Makefile]
750 [src/vm/jit/tools/Makefile]
751 [src/vm/jit/verify/Makefile]
752 [src/vm/jit/x86_64/Makefile]
754 [tests/regression/Makefile]
755 [tests/regression/codepatching/Makefile]
756 [tests/regression/native/Makefile])
763 ## indent-tabs-mode: t
766 ## compile-command: "automake --add-missing"