diff options
author | rbuj <[email protected]> | 2019-09-27 17:16:50 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-09-27 20:33:44 +0200 |
commit | 95d8bca1eb7ac8c846d826afa3dfa5589b729287 (patch) | |
tree | 32a77452532f46b2ca01db87dce78a602b8e04f8 /macros | |
parent | 3e9287e6c4f720de9ef9cc1789d19419e6311145 (diff) | |
download | mate-common-95d8bca1eb7ac8c846d826afa3dfa5589b729287.tar.bz2 mate-common-95d8bca1eb7ac8c846d826afa3dfa5589b729287.tar.xz |
Set compiler debug flags in MATE_DEBUG_CHECK
Diffstat (limited to 'macros')
-rw-r--r-- | macros/mate-common.m4 | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/macros/mate-common.m4 b/macros/mate-common.m4 index 8ebae30..c9056a5 100644 --- a/macros/mate-common.m4 +++ b/macros/mate-common.m4 @@ -34,15 +34,12 @@ AC_DEFUN([MATE_COMMON_INIT], AC_DEFUN([MATE_DEBUG_CHECK], [ - AC_ARG_ENABLE([debug], - AS_HELP_STRING([--enable-debug], - [turn on debugging]),, - [enable_debug=no]) - - if test x$enable_debug = xyes ; then - AC_DEFINE(MATE_ENABLE_DEBUG, 1, - [Enable additional debugging at the expense of performance and size]) - fi + m4_ifdef([AX_CHECK_ENABLE_DEBUG],[ + AX_CHECK_ENABLE_DEBUG([ + m4_default([$1],[no])],[ + MATE_ENABLE_DEBUG])],[ + AC_MSG_ERROR([You need to install the autoconf-archive package.]) + ]) ]) dnl MATE_MAINTAINER_MODE_DEFINES () |