summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-10-01 17:28:12 +0000
committerDana Jansens <danakj@orodu.net>2003-10-01 17:28:12 +0000
commit6f5292c87ece138a2b80d102ba0919b105b1839a (patch)
tree02cfee90c7c8198467a019f10b79b5f7fd8422a7 /m4
parent825426373cec4e4cc25f5056b2b54bb00ab28653 (diff)
define DEBUG, NDEBUG, and G_DISABLE_ASSERTS
Diffstat (limited to 'm4')
-rw-r--r--m4/openbox.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/m4/openbox.m4 b/m4/openbox.m4
index 7c19ab4b..db592e91 100644
--- a/m4/openbox.m4
+++ b/m4/openbox.m4
@@ -61,12 +61,18 @@ AC_DEFUN([OB_COMPILER_FLAGS],
FLAGS=""
+ if test "$DEBUG" = "yes"; then
+ FLAGS="-DDEBUG"
+ else
+ FLAGS="-DNDEBUG -DG_DISABLE_ASSERT"
+ fi
+
# Check what compiler we are using
AC_MSG_CHECKING([for GNU CC])
if test "$GCC" = "yes"; then
AC_MSG_RESULT([yes])
if test "$DEBUG" = "yes"; then
- FLAGS="-g -fno-inline"
+ FLAGS="$FLAGS -g -fno-inline"
FLAGS="$FLAGS -Wall -Wsign-compare -Waggregate-return"
FLAGS="$FLAGS -Wcast-qual -Wbad-function-cast -Wpointer-arith"
# for Python.h