You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB

  1. --- a/acinclude.m4 2017-11-28 10:22:53.000000000 +0100
  2. +++ b/acinclude.m4 2017-12-22 16:28:09.361331754 +0100
  3. @@ -3227,20 +3227,26 @@
  4. dnl PHP_CHECK_VALGRIND
  5. AC_DEFUN([PHP_CHECK_VALGRIND], [
  6. - AC_MSG_CHECKING([for valgrind])
  7. + AC_CACHE_CHECK(whether to enable the check for valgrind support,ac_cv_enable_valgrind_check,[
  8. + ac_cv_enable_valgrind_check=yes
  9. + ])
  10. - SEARCH_PATH="/usr/local /usr"
  11. - SEARCH_FOR="/include/valgrind/valgrind.h"
  12. - for i in $SEARCH_PATH ; do
  13. - if test -r $i/$SEARCH_FOR; then
  14. - VALGRIND_DIR=$i
  15. - fi
  16. - done
  17. + if test "$ac_cv_enable_valgrind_check" = "yes"; then
  18. + AC_MSG_CHECKING([for valgrind])
  19. +
  20. + SEARCH_PATH="/usr/local /usr"
  21. + SEARCH_FOR="/include/valgrind/valgrind.h"
  22. + for i in $SEARCH_PATH ; do
  23. + if test -r $i/$SEARCH_FOR; then
  24. + VALGRIND_DIR=$i
  25. + fi
  26. + done
  27. - if test -z "$VALGRIND_DIR"; then
  28. - AC_MSG_RESULT([not found])
  29. - else
  30. - AC_MSG_RESULT(found in $VALGRIND_DIR)
  31. - AC_DEFINE(HAVE_VALGRIND, 1, [ ])
  32. + if test -z "$VALGRIND_DIR"; then
  33. + AC_MSG_RESULT([not found])
  34. + else
  35. + AC_MSG_RESULT(found in $VALGRIND_DIR)
  36. + AC_DEFINE(HAVE_VALGRIND, 1, [ ])
  37. + fi
  38. fi
  39. ])