From 7c20d87e4f8f36f6d0a90bc212460fcd2ecd3b8f Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Fri, 4 Mar 2011 12:22:31 +0100 Subject: [PATCH] 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 --- configure.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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], -- 2.47.2