aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index c0c9d70df1..081a8529d6 100644
--- a/configure.in
+++ b/configure.in
@@ -59,8 +59,9 @@ dnl Purify support
AC_ARG_ENABLE(purify,
[ --enable-purify=[no/yes] Enable support for building executables with
Purify.],,enable_purify=no)
-
-AM_CONDITIONAL(ENABLE_PURIFY, test "x$enable_purify" = "xyes")
+AC_PATH_PROG(PURIFY, purify, impure)
+AC_SUBST(PURIFY)
+AM_CONDITIONAL(ENABLE_PURIFY, test "x$enable_purify" = "xyes" -a "x$purify" != "ximpure")
dnl * Time zone stuff
AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,