-dnl check for garbage collector usage
-AC_ARG_ENABLE([gc], [AS_HELP_STRING(--enable-gc,enable garbage collector support (none,boehm,cacao) [[default=boehm]])])
-AC_MSG_CHECKING(whether GC should be enabled)
-enable_gc=${enable_gc:-boehm}
-case "$enable_gc" in
-no | none)
- AC_DEFINE([DISABLE_GC], 1, [disable garbage collector])
- ENABLE_GC=none
- AC_MSG_RESULT(no)
- ;;
-
-boehm)
- AC_DEFINE([ENABLE_GC_BOEHM], 1, [enable conservative boehm-gc])
- ENABLE_GC=boehm
- AC_MSG_RESULT(yes, boehm-gc)
- ;;
-
-cacao)
- AC_DEFINE([ENABLE_GC_CACAO], 1, [enable exact cacao-gc])
- ENABLE_GC=cacao
- AC_MSG_RESULT(yes, cacao-gc)
- ;;
-
-*)
- AC_MSG_ERROR($enable_gc is an unknown garbage collector package)
- ;;
-esac
-AM_CONDITIONAL([DISABLE_GC], test x"${ENABLE_GC}" = "xnone")
-AM_CONDITIONAL([ENABLE_GC_BOEHM], test x"${ENABLE_GC}" = "xboehm")
-AM_CONDITIONAL([ENABLE_GC_CACAO], test x"${ENABLE_GC}" = "xcacao")
-
-
-
-dnl check for dump memory usage
-AC_MSG_CHECKING(whether dump memory should be disabled)
-AC_ARG_ENABLE([dump],
- [AS_HELP_STRING(--disable-dump,disable dump memory (for debugging only!) [[default=yes]])],
- [case "${enableval}" in
- no)
- DISABLE_DUMP=yes
- AC_DEFINE([DISABLE_DUMP], 1, [disable dump memory])
- ;;
- *) DISABLE_DUMP=no;;
- esac],
- [DISABLE_DUMP=no])
-AC_MSG_RESULT(${DISABLE_DUMP})
-
-
-dnl check for debug
-AC_MSG_CHECKING(whether debug code generation should be enabled)
-AC_ARG_ENABLE([debug],
- [AS_HELP_STRING(--disable-debug,disable debug code generation [[default=yes]])],
- [case "${enableval}" in
- no) NDEBUG=yes
- AC_DEFINE([NDEBUG], 1, [disable debug code])
- ;;
- *) NDEBUG=no;;
- esac],
- [NDEBUG=no])
-
-if test x"${NDEBUG}" = "xno"; then
- AC_MSG_RESULT(yes)
-else
- AC_MSG_RESULT(no)
-fi
-AM_CONDITIONAL([NDEBUG], test x"${NDEBUG}" = "xyes")