configure: Fail iff valgrind is explicitly requested but not available
This commit is contained in:
parent
b982a751f4
commit
fc7faafae7
1 changed files with 8 additions and 2 deletions
10
configure
vendored
10
configure
vendored
|
@ -737,8 +737,14 @@ fi
|
||||||
# only disabled if you opt out.
|
# only disabled if you opt out.
|
||||||
if [ -z "$CFG_VALGRIND" ]
|
if [ -z "$CFG_VALGRIND" ]
|
||||||
then
|
then
|
||||||
CFG_DISABLE_VALGRIND_RPASS=1
|
# If the user has explicitly asked for valgrind tests, then fail
|
||||||
putvar CFG_DISABLE_VALGRIND_RPASS
|
if [ -n "$CFG_ENABLE_VALGRIND" ] && [ -n "$CFG_ENABLE_VALGRIND_PROVIDED" ]
|
||||||
|
then
|
||||||
|
err "No valgrind present, but valgrind tests explicitly requested"
|
||||||
|
else
|
||||||
|
CFG_DISABLE_VALGRIND_RPASS=1
|
||||||
|
putvar CFG_DISABLE_VALGRIND_RPASS
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$CFG_GDB" ]
|
if [ ! -z "$CFG_GDB" ]
|
||||||
|
|
Loading…
Add table
Reference in a new issue