X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=m4%2Fopenbox.m4;h=b1169907b1a05df0616c57aa7a8e344119807d4e;hb=25a5b729090f48d27f754016280b4a54de9eef21;hp=cd76bb634ab51ad4c74b73af80f823c57e69ffa6;hpb=be56b6d1620e61c2b9b655a9925f8b0ba1c3c3b8;p=chaz%2Fopenbox diff --git a/m4/openbox.m4 b/m4/openbox.m4 index cd76bb63..b1169907 100644 --- a/m4/openbox.m4 +++ b/m4/openbox.m4 @@ -10,12 +10,17 @@ AC_DEFUN([OB_DEBUG], AC_ARG_ENABLE([debug], [ --enable-debug build a debug version default=no], [DEBUG=$enableval],[]) + + # cvs builds are always debug + test "${VERSION%*cvs}" != "$VERSION" && DEBUG="yes" + if test "$DEBUG" = "yes"; then - AC_MSG_RESULT([debug]) + AC_MSG_RESULT([DEBUG]) AC_DEFINE([DEBUG], [1], [Creating a debug build]) else - AC_MSG_RESULT([release]) - AC_DEFINE([NDEBUG], [1], [Creating a release build]) + AC_MSG_RESULT([RELEASE]) +# keep the asserts in +# AC_DEFINE([NDEBUG], [1], [Creating a release build]) fi ]) @@ -61,5 +66,3 @@ AC_DEFUN([OB_COMPILER_FLAGS], AC_MSG_RESULT([$FLAGS]) CXXFLAGS="$CXXFLAGS $FLAGS" ]) - -