From 0a861e33be370c21985ee229c5ce50c783b7932d Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Thu, 13 Jul 2006 09:34:31 +0000 Subject: [PATCH] Fix valgrind test. --- configure.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index dc74a59..52e7770 100644 --- a/configure.in +++ b/configure.in @@ -83,13 +83,15 @@ AC_FUNC_ALLOCA AC_MSG_NOTICE([Detecting system's parameters]) +# Run self-tests under valgrind? if test "$cross_compiling" = no; then AC_CHECK_PROGS(VALGRIND, valgrind) fi -if test -z "$VALGRIND"; then - opt_valgrind_tests=no -else +if test -n "$VALGRIND" && $VALGRIND true > /dev/null 2>&1; then opt_valgrind_tests=yes +else + opt_valgrind_tests=no + VALGRIND= fi AC_MSG_CHECKING([whether self tests are run under valgrind]) AC_ARG_ENABLE(valgrind-tests, -- 2.11.4.GIT