diff options
| author | William A. Kennington III <wak@google.com> | 2018-08-16 13:54:35 -0700 |
|---|---|---|
| committer | William A. Kennington III <wak@google.com> | 2018-08-16 13:54:35 -0700 |
| commit | 90dbcd793a8c7516e48f9ca37c501173632f9159 (patch) | |
| tree | cbc77470c6b1c2f013f5bceba4907051d0d548ed | |
| parent | 20832de74270cb59906c4851ff438c5412445536 (diff) | |
| download | sdeventplus-90dbcd793a8c7516e48f9ca37c501173632f9159.tar.gz sdeventplus-90dbcd793a8c7516e48f9ca37c501173632f9159.zip | |
configure: Fix building when tests are disabled
| -rw-r--r-- | configure.ac | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac index 657fdaf..83cb4d8 100644 --- a/configure.ac +++ b/configure.ac @@ -130,21 +130,19 @@ AS_IF([test "x$enable_tests" != "xno"], [ ]) # Check for valgrind -AS_IF([test "x$enable_tests" != "xno"], [ - m4_foreach([vgtool], [valgrind_tool_list], - [AX_VALGRIND_DFLT(vgtool, [off])]) - AX_VALGRIND_DFLT([memcheck], [on]) - AX_VALGRIND_CHECK - AM_EXTRA_RECURSIVE_TARGETS([check-valgrind]) - m4_foreach([vgtool], [valgrind_tool_list], - [AM_EXTRA_RECURSIVE_TARGETS([check-valgrind-]vgtool)]) -]) +AS_IF([test "x$enable_tests" = "xno"], [enable_valgrind=no]) +m4_foreach([vgtool], [valgrind_tool_list], + [AX_VALGRIND_DFLT(vgtool, [off])]) +AX_VALGRIND_DFLT([memcheck], [on]) +AX_VALGRIND_CHECK +AM_EXTRA_RECURSIVE_TARGETS([check-valgrind]) +m4_foreach([vgtool], [valgrind_tool_list], + [AM_EXTRA_RECURSIVE_TARGETS([check-valgrind-]vgtool)]) # Code coverage -AS_IF([test "x$enable_tests" != "xno"], [ - AX_CODE_COVERAGE - AM_EXTRA_RECURSIVE_TARGETS([check-code-coverage]) -]) +AS_IF([test "x$enable_tests" = "xno"], [enable_code_coverage=no]) +AX_CODE_COVERAGE +AM_EXTRA_RECURSIVE_TARGETS([check-code-coverage]) # Append -Werror after doing autoconf compiler checks # Otherwise some perfectly valid checks can fail and cause our |

