]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix sSQUID_CC_REQUIRE_ARGUMENT autoconf macro
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 5 Jan 2015 17:43:20 +0000 (18:43 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 5 Jan 2015 17:43:20 +0000 (18:43 +0100)
acinclude/compiler-flags.m4

index 6b8184924c81eea1fb84bec024fa9668d449ea54..383b4fae57e8696c53c4e97ab28d1dff45a6f009 100644 (file)
@@ -41,15 +41,14 @@ AC_DEFUN([SQUID_CC_REQUIRE_ARGUMENT],[
     SAVED_FLAGS="$CFLAGS"
     SAVED_CXXFLAGS="$CXXFLAGS"
     AC_COMPILE_IFELSE([AC_LANG_PROGRAM($3,$4)],[$1=no],[],[$1=no])
-    if test "$1" != "no" ; then
-      CFLAGS="$CXXFLAGS $2"
+    if test "x$1" != "xno" ; then
+      CFLAGS="$CFLAGS $2"
       CXXFLAGS="$CXXFLAGS $2"
       AC_COMPILE_IFELSE([AC_LANG_PROGRAM($3,$4)],[$1=yes],[$1=no],[$1=no])
     fi
     CFLAGS="$SAVED_CFLAGS"
     CXXFLAGS="$SAVED_CXXFLAGS"
   }])
-  AC_MSG_RESULT([$1])
 ])
 
 # detect what kind of compiler we're using, either by using hints from