dnl generate the config header file
AC_CONFIG_HEADER(config.h)
+AH_TOP([
+
+])
+
+AH_BOTTOM([
+#ifdef USE_INLINING
+#define INLINE inline
+#else
+#define INLINE
+#endif
+
+/* Firm statistics need hooks */
+#ifdef FIRM_STATISTICS
+#ifndef FIRM_ENABLE_HOOKS
+#define FIRM_ENABLE_HOOKS
+#endif
+#endif
+])
+
dnl keep track of the environment set by the user
libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
AC_SUBST(libfirm_conf_env)
AC_ARG_ENABLE(debug,
[ --enable-debug enable assertions and additional debugging routines],
[if test "$enableval" = yes; then
- AC_DEFINE(DEBUG_libfirm)
+ AC_DEFINE([DEBUG_libfirm], [], [define to enable debugging stuff])
else
- AC_DEFINE(NDEBUG)
+ AC_DEFINE([NDEBUG], [], [Define to disable assertion checking.])
fi])
AC_SUBST(enable_debug_libfirm)