+dnl set auto documentation
+dnl ----------------------
+AC_ARG_ENABLE(autodoc,
+[ --enable-autodoc enable auto documentation],
+[if test "$enableval"=yes; then
+ enable_auto_documentation=yes
+fi],
+[enable_auto_documentation=no])
+AC_SUBST(enable_auto_documentation)
+
+
+dnl set firm jni
+dnl ------------
+AC_ARG_ENABLE(firmjni,
+[ --enable-firmjni check for tools necesarry to construct a java native interface for Firm],
+[if test "$enableval"=yes; then
+ enable_firm_jni=yes
+fi],
+[enable_firm_jni=no])
+AC_SUBST(enable_firm_jni)
+
+dnl set heap analyses support
+dnl -------------------------
+AC_ARG_ENABLE(heapanalysis, [ --enable-heapanalysis Compile with heap analysis.],
+ [enable_heapanalysis=$enableval], [enable_heapanalysis="no"])
+if test "$enable_heapanalysis" = "no"; then
+ AC_MSG_RESULT([heapanalysis disabled])
+else
+ AC_DEFINE(DO_HEAPANALYSIS)
+ AC_MSG_RESULT([heapanalysis enabled])
+fi
+AC_SUBST(enable_heapanalysis)
+
+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 enable Firm statistics
+dnl -------------
+AC_ARG_ENABLE(statistics,
+[ --enable-statistics enable Firm statistics],
+[if test "$enableval"=yes; then
+ AC_DEFINE(FIRM_STATISTICS)
+fi])
+AC_SUBST(enable_statistics)
+
+dnl disable external effects in XML
+dnl -------------------------------
+AC_MSG_CHECKING([for using external effects in xml2])
+AC_ARG_ENABLE(external-effects,
+[ --disable-external-effects disable descriptions of external effects in XML],
+[if test "$enableval"="no"; then
+ enable_external_effects=no
+fi],
+[enable_external_effects=yes])
+AC_SUBST(enable_external_effects)
+if test "$enable_external_effects" == no; then
+ AC_MSG_RESULT([disabled])
+else
+ AC_MSG_RESULT([enabled])
+fi
+dnl check for header and library below