]> granicus.if.org Git - gc/commitdiff
Change configure --with-checksums to --enable-checksums option
authorIvan Maidanski <ivmai@mail.ru>
Thu, 6 Jul 2017 17:11:09 +0000 (20:11 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 6 Jul 2017 17:11:09 +0000 (20:11 +0300)
(refactoring of commit bfd8345)

* configure.ac (checksums): Replace AC_ARG_WITH with AC_ARG_ENABLE;
update AS_HELP_STRING accordingly.
* configure.ac (with_checksums): Replace with enable_checksums.

configure.ac

index 79ce080795c8f2c8254b91d9029ab16fa5df8035..658a0e0381e2159f6856481d7396ad2b443be5e8 100644 (file)
@@ -908,13 +908,13 @@ else
     fi
 fi
 
-AC_ARG_WITH([checksums],
-    [AS_HELP_STRING([--with-checksums],
+AC_ARG_ENABLE(checksums,
+    [AS_HELP_STRING([--enable-checksums],
                     [Report on erroneously cleared dirty bits and
                      unexpectedly altered stubborn objects, at
                      substantial performance cost; use only for debugging
                      of the incremental collector])])
-if test x$with_checksums = xyes; then
+if test x$enable_checksums = xyes; then
     if test x$enable_munmap != x -a x$enable_munmap != xno \
             -o x$THREADS != xnone; then
         AC_MSG_ERROR([CHECKSUMS not compatible with USE_MUNMAP or threads])
@@ -923,7 +923,7 @@ if test x$with_checksums = xyes; then
               [Erroneously cleared dirty bits checking.  Use only for
                debugging of the incremental collector.])
 fi
-AM_CONDITIONAL([CHECKSUMS], test x$with_checksums = xyes)
+AM_CONDITIONAL([CHECKSUMS], test x$enable_checksums = xyes)
 
 AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")