From: Dana Jansens Date: Tue, 20 May 2003 05:16:49 +0000 (+0000) Subject: fuck it, put it back X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=d1ccdfc97a1035f461c987b09b35ebc7bffa471d;p=chaz%2Fopenbox fuck it, put it back --- diff --git a/m4/openbox.m4 b/m4/openbox.m4 index 55988650..d3e522cd 100644 --- a/m4/openbox.m4 +++ b/m4/openbox.m4 @@ -7,17 +7,6 @@ AC_DEFUN([OB_DEBUG], [ AC_MSG_CHECKING([build type]) - DEFAULTDEBUG="no" - - # cvs builds are always debug - CVS="" - test "${PACKAGE_VERSION%*cvs}" != "$PACKAGE_VERSION" && CVS="yes" - test "$CVS" = "yes" && DEFAULTDEBUG="yes" - - AC_ARG_ENABLE([debug], - [ --enable-debug build a debug version default=$DEFAULTDEBUG], - [DEBUG=$enableval], [DEBUG=$DEFAULTDEBUG]) - AC_ARG_ENABLE([strict-ansi], [ --enable-strict-ansi Enable strict ANSI compliance build default=no], [STRICT=$enableval], [STRICT="no"]) @@ -25,6 +14,15 @@ AC_DEFUN([OB_DEBUG], CFLAGS="$CFLAGS -ansi -pedantic -D_XOPEN_SOURCE" fi + AC_ARG_ENABLE([debug], + [ --enable-debug build a debug version default=no], + [DEBUG=$enableval], [DEBUG="no"]) + + # cvs builds are always debug + CVS="" + test "${PACKAGE_VERSION%*cvs}" != "$PACKAGE_VERSION" && CVS="yes" + test "$CVS" = "yes" && DEFAULTDEBUG="yes" + if test "$DEBUG" = "yes"; then MSG="DEBUG" else