From: Amos Jeffries Date: Thu, 3 Mar 2011 14:02:10 +0000 (+1300) Subject: Fix typos and missing if in libTrie inline support. X-Git-Tag: take06~27^2~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f241400fa22156275a67e9f46b70ded36362bfb;p=thirdparty%2Fsquid.git Fix typos and missing if in libTrie inline support. --- diff --git a/lib/libTrie/configure.ac b/lib/libTrie/configure.ac index 60c541cbea..a90d34a297 100644 --- a/lib/libTrie/configure.ac +++ b/lib/libTrie/configure.ac @@ -4,7 +4,7 @@ AC_CONFIG_SRCDIR([src/Trie.cc]) AM_CONFIG_HEADER([config.h]) AC_CONFIG_AUX_DIR(cfgaux) -enable_inline=${enable_inine:=yes} +enable_inline=${enable_inline:=yes} AC_ARG_ENABLE(optimizations, AC_HELP_STRING([--disable-optimizations], [Do not compile Squid with compiler optimizations enabled. @@ -13,7 +13,7 @@ AC_ARG_ENABLE(optimizations, --disable-optimizations to reduce compilation times and allow easier debugging. This option implicitly also enabled --disable-inline]), [ -if test "x$enableval" = "xno" ; then + if test "x$enableval" = "xno" ; then AC_MSG_NOTICE([Disabling compiler optimizations (-O flag)]) CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*//'`" CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-O[[0-9]]*//'`" @@ -32,9 +32,11 @@ AC_ARG_ENABLE(inline, production builds, or load tests, use --enable-inline to have squid make all trivial methods inlinable by the compiler.]), [ + if test "x${enableval}" = "xno" ; then + enable_inline=no + fi ]) - -if test "$enable_inline" = "yes" ; then +if test "x$enable_inline" = "xyes" ; then AC_DEFINE(_SQUID_INLINE_, inline, [Keyword used by squid for inlining methods]) AC_DEFINE(_USE_INLINE_, 1, [Include inline methods into header file]) @@ -44,7 +46,6 @@ else AC_DEFINE(_USE_INLINE_, 0, [Include inline methods into header file]) fi - # Checks for programs. AC_PROG_CXX AC_PROG_CC