From 778edd59c0dcc55687e80adeeea6ce2552f8fcf1 Mon Sep 17 00:00:00 2001 From: Date: Thu, 25 Oct 2007 11:00:50 -0700 Subject: [PATCH] Adding debug rules --- ChangeLog | 1 + config/debug.m4 | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 config/debug.m4 diff --git a/ChangeLog b/ChangeLog index b5cf0190..47c3a5cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ building strings as it goes. * Propper flush now for making sure we get all IO sent even when in non-block mode. + * Added --enable-debug rule for configure 0.6 Wed Oct 17 08:41:35 PDT 2007 diff --git a/config/debug.m4 b/config/debug.m4 new file mode 100644 index 00000000..9b177810 --- /dev/null +++ b/config/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 --------------------------------------------------------------------------- -- 2.30.2