instrument for valgrind
authorJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 5 Dec 2002 06:36:12 +0000 (06:36 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 5 Dec 2002 06:36:12 +0000 (06:36 +0000)
configure.in

index 2f956d5..ba3427f 100644 (file)
@@ -216,9 +216,15 @@ AC_ARG_ENABLE(exhaustive-tests,
        *) AC_MSG_ERROR(bad value ${enableval} for --enable-exhaustive-tests) ;;
 esac],[exhaustive_tests=false])
 AM_CONDITIONAL(FLaC__EXHAUSTIVE_TESTS, test x$exhaustive_tests = xtrue)
-if test x$exhaustive_tests = xtrue ; then
-AC_DEFINE(FLAC__EXHAUSTIVE_TESTS)
-fi
+
+AC_ARG_ENABLE(valgrind-testing,
+[  --enable-valgrind-testing      Run all tests inside Valgrind],
+[case "${enableval}" in
+       yes) valgrind_testing=true ;;
+       no)  valgrind_testing=false ;;
+       *) AC_MSG_ERROR(bad value ${enableval} for --enable-valgrind-testing) ;;
+esac],[valgrind_testing=false])
+AM_CONDITIONAL(FLaC__VALGRIND_TESTING, test x$valgrind_testing = xtrue)
 
 dnl check for ogg library
 XIPH_PATH_OGG(have_ogg=yes, AC_MSG_WARN([*** Ogg development enviroment not installed - Ogg support will not be built]))