From 686ba4ee4b645d27c2d9db568c2f326acb05bc25 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 29 Aug 2006 17:49:12 +0000 Subject: Add debug compile mode --- ChangeLog | 1 + configure.in | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3129cd8..3310191 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ Version 2.3.2e - Use instead of + - Add --enable-debug compile mode Version 2.3.1b - Use reallocf instead of realloc diff --git a/configure.in b/configure.in index 785ca07..f12be30 100644 --- a/configure.in +++ b/configure.in @@ -53,6 +53,17 @@ AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_AWK +# Debug mode +AC_ARG_ENABLE(debug, + AC_HELP_STRING([--enable-debug], + [Compile binaries in debug mode])) + +if test "$enable_debug" = "yes"; then + CFLAGS="$CFLAGS -g -O0 -Wall" + AC_DEFINE_UNQUOTED(_DEBUG, 1, [In debug mode]) + echo "enabling debug compile mode" +fi + # The maximum buffer size AC_ARG_ENABLE(BUF, AC_HELP_STRING([--max-buf=SIZE], -- cgit v1.2.3