[network-manager-openvpn/th/ovpn-import-bgo761285: 13/13] build: add --with-more-asserts configure option for nm_assert() macro



commit 1cc9fc096f3a5834fb3b52631f0551538f21a7e4
Author: Thomas Haller <thaller redhat com>
Date:   Wed Feb 3 11:59:02 2016 +0100

    build: add --with-more-asserts configure option for nm_assert() macro

 configure.ac |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index faaf481..86e0f94 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,6 +116,19 @@ if ! test x"$ac_distver" = x""; then
   AC_DEFINE_UNQUOTED(DIST_VERSION, "$ac_distver", [Define the distribution version string])
 fi
 
+AC_ARG_WITH(more-asserts,
+            AS_HELP_STRING([--with-more-asserts=level], [Enable more assertions for debugging (default: 0)]),
+            [more_asserts=${with_more_asserts}],
+            [])
+if test "${more_asserts}" = "no"; then
+    more_asserts=0
+else
+    if test "${more_asserts}" = "yes"; then
+        more_asserts=100
+    fi
+fi
+AC_DEFINE_UNQUOTED(NM_MORE_ASSERTS, $more_asserts, [Define if more asserts are enabled])
+
 AC_CONFIG_FILES([
 Makefile
 src/Makefile


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]