]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
basic_sasl_auth: Fix helper auto-detection
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 6 Jun 2013 15:39:53 +0000 (03:39 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 6 Jun 2013 15:39:53 +0000 (03:39 +1200)
The helpers update in rev.12782 revealed SASL detection errors in the
use of ./configure script variables. This fixes the SASL library checks
and updates them to use the configure variable naming scheme.

acinclude/squid-util.m4
helpers/basic_auth/SASL/required.m4

index 972d3bf2a84ab321eb9a10c411338d48b74f11aa..768bcd5d0d0c5cf96793e3ec61864fc0b060d710 100644 (file)
@@ -252,11 +252,11 @@ AS_VAR_POPDEF([ac_Search])dnl
 
 dnl Check for Cyrus SASL
 AC_DEFUN([SQUID_CHECK_SASL],[
-  squid_sasl_present="auto"
+  squid_cv_check_sasl="auto"
   AC_CHECK_HEADERS([sasl/sasl.h sasl.h])
   AC_CHECK_LIB(sasl2,sasl_errstring,[LIBSASL="-lsasl2"],[
     AC_CHECK_LIB(sasl,sasl_errstring,[LIBSASL="-lsasl"], [
-      squid_sasl_present="no"
+      squid_cv_check_sasl="no"
     ])
   ])
   case "$squid_host_os" in
@@ -264,15 +264,17 @@ AC_DEFUN([SQUID_CHECK_SASL],[
       if test "$ac_cv_lib_sasl2_sasl_errstring" = "yes" ; then
         AC_DEFINE(HAVE_SASL_DARWIN,1,[Define to 1 if Mac Darwin without sasl.h])
         echo "checking for MAC Darwin without sasl.h ... yes"
-        squid_sasl_present="yes"
+        squid_cv_check_sasl="yes"
       else
         echo "checking for MAC Darwin without sasl.h ... no"
-        squid_sasl_present="no"
+        squid_cv_check_sasl="no"
       fi
       ;;
   esac
-  if test "x$squid_sasl_present" != "yes"; then
+  if test "x$squid_cv_check_sasl" = "xno"; then
     AC_MSG_WARN([Neither SASL nor SASL2 found])
+  else
+    squid_cv_check_sasl="yes"
   fi
   AC_SUBST(LIBSASL)
 ])
index e8ccaec89b029b95398060717d88cba6a9bf5129..a675fc6af92fb574408f68e59edede13c8a8f72e 100755 (executable)
@@ -1,6 +1,6 @@
 SQUID_CHECK_SASL
 
 # on success, add to the built modules list
-if test "x$squid_check_sasl" = "xyes"; then
+if test "x$squid_cv_check_sasl" = "xyes"; then
   BUILD_HELPER="SASL"
 fi