summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-28 10:10:20 +0100
committerraveit65 <[email protected]>2021-01-07 20:45:49 +0100
commite1883c2a66d43c6a7cd839af87a6bcf995d257e2 (patch)
tree40d28ce794d968f223448677a274096245de1699
parented1de4a6993cc4a711324d7733e831d445305e81 (diff)
downloadmate-menus-e1883c2a66d43c6a7cd839af87a6bcf995d257e2.tar.bz2
mate-menus-e1883c2a66d43c6a7cd839af87a6bcf995d257e2.tar.xz
build: Set debug symbols and logging using --enable-debug
-rw-r--r--configure.ac24
1 files changed, 10 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac
index cae0ea2..693bc03 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,6 +10,7 @@ AC_CONFIG_HEADERS(config.h)
AM_MAINTAINER_MODE
MATE_MAINTAINER_MODE_DEFINES
+MATE_DEBUG_CHECK([no])
MATE_COMPILE_WARNINGS
# Before making a release, the LT_VERSION string should be modified.
@@ -50,22 +51,17 @@ if test "x$enable_deprecation_flags" = "xyes"; then
AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
fi
-dnl --enable-debug=(yes|minimum|no)
-AC_ARG_ENABLE(debug,
- [AC_HELP_STRING([--enable-debug],
- [turn on debugging @<:@default=minimum@:>@])],,
- [enable_debug=minimum])
-if test "$enable_debug" = "yes"; then
- DEBUG_CFLAGS="-DG_ENABLE_DEBUG"
-else
- if test "x$enable_debug" = "xno"; then
+dnl --enable-debug=(yes/info/profile/no)
+AS_CASE([$ax_enable_debug],
+ [yes|info], [
+ DEBUG_CFLAGS="-DG_ENABLE_DEBUG"
+ ],
+ [no], [
DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
- else
+ ],
+ [
DEBUG_CFLAGS=""
- # make sure we have the right string for the configure summary
- enable_debug="minimum"
- fi
-fi
+ ])
AC_SUBST(DEBUG_CFLAGS)
GOBJECT_INTROSPECTION_CHECK([0.6.7])