From: Michael Tremer Date: Tue, 28 Nov 2017 21:32:55 +0000 (+0100) Subject: configure: Allow to enable debug mode X-Git-Tag: 0.9.28~1285^2~1269 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a5fc19b75b711d6f4c3a9c6ad5acddc1e30a0f7d;p=pakfire.git configure: Allow to enable debug mode Signed-off-by: Michael Tremer --- diff --git a/configure.ac b/configure.ac index 0362331a6..15127165c 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,13 @@ AC_PROG_LN_S AC_PROG_MKDIR_P AC_PROG_SED +AC_ARG_ENABLE([debug], + AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]), + [], [enable_debug=no]) +AS_IF([test "x$enable_debug" = "xyes"], [ + AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.]) +]) + # pkg-config PKG_PROG_PKG_CONFIG # This makes sure pkg.m4 is available. @@ -167,6 +174,8 @@ AC_OUTPUT AC_MSG_RESULT([ $PACKAGE_NAME $VERSION + Debug: ${enable_debug} + CFLAGS: ${OUR_CFLAGS} ${CFLAGS} CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS} LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}