[network-manager-applet: 3/6] build: add --with-more-asserts configure option for nm_assert() macro



commit bc3ae948a8bd4ab14395172073f00045b03bbea4
Author: Thomas Haller <thaller redhat com>
Date:   Tue Feb 16 19:03:29 2016 +0100

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

 configure.ac |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c90989d..592fa36 100644
--- a/configure.ac
+++ b/configure.ac
@@ -150,6 +150,20 @@ dnl
 NM_COMPILER_WARNINGS
 
 
+AC_ARG_WITH(more-asserts,
+            AS_HELP_STRING([--with-more-asserts=level], [Enable more assertions for debugging (default: 0)]),
+            [more_asserts=${with_more_asserts}],
+            [more_asserts=no])
+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]