summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 8a06578..134fbfc 100644
--- a/configure.in
+++ b/configure.in
@@ -5,7 +5,11 @@ AM_INIT_AUTOMAKE(ratpoison, 0.0.6)
AM_CONFIG_HEADER(src/config.h)
-AC_ARG_ENABLE(debug, [Turn on debugging information], AC_DEFINE(DEBUG))
+dnl by default turn on debugging
+AC_ARG_ENABLE(debug, [ --disable-debug Turn off debugging information], enable_debugging=no, enable_debugging=yes)
+if test "$enable_debugging" = yes; then
+ AC_DEFINE(DEBUG)
+fi
dnl Checks for programs.
CFLAGS="$CFLAGS -Wall"