]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Refactored --enable-xmalloc-statistics
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 5 Jul 2010 12:25:19 +0000 (14:25 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 5 Jul 2010 12:25:19 +0000 (14:25 +0200)
configure.in

index e9b8a6533587390376fb44ec444878e3c3c4552b..048055525660f41d6679092e684857ca0609278a 100644 (file)
@@ -405,11 +405,12 @@ AH_TEMPLATE(XMALLOC_STATISTICS,[Define to have malloc statistics])
 AC_ARG_ENABLE(xmalloc-statistics,
   AS_HELP_STRING([--enable-xmalloc-statistics],
                  [Show malloc statistics in status page]), [
-if test "$enableval" = "yes" ; then
-  AC_MSG_NOTICE([malloc statistics enabled])
-  AC_DEFINE(XMALLOC_STATISTICS,1)
-fi
+SQUID_YESNO([$enableval],
+    [unrecognized argument to --enable-xmalloc-statistics: $enableval])
 ])
+SQUID_DEFINE_BOOL(XMALLOC_STATISTICS,${enable_xmalloc_statistics:=no},
+    [Show malloc statistics in status page])
+AC_MSG_NOTICE([xmalloc stats display: $enable_xmalloc_statistics])
 
 squid_opt_aufs_threads=""
 AC_ARG_WITH(aufs-threads,