]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix typos and missing if in libTrie inline support.
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Mar 2011 14:02:10 +0000 (03:02 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Mar 2011 14:02:10 +0000 (03:02 +1300)
lib/libTrie/configure.ac

index 60c541cbead6e0c3a2ccae19efc6265196efcad6..a90d34a29740090ddb410bab6d1455f82744bc7f 100644 (file)
@@ -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