X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=configure.in;h=04532d8a06a02be6fb7f788b5a07f4a6e06366ce;hb=91ba1eff56d080774e7e40c31c6570344d23b3d2;hp=2919b2f8db5f3dc208519a32abf62d46150e9b78;hpb=d35e1d190db2773afd249cb50782ebfb6bf5eabf;p=libfirm diff --git a/configure.in b/configure.in index 2919b2f8d..04532d8a0 100644 --- a/configure.in +++ b/configure.in @@ -28,6 +28,25 @@ ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/net/Makefile i 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) @@ -89,9 +108,9 @@ dnl ------------- 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)