Commit 02ba3091 authored by conrad's avatar conrad

make testing under valgrind disabled by default, and spew a warning if

--enable-valgrind-testing is invoked without --disable-shared


git-svn-id: http://svn.annodex.net/liboggz/trunk@531 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent eb06716a
......@@ -50,12 +50,20 @@ AC_CHECK_PROG(HAVE_DOCBOOK2HTML, docbook2html, true, false)
AM_CONDITIONAL(HAVE_DOCBOOK2HTML,$HAVE_DOCBOOK2HTML)
# Check for valgrind
ac_enable_valgrind=yes
ac_enable_valgrind=no
AC_ARG_ENABLE(valgrind-testing,
[ --disable-valgrind-testing disable running of tests inside Valgrind ],
[ ac_enable_valgrind=no ], [ ac_enable_valgrind=yes] )
[ --enable-valgrind-testing enable running of tests inside Valgrind ],
[ ac_enable_valgrind=yes ], [ ac_enable_valgrind=no] )
if test "x${ac_enable_valgrind}" = xyes ; then
if test "x${enable_shared}" = xyes ; then
AC_MSG_WARN([
*** You have requested to test under valgrind, but have not disabled the
*** building of shared libraries. You usually need to do:
*** ./configure --disable-shared --enable-valgrind-testing
*** for Valgrind to produce useful output.])
fi
AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no)
if test "x$HAVE_VALGRIND" = xyes ; then
VALGRIND_ENVIRONMENT="valgrind -q --leak-check=yes --show-reachable=yes --num-callers=100"
......@@ -66,7 +74,7 @@ if test "x${ac_enable_valgrind}" = xyes ; then
TESTS_INFO="'make check' to run test suite (Valgrind not found)"
fi
else
TESTS_INFO="'make check' to run test suite (Valgrind testing disabled)"
TESTS_INFO="'make check' to run test suite (Valgrind testing not enabled)"
fi
dnl Checks for libraries.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment