From 8069fc759bdae6c0e5b6f180d2612780f5701805 Mon Sep 17 00:00:00 2001 From: William Metcalf Date: Fri, 25 Sep 2009 08:17:36 -0500 Subject: [PATCH] added --enable-debug config option to set -DDEBUG --- configure.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.in b/configure.in index c01b08b143..ce0bec36e5 100644 --- a/configure.in +++ b/configure.in @@ -361,6 +361,15 @@ AC_CHECK_HEADER(pcap.h,,[AC_ERROR(pcap.h not found ...)]) CFLAGS="${CFLAGS} -DUNITTESTS" fi +# enable debug output + AC_ARG_ENABLE(debug, + [ --enable-debug Enable debug output], + [ enable_debug=yes + ]) + if test "$enable_debug" = "yes"; then + CFLAGS="${CFLAGS} -DDEBUG" + fi + AC_SUBST(CFLAGS) AC_SUBST(LDFLAGS) AC_SUBST(CPPFLAGS)