X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fdebug.m4;fp=m4%2Fdebug.m4;h=9b17781077b6817ad605b583a5df58682a080df4;hb=5a0dc3338c04b40a5d6f335ac6504e9d3f7fd90d;hp=0000000000000000000000000000000000000000;hpb=adb3aa8ec1a70976f92cd05a8bab4174905d3005;p=awesomized%2Flibmemcached diff --git a/m4/debug.m4 b/m4/debug.m4 new file mode 100644 index 00000000..9b177810 --- /dev/null +++ b/m4/debug.m4 @@ -0,0 +1,20 @@ +dnl --------------------------------------------------------------------------- +dnl Macro: DEBUG_TEST +dnl --------------------------------------------------------------------------- +AC_ARG_ENABLE(debug, + [ --enable-debug Build with support for the DEBUG.], + [ + AC_DEFINE([HAVE_DEBUG], [1], [Enables DEBUG Support]) + AC_CHECK_PROGS(DEBUG, debug) + ENABLE_DEBUG="yes" + AC_SUBST(DEBUGFLAGS) + AC_SUBST(HAVE_DEBUG) + ], + [ + ENABLE_DEBUG="no" + ] + ) +AM_CONDITIONAL([HAVE_DEBUG], [ test "$ENABLE_DEBUG" = "yes" ]) +dnl --------------------------------------------------------------------------- +dnl End Macro: DEBUG_TEST +dnl ---------------------------------------------------------------------------