configure: use the user specified valgrind excutable for massif
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 19 May 2013 09:24:15 +0000 (11:24 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 19 May 2013 09:24:15 +0000 (11:24 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure

index 9d6ce4f..6fe7945 100755 (executable)
--- a/configure
+++ b/configure
@@ -2516,7 +2516,7 @@ case "$toolchain" in
         add_ldflags -fsanitize=thread -pie
     ;;
     valgrind-massif)
-        target_exec_default="valgrind"
+        target_exec_default=${valgrind:-"valgrind"}
         target_exec_args="--tool=massif --alloc-fn=av_malloc --alloc-fn=av_mallocz"
     ;;
     valgrind-memcheck)