1diff --git a/configure.ac b/configure.ac
2index 38ab682..febb58e 100644
3--- a/configure.ac
4+++ b/configure.ac
5@@ -541,8 +541,10 @@ fi
6 #set pg ref debugging?
7 AC_ARG_ENABLE([pgrefdebugging],
8 [AS_HELP_STRING([--enable-pgrefdebugging], [enable pg ref debugging])],
9- [AC_DEFINE([PG_DEBUG_REFS], [1], [Defined if you want pg ref debugging])],
10- [])
11+ [], [enable_pgrefdebugging=no])
12+AS_IF([test "x$enable_pgrefdebugging" = "xyes"],
13+ [AC_DEFINE([PG_DEBUG_REFS], [1], [Defined if you want pg ref debugging])],
14+ [])
15
16 #
17 # Java is painful