summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a8bc9b8a6..4ecb5bce7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2582,9 +2582,15 @@ esac
AC_SUBST([NOUNDEF])
dnl Common cflags for all platforms
-CFLAGS="-DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE \$(MULTIPASS_CFLAGS) $warnflags $CFLAGS"
+CFLAGS="-D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE \$(MULTIPASS_CFLAGS) $warnflags $CFLAGS"
DEBUG_CFLAGS="-D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE $DEBUG_CFLAGS"
+if test "x$enable_debug" = "xyes"; then
+ CFLAGS="$CFLAGS -DDEBUG"
+else
+ CFLAGS="$CFLAGS -DNDEBUG"
+fi
+
dnl ---------------------------------------------
dnl Output configuration files
dnl ---------------------------------------------