From: Francesco Chemolli Date: Mon, 5 Jul 2010 12:25:19 +0000 (+0200) Subject: Refactored --enable-xmalloc-statistics X-Git-Tag: take1~402^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d1d2477555b528e96241724824152094d99a194;p=thirdparty%2Fsquid.git Refactored --enable-xmalloc-statistics --- diff --git a/configure.in b/configure.in index e9b8a65335..0480555256 100644 --- a/configure.in +++ b/configure.in @@ -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,