summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-04-15 22:33:25 +0200
committerChristian Grothoff <christian@grothoff.org>2015-04-15 22:33:25 +0200
commit0baad4430c7f2ee596c05c0eae96b8dfabf7276e (patch)
tree82809256f76e14b597cf33bf85c72fc26ebdbe2e /configure.ac
parent790b331a8d147e4185134483ad4733ea4b5cfdcb (diff)
downloadexchange-0baad4430c7f2ee596c05c0eae96b8dfabf7276e.tar.gz
exchange-0baad4430c7f2ee596c05c0eae96b8dfabf7276e.tar.bz2
exchange-0baad4430c7f2ee596c05c0eae96b8dfabf7276e.zip
preparing to have /test handlers in build system
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 20450390..f2ebc3f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -176,6 +176,19 @@ AC_DEFINE_UNQUOTED([NEED_LIBGCRYPT_VERSION], ["$need_libgcrypt_version"],
[minimum version of libgcrypt required])
AM_PATH_LIBGCRYPT([$need_libgcrypt_version])
+# should developer logic be compiled (not-for-production code)?
+AC_MSG_CHECKING(whether to compile developer logic)
+AC_ARG_ENABLE([developer-mode],
+ [AS_HELP_STRING([--enable-developer-mode], [enable compiling developer code])],
+ [enable_developer=${enableval}],
+ [enable_developer=yes])
+AC_MSG_RESULT($enable_developer)
+AM_CONDITIONAL([HAVE_DEVELOPER], [test "x$enable_developer" = "xyes"])
+enable_dev=1
+AS_IF([test "x$enableval" = "xno"], [enable_dev=0])
+AC_DEFINE_UNQUOTED([HAVE_DEVELOPER],[$enable_dev],[1 if developer logic is enabled, 0 otherwise])
+
+
# logging
extra_logging=0
AC_ARG_ENABLE([logging],