]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix basic_pam_auth helper detection
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 3 Jun 2013 14:38:26 +0000 (08:38 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 3 Jun 2013 14:38:26 +0000 (08:38 -0600)
The m4_include() for this helpers test script was omitted from rev.12782.
Add that in, and shuffle the PAM-specific configure tests into the helper
required.m4 script.

configure.ac
helpers/basic_auth/PAM/required.m4
helpers/basic_auth/modules.m4

index ff84540b1d271c65b28182c552e52b8e2eda6643..4f92468ee17f353de1da10c1b1200b6a29c2dd4a 100644 (file)
@@ -2202,7 +2202,6 @@ AC_CHECK_HEADERS( \
   shadow.h \
   regex.h \
   sched.h \
-  security/pam_appl.h \
   siginfo.h \
   signal.h \
   sstream \
@@ -2254,8 +2253,6 @@ AC_CHECK_HEADERS( \
   wchar.h
 )
 
-CHECK_STRUCT_PAM_CONV
-
 AC_CHECK_HEADERS(
   linux/netfilter_ipv4.h
 ,,,
index b5a20783bb8289b2ebe707377f37151d1c45c778..a59f77e1b0234a5dff5481573c41e9ea0f5a9b2c 100755 (executable)
@@ -1 +1,4 @@
-AC_CHECK_HEADERS([security/pam_appl.h],[BUILD_HELPER="PAM"])
+AC_CHECK_HEADERS([security/pam_appl.h],[
+  BUILD_HELPER="PAM"
+  CHECK_STRUCT_PAM_CONV
+])
index 763b7b822d35162e70cc1f937de713a7b98aeb6e..9abb40ce3519287b649ec7cec2ec472c2a5bbef0 100644 (file)
@@ -49,6 +49,9 @@ if test "x$enable_auth_basic" != "xno" ; then
       elif test "x$helper" = "xNIS" ; then
         m4_include([helpers/basic_auth/NIS/required.m4])
 
+      elif test "x$helper" = "xPAM" ; then
+        m4_include([helpers/basic_auth/PAM/required.m4])
+
       elif test "x$helper" = "xPOP3" ; then
         m4_include([helpers/basic_auth/POP3/required.m4])