From: Jan Safranek Date: Fri, 4 Mar 2011 11:22:31 +0000 (+0100) Subject: Fix configure --enable-debug X-Git-Tag: v0.38~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c20d87e4f8f36f6d0a90bc212460fcd2ecd3b8f;p=thirdparty%2Flibcgroup.git Fix configure --enable-debug I've noticed that the debugging info is compiled in even if --disable-debug is provided. Following patch adds explicit check that --enable-debug or --enable-debug=yes is provided to configure script. Signed-off-by: Jan Safranek --- diff --git a/configure.in b/configure.in index 226f1bba..ba8e1b18 100644 --- a/configure.in +++ b/configure.in @@ -48,8 +48,12 @@ AM_CONDITIONAL([WITH_BINDINGS], [test x$with_bindings = xtrue]) AC_ARG_ENABLE([debug], [AC_HELP_STRING([--enable-debug], [enable extra debugging output [default=no]])], - [AC_DEFINE([CGROUP_DEBUG], [], - [Define to enable extra debugging output.])], + [ + if test "x$enableval" = xyes; then + AC_DEFINE([CGROUP_DEBUG], [], + [Define to enable extra debugging output.]) + fi + ] []) AC_ARG_ENABLE([tools],