+dnl enable Firm hooks
+dnl -------------
+AC_ARG_ENABLE(hooks,
+[ --disable-hooks disable Firm hooks],
+[if test "$enableval" = yes; then
+ AC_DEFINE(FIRM_ENABLE_HOOKS)
+fi],
+AC_DEFINE(FIRM_ENABLE_HOOKS)
+)
+
+dnl enable Firm inplace edges
+dnl -------------
+AC_ARG_ENABLE(inplace_edges,
+[ --disable-inplace-edges disable Firm inplace edges],
+[if test "$enableval" = yes; then
+ AC_DEFINE(FIRM_EDGES_INPLACE)
+fi],
+AC_DEFINE(FIRM_EDGES_INPLACE)
+)
+
+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 enable libcore debugging support
+dnl --------------------------------
+AC_ARG_ENABLE(libcore,
+[ --enable-libcore enable libcore debugging],
+[if test "$enableval"=yes; then
+ AC_DEFINE(WITH_LIBCORE)
+fi])
+AC_SUBST(enable_libcore)
+
+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