diff options
author | beber <beber> | 2005-12-09 00:21:50 +0000 |
---|---|---|
committer | beber <beber> | 2005-12-09 00:21:50 +0000 |
commit | aa869ee90a65a21f6cfabc3935610b0cd3af46a7 (patch) | |
tree | 2953b8820ada468b6e516a0f32d346dec4ee7b14 /m4 | |
parent | debug is now passed by configure (diff) | |
download | espik-aa869ee90a65a21f6cfabc3935610b0cd3af46a7.tar.xz |
m4 for debug
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ac_espik_debug.m4 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/m4/ac_espik_debug.m4 b/m4/ac_espik_debug.m4 new file mode 100644 index 0000000..1ebe69a --- /dev/null +++ b/m4/ac_espik_debug.m4 @@ -0,0 +1,16 @@ +dnl Debug mode +AC_DEFUN([AC_ESPIK_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_" + else + DEBUG_LDFLAGS="-s" + fi], [debug="yes"]) + + AC_SUBST(DEBUG_CFLAGS) + AC_SUBST(DEBUG_LDFLAGS) +]) |