1 From fe965061b4306e3ca811ff86dc1ca29f7db9af18 Mon Sep 17 00:00:00 2001
2 From: Peter Seiderer <ps.report@gmx.net>
3 Date: Sun, 11 Oct 2015 13:33:19 +0200
4 Subject: [PATCH] configure: add '--disable-runtime-tests' option
6 Signed-off-by: Peter Seiderer <ps.report@gmx.net>
8 configure.ac | 15 +++++++++++----
9 1 file changed, 11 insertions(+), 4 deletions(-)
11 diff --git a/configure.ac b/configure.ac
12 index c1a9111..8fe7b8b 100644
15 @@ -76,13 +76,20 @@ else
16 AC_MSG_WARN([check not found - skipping building unit tests])
18 AM_CONDITIONAL(HAVE_VALGRIND, [test "x$VALGRIND" != "x"])
19 -AM_CONDITIONAL(ENABLE_RUNTIME_TESTS, [test "x$HAVE_CHECK" = "xyes"])
21 +AC_ARG_ENABLE([runtime-tests],
22 + AS_HELP_STRING([--disable-runtime-tests], [Disable runtime tests]))
23 +AS_IF([test "x$enable_runtime_tests" != "xno"],
24 + [enable_runtime_tests=yes],
25 + [enable_runtime_tests=no])
27 +AM_CONDITIONAL(ENABLE_RUNTIME_TESTS, [test "x${enable_runtime_tests}x$HAVE_CHECK" = "xyesxyes"])
28 AM_CONDITIONAL(ENABLE_STATIC_LINK_TEST, [test "x$enable_static" = "xyes"])
30 AC_ARG_ENABLE([test-run],
31 AS_HELP_STRING([--enable-test-run], [For internal use only]),
32 [run_tests="$enableval"], [run_tests="yes"])
33 -AM_CONDITIONAL(RUN_TESTS, [test "x$run_tests" = "xyes"])
34 +AM_CONDITIONAL(RUN_TESTS, [test "x${enable_runtime_tests}x$run_tests" = "xyesxyes"])
37 if test "x$GCC" = "xyes"; then
38 @@ -167,8 +174,8 @@ AC_MSG_RESULT([
41 Build documentation ${have_doxygen}
42 - Enable unit-tests ${HAVE_CHECK}
43 - Run unit-tests ${run_tests}
44 + Enable unit-tests ${HAVE_CHECK} (runtime-tests: ${enable_runtime_tests})
45 + Run unit-tests ${run_tests} (runtime-tests: ${enable_runtime_tests})
46 Enable profiling ${enable_gcov}
47 Static library symbol check ${static_symbol_leaks_test}