]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix the disablement of pgrefdebugging 4428/head
authorWilliam A. Kennington III <william@wkennington.com>
Wed, 22 Apr 2015 05:18:56 +0000 (22:18 -0700)
committerWilliam A. Kennington III <william@wkennington.com>
Wed, 22 Apr 2015 05:32:54 +0000 (22:32 -0700)
Currently, if you add the flag --disable-pgrefdebugging during configure
it enables pgrefdebugging. The only way for it to actually be disabled
is to remove the flag entirely. This patch makes the flag respect the
--enable and --disable options correctly. Therefore,
--enable-pgrefdebugging is the only way to enable this now and
--enable-pgrefdebugging=no and --disable-pgrefdebugging work as
expected.

Signed-off-by: William A. Kennington III <william@wkennington.com>
configure.ac

index 38ab6826a9a81edbf535733222ae9999e0772deb..febb58e102bea01e247dd275747cfb1342cdf638 100644 (file)
@@ -541,8 +541,10 @@ fi
 #set pg ref debugging?
 AC_ARG_ENABLE([pgrefdebugging],
            [AS_HELP_STRING([--enable-pgrefdebugging], [enable pg ref debugging])],
-                       [AC_DEFINE([PG_DEBUG_REFS], [1], [Defined if you want pg ref debugging])],
-                       [])
+                       [], [enable_pgrefdebugging=no])
+AS_IF([test "x$enable_pgrefdebugging" = "xyes"],
+         [AC_DEFINE([PG_DEBUG_REFS], [1], [Defined if you want pg ref debugging])],
+         [])
 
 #
 # Java is painful