summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-10-11 13:07:18 +0200
committerraveit65 <[email protected]>2019-10-12 13:36:25 +0200
commitc3b5e1eee60eb998566b77f4a6c781fcee6877e2 (patch)
tree5927913cbd5e81290b192536c12e5c2a30221a27 /configure.ac
parent21c0318f701f8ff2b4a0d183b61cb0de6b064997 (diff)
downloadmate-screensaver-c3b5e1eee60eb998566b77f4a6c781fcee6877e2.tar.bz2
mate-screensaver-c3b5e1eee60eb998566b77f4a6c781fcee6877e2.tar.xz
Set compiler debug flags / logging with MATE_DEBUG_CHECK
Test: ./autogen.sh --disable-silent-rules --disable-debug --prefix=/usr & make ./autogen.sh --disable-silent-rules --enable-debug --prefix=/usr & make ./autogen.sh --disable-silent-rules --enable-debug=yes/info/profile/no --prefix=/usr & make
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index ff6f819..bc11def 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,6 +14,7 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_HEADERS(config.h)
AM_MAINTAINER_MODE
+MATE_DEBUG_CHECK([no])
MATE_COMPILE_WARNINGS([yes])
IT_PROG_INTLTOOL([0.50.1])
@@ -1053,13 +1054,12 @@ prefix=$old_prefix
exec_prefix=$old_exec_prefix
#
-# Enable Debug
+# Enable Debug Log
#
-AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug=[no/yes]], [turn on debugging])],, enable_debug=yes)
-if test "$enable_debug" = "yes"; then
+if test "$ax_enable_debug" = "yes"; then
DEBUG_CFLAGS="-DG_ENABLE_DEBUG"
else
- if test "x$enable_debug" = "xno"; then
+ if test "x$ax_enable_debug" = "xno"; then
DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
else
DEBUG_CFLAGS=""