Skip to content

Commit

Permalink
build: don't append valgrind CPPFLAGS if not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
fanquake committed Nov 23, 2021
1 parent 793ad90 commit 214042a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Expand Up @@ -43,8 +43,8 @@ case $host_os in
# These Homebrew packages may be keg-only, meaning that they won't be found
# in expected paths because they may conflict with system files. Ask
# Homebrew where each one is located, then adjust paths accordingly.
valgrind_prefix=`$BREW --prefix valgrind 2>/dev/null`
if test x$valgrind_prefix != x; then
if $BREW list --versions valgrind >/dev/null; then
valgrind_prefix=`$BREW --prefix valgrind 2>/dev/null`
VALGRIND_CPPFLAGS="-I$valgrind_prefix/include"
fi
else
Expand Down

0 comments on commit 214042a

Please sign in to comment.