From 994a225682394476b065274f7fe8ef075070d420 Mon Sep 17 00:00:00 2001 From: beber Date: Fri, 9 Dec 2005 20:56:47 +0000 Subject: iadd a macro for ecore involv in espik debug marcro less bordel autogen.sh --- m4/ac_espik_debug.m4 | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'm4/ac_espik_debug.m4') diff --git a/m4/ac_espik_debug.m4 b/m4/ac_espik_debug.m4 index d0e3795..0f6dcaf 100644 --- a/m4/ac_espik_debug.m4 +++ b/m4/ac_espik_debug.m4 @@ -1,17 +1,27 @@ dnl Debug mode -AC_DEFUN([AC_ESPIK_DEBUG]), +AC_DEFUN([AC_ESPIK_DEBUG], [ + AC_MSG_CHECKING(for debug) AC_ARG_ENABLE( [debug], - AC_HELP_STRING( - [--enable-debug], [Enable debug mode (default=yes)]), - [if test "$enable_debug" = "yes" ; then - DEBUG_CFLAGS="-g -D_ESPIK_DEBUG_" + AC_HELP_STRING([--enable-debug], [Enable debug mode (default=yes)]), + [if test "$enable_debug" = "no"; then + debug="no" else - DEBUG_LDFLAGS="-s" - fi], + debug="yes" + fi + ], [debug="yes"]) + if test "$debug" != "no"; then + debug="yes" + DEBUG_CFLAGS="-g -D_ESPIK_DEBUG_" + else + DEBUG_LDFLAGS="-s" + fi + + AC_MSG_RESULT($debug: $DEBUG_CFLAGS$DEBUG_LDFLAGS) + AC_SUBST(DEBUG_CFLAGS) AC_SUBST(DEBUG_LDFLAGS) ]) -- cgit v1.2.3