-dnl disable linking of libiberty parts (xmalloc, xprintf, obstack, ...)
-dnl ----------------------
-AC_ARG_ENABLE(libiberty,
-[ --disable-libiberty disable own libiberty parts],
-[if test "$enableval"=yes; then
- disable_libiberty_=yes
-fi],
-[disable_libiberty=no])
-AC_SUBST(disable_libiberty)
+dnl set heap analyses support
+dnl -------------------------
+AC_ARG_ENABLE([heapanalysis],
+[AS_HELP_STRING([--enable-heapanalysis], [Compile with heap analysis.])],
+[enable_heapanalysis=$enableval], [enable_heapanalysis="no"])
+
+if test "$enable_heapanalysis" = "yes"; then
+ AC_DEFINE([DO_HEAPANALYSIS], [], [enable heap analysis])
+fi
+AC_SUBST([enable_heapanalysis])
+
+dnl enable Firm hooks
+dnl -------------
+AC_ARG_ENABLE([hooks],
+[AS_HELP_STRING([--disable-hooks], [disable Firm hooks])],
+[enable_hooks="$enableval"], [enable_hooks="yes"])
+
+if test "$enable_hooks" = yes; then
+ AC_DEFINE([FIRM_ENABLE_HOOKS], [], [enable firm hooks])
+fi
+
+dnl enable Firm statistics
+dnl -------------
+AC_ARG_ENABLE([statistics],
+[AS_HELP_STRING([--enable-statistics], [enable Firm statistics])],
+[enable_statistics="$enableval"], [enable_statistics="no"])
+
+if test "$enable_statistics" = yes; then
+ AC_DEFINE([FIRM_STATISTICS], [], [enable statistics code])
+fi
+AC_SUBST([enable_statistics])
+
+dnl enable libcore support
+dnl --------------------------------
+AC_ARG_ENABLE([libcore],
+[AS_HELP_STRING([--disable-libcore], [disable libcore support])],
+[enable_libcore="$enableval"],[enable_libcore="yes"])
+
+AC_SUBST([enable_libcore])
+
+dnl enable ILP solver support
+dnl --------------------------------
+AC_ARG_ENABLE([ilp],
+[AS_HELP_STRING([--enable-ilp], [enable ilp solver])],
+[enable_ilp="$enableval"], [enable_ilp="no"])
+
+if test "$enable_ilp" = yes; then
+ AC_DEFINE([WITH_ILP], [], [compile with ilp solver support])
+fi
+AC_SUBST(enable_ilp)
+
+dnl enable JVM calling from Firm
+dnl --------------------------------
+AC_ARG_ENABLE([jvm],
+[AS_HELP_STRING([--enable-jvm], [enable to call the jvm])],
+[enable_jvm="$enableval"], [enable_jvm="no"])