From bc7b4e405108e5f54a21872020e5684af99ce724 Mon Sep 17 00:00:00 2001 From: Mark Ellzey Date: Tue, 2 Aug 2011 17:23:52 -0400 Subject: [PATCH 1/2] Added --enable-event-debugging in configure --- configure.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.in b/configure.in index 774d4afb..a9281a8d 100644 --- a/configure.in +++ b/configure.in @@ -77,6 +77,9 @@ AC_ARG_ENABLE([libevent-regress], AC_ARG_ENABLE([function-sections], AS_HELP_STRING([--enable-function-sections, make static library allow smaller binaries with --gc-sections]), [], [enable_function_sections=no]) +AC_ARG_ENABLE(event-debugging, + AS_HELP_STRING([--enable-event-debugging, enable event usage debugging]), + [], [enable_event_debugging=no]) AC_PROG_LIBTOOL @@ -648,6 +651,11 @@ if test x$enable_debug_mode = xno; then [Define if libevent should build without support for a debug mode]) fi +# check if we should enable event debugging +if test x$enable_event_debugging = xyes; then + CFLAGS="$CFLAGS -DUSE_DEBUG" +fi + # check if we have and should use openssl AM_CONDITIONAL(OPENSSL, [test "$enable_openssl" != "no" && test "$have_openssl" = "yes"]) From a9c2c9ab625c48e13256bed5aa1546c88f2d1318 Mon Sep 17 00:00:00 2001 From: Mark Ellzey Date: Sat, 6 Aug 2011 01:32:40 -0400 Subject: [PATCH 2/2] changed to --enable-verbose-debug --- configure.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index a9281a8d..7d0a3e02 100644 --- a/configure.in +++ b/configure.in @@ -78,8 +78,8 @@ AC_ARG_ENABLE([function-sections], AS_HELP_STRING([--enable-function-sections, make static library allow smaller binaries with --gc-sections]), [], [enable_function_sections=no]) AC_ARG_ENABLE(event-debugging, - AS_HELP_STRING([--enable-event-debugging, enable event usage debugging]), - [], [enable_event_debugging=no]) + AS_HELP_STRING([--enable-verbose-debug, verbose debug logging]), + [], [enable_verbose_debug=no]) AC_PROG_LIBTOOL @@ -651,8 +651,8 @@ if test x$enable_debug_mode = xno; then [Define if libevent should build without support for a debug mode]) fi -# check if we should enable event debugging -if test x$enable_event_debugging = xyes; then +# check if we should enable verbose debugging +if test x$enable_verbose_debug = xyes; then CFLAGS="$CFLAGS -DUSE_DEBUG" fi