move DEBUG_libfirm to config.h we shouldn't depend on it in public API
authorMatthias Braun <matze@braunis.de>
Sat, 11 Oct 2008 17:24:44 +0000 (17:24 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 11 Oct 2008 17:24:44 +0000 (17:24 +0000)
[r22696]

configure.ac
firm_config.h.in

index 824aa07..e48c47d 100644 (file)
@@ -50,10 +50,8 @@ AC_ARG_ENABLE([debug],
 [AS_HELP_STRING([--disable-debug], [disable verifiers and additional debugging routines])],
 [enable_debug_libfirm="$enableval"], [enable_debug_libfirm="yes"])
 if test "$enable_debug_libfirm" = yes; then
-       FIRMCONFIG_DEBUG_libfirm="#define DEBUG_libfirm"
+       AC_DEFINE([DEBUG_libfirm], [], [define to enable debug mode and checks])
 fi
-AC_SUBST([FIRMCONFIG_DEBUG_libfirm])
-AC_SUBST([enable_debug_libfirm])
 
 AC_ARG_ENABLE([assert],
 [AS_HELP_STRING([--disable-assert], [disable assertions])],
index cc6535a..0dcc5a2 100644 (file)
@@ -1,6 +1,3 @@
-/* define to 1 to enable debugging stuff. */
-@FIRMCONFIG_DEBUG_libfirm@
-
 /* define to 1 to use the ILP solver */
 @FIRMCONFIG_WITH_ILP@