From: Francesco Chemolli Date: Mon, 5 Jul 2010 12:13:09 +0000 (+0200) Subject: Refactored --enable-debug-cbdata option X-Git-Tag: take1~402^2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50af7161216e69d67b48781ebd3ba567f179f419;p=thirdparty%2Fsquid.git Refactored --enable-debug-cbdata option --- diff --git a/configure.in b/configure.in index 04e91947a2..e9b8a65335 100644 --- a/configure.in +++ b/configure.in @@ -354,21 +354,26 @@ AC_ARG_ENABLE(inline, ]) if test "$SquidInline" = "yes" ; then - AC_DEFINE(_SQUID_INLINE_, inline, [Keyword used by squid for inlining methods]) - AC_DEFINE(_USE_INLINE_, 1 , [Include inline methods into header file]) + AC_DEFINE(_SQUID_INLINE_, inline, + [Keyword used by squid for inlining methods]) + AC_DEFINE(_USE_INLINE_, 1 , + [Include inline methods into header file]) else AC_MSG_NOTICE([Inlining optimization disabled]) - AC_DEFINE(_SQUID_INLINE_,[], [Keyword used by squid for inlining methods]) + AC_DEFINE(_SQUID_INLINE_,[], + [Keyword used by squid for inlining methods]) fi AC_ARG_ENABLE(debug-cbdata, AS_HELP_STRING([--enable-debug-cbdata], [Provide some debug information in cbdata]), [ -if test "$enableval" = "yes" ; then - AC_MSG_NOTICE([cbdata debugging enabled]) - AC_DEFINE(CBDATA_DEBUG,1, [Enable support for cbdata debug information]) -fi +SQUID_YESNO([$enableval], + [unrecognized argument to --enable-debug-cbdata: $enableval]) ]) +SQUID_DEFINE_BOOL(CBDATA_DEBUG,${enable_debug_cbdata:=no}, + [Enable support for cbdata debug information]) +AC_MSG_NOTICE([cbdata debugging enabled: $enable_debug_cbdata]) + dnl Nasty hack to get autoconf 2.64 on Linux to run. dnl all other uses of RUN_IFELSE are wrapped inside CACHE_CHECK which breaks on 2.64 @@ -2117,7 +2122,7 @@ esac dnl automake handles this AC_PATH_PROG(MAKEDEPEND, makedepend, $TRUE) case "$host" in - *-hp-hpux*) + *hpux*) AC_MSG_NOTICE([Disabling ranlib for HP-UX...]) RANLIB=":" ;;