diff options
author | rbuj <[email protected]> | 2021-01-27 11:20:33 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-06 21:27:39 +0100 |
commit | e1431577975f16550213502f5e6767db240c5124 (patch) | |
tree | dab0a1cf9a99a194d3cf1540ae5557169f9edb80 /configure.ac | |
parent | f831e5f9db052aec2bfa61177d0bef671cf85c6a (diff) | |
download | mate-menus-e1431577975f16550213502f5e6767db240c5124.tar.bz2 mate-menus-e1431577975f16550213502f5e6767db240c5124.tar.xz |
Set compiler debug flags / logging with MATE_DEBUG_CHECK
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac index 9a2a802..1a3713e 100644 --- a/configure.ac +++ b/configure.ac @@ -51,17 +51,18 @@ if test "x$enable_deprecation_flags" = "xyes"; then AC_SUBST(DISABLE_DEPRECATED_CFLAGS) fi -dnl --enable-debug=(yes/info/profile/no) -AS_CASE([$ax_enable_debug], - [yes|info], [ - DEBUG_CFLAGS="-DG_ENABLE_DEBUG" - ], - [no], [ +dnl --------------------------------------------------------------------------- +dnl - logging +dnl --------------------------------------------------------------------------- +if test "$ax_enable_debug" = "yes"; then + DEBUG_CFLAGS="-DG_ENABLE_DEBUG" +else + if test "x$ax_enable_debug" = "xno"; then DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS" - ], - [ + else DEBUG_CFLAGS="" - ]) + fi +fi AC_SUBST(DEBUG_CFLAGS) GOBJECT_INTROSPECTION_CHECK([0.6.7]) @@ -100,7 +101,7 @@ echo " Maintainer mode: ${USE_MAINTAINER_MODE} Use *_DISABLE_DEPRECATED: ${enable_deprecation_flags} - Turn on debugging: ${enable_debug} + Turn on debugging: ${ax_enable_debug} Build introspection support: ${found_introspection} " |