aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanik Rabe2020-05-04 20:24:18 +0300
committerJanik Rabe2020-05-04 20:24:18 +0300
commit4b16139656a4a62b4bb5ed6555fcef8f1c97e675 (patch)
tree5a4eae1f26322d3ecc91720fba7e3c7fce2e5b89
parent38fad934d0acc9ee01663babfe41d549029d176e (diff)
downloadoidentd-4b16139656a4a62b4bb5ed6555fcef8f1c97e675.tar
oidentd-4b16139656a4a62b4bb5ed6555fcef8f1c97e675.tar.gz
oidentd-4b16139656a4a62b4bb5ed6555fcef8f1c97e675.tar.bz2
oidentd-4b16139656a4a62b4bb5ed6555fcef8f1c97e675.tar.xz
oidentd-4b16139656a4a62b4bb5ed6555fcef8f1c97e675.zip
Compile with debugging support by default
-rw-r--r--ChangeLog4
-rw-r--r--NEWS5
-rw-r--r--configure.ac15
3 files changed, 19 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index a6cc11b..cbe9088 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2020-05-04 Janik Rabe <oidentd@janikrabe.com>
+
+ * Compile with ENABLE_DEBUGGING by default.
+
2020-04-16 Janik Rabe <oidentd@janikrabe.com>
* Released as version 2.5.0.
diff --git a/NEWS b/NEWS
index 534c904..2e8199f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+Unreleased changes
+
+ * Support for '--debug' is now included by default.
+ * Run './configure' with '--disable-debug' to disable.
+
Changes in version 2.5.0
* Added '--reply-all' option.
diff --git a/configure.ac b/configure.ac
index 4b81658..b458d11 100644
--- a/configure.ac
+++ b/configure.ac
@@ -90,12 +90,11 @@ if test "$enableval" = "no"; then
fi
enableval=""
+debug_support=yes
AC_ARG_ENABLE(debug,
-[ --enable-debug enable debugging support])
-if test "$enableval" = "yes"; then
- AC_DEFINE(ENABLE_DEBUGGING, 1, [Set to enable debugging])
-else
- AC_DEFINE(ENABLE_DEBUGGING, 0, [Set to enable debugging])
+[ --disable-debug disable debugging support])
+if test "$enableval" = "no"; then
+ debug_support=no
fi
enableval=""
@@ -680,6 +679,12 @@ else
AC_DEFINE(XDGBDIR_SUPPORT, 0, [Set to include XDG Base Directory support])
fi
+if test "$debug_support" = "yes"; then
+ AC_DEFINE(ENABLE_DEBUGGING, 1, [Set to enable debugging])
+else
+ AC_DEFINE(ENABLE_DEBUGGING, 0, [Set to enable debugging])
+fi
+
if test -n "$DEBUG_CFLAGS"; then
CFLAGS="$(echo $CFLAGS | sed 's/-O[[1-9]]*/-O0/g' | sed 's/-g[[0-9]]*/-g3 -ggdb/g')"
fi