diff options
author | Reinhard Nißl <rnissl@gmx.de> | 2007-04-10 21:54:12 +0200 |
---|---|---|
committer | Reinhard Nißl <rnissl@gmx.de> | 2007-04-10 21:54:12 +0200 |
commit | cef40051eaa2199b20973217604f33a9eec75eda (patch) | |
tree | dd283ada79b60e966e54a465fea9dd7131deacdf | |
parent | 2db5cee0a753b0430a3d3f1fe2af5d5538fb49eb (diff) | |
download | xine-lib-cef40051eaa2199b20973217604f33a9eec75eda.tar.gz xine-lib-cef40051eaa2199b20973217604f33a9eec75eda.tar.bz2 |
Have configure option --enable-debug turn on debug code.
-rw-r--r-- | configure.ac | 8 |
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 --------------------------------------------- |