SQUID_DEFINE_BOOL(USE_AUTH,$enable_auth,[Enable support for authentication])
AM_CONDITIONAL(ENABLE_AUTH, test "x$enable_auth" != "xno")
AUTH_MODULES=""
+require_smblib=0
AC_ARG_ENABLE(auth-basic,
AS_HELP_STRING([--enable-auth-basic="list of helpers"],
done
AC_SUBST(AUTH_MODULES)
AC_SUBST(AUTH_LIBS_TO_BUILD)
+AM_CONDITIONAL(ENABLE_SMBLIB, $require_smblib)
dnl Select logging daemon helpers to build
AC_ARG_ENABLE(log-daemon-helpers,
<descrip>
<tag>--enable-auth-basic</tag>
<p>The <em>MSNT-multi-domain</em> helper has been removed.
+ <p>The SMB LanMan helper <em>SMB_LM</em> is no longer built by default.
+ It needs to be explicitly listed to be built.
<tag>--enable-auth-ntlm</tag>
<p>The SMB LanMan helper is now built using <em>SMB_LM</em>
(was lower case <em>smb_lm</em>).
+ <p>The SMB LanMan helper <em>SMB_LM</em> is no longer built by default.
+ It needs to be explicitly listed to be built.
<tag>--enable-diskio</tag>
<p>Auto-detection of SMP related modules has been fixed to
noinst_LTLIBRARIES += libsspwin32.la
libsspwin32_la_SOURCES = sspwin32.cc
else
-SUBDIRS += rfcnb smblib
EXTRA_DIST += sspwin32.cc
endif
+if ENABLE_SMBLIB
+# smblib is the only user of the rfcnb library
+SUBDIRS += rfcnb smblib
+endif
if ENABLE_AUTH_NTLM
SUBDIRS += ntlmauth
endif
## Please see the COPYING and CONTRIBUTORS files for details.
##
-BUILD_HELPER="SMB_LM"
-
# DONT build this helper on Windows
-AC_CHECK_HEADERS([w32api/windows.h windows.h],[BUILD_HELPER=""])
+# DONT build this helper by default
+if test "x$auto_auth_basic_modules" != "xyes";then
+ BUILD_HELPER="SMB_LM"
+ AC_CHECK_HEADERS([w32api/windows.h windows.h],[BUILD_HELPER=""])
+ require_smblib=`test "x$BUILD_HELPER" = "xSMB_LM"`
+fi
#
# DONT build this helper on Windows
+# DONT build this helper by default
#
# XXX: do we really need the mingw check?
-if test "$squid_host_os" != "mingw"; then
+if test "$squid_host_os" != "mingw" -a "x$auto_auth_ntlm_modules" != "xyes"; then
BUILD_HELPER="SMB_LM"
AC_CHECK_HEADERS([w32api/windows.h windows.h],[BUILD_HELPER=""])
+ require_smblib=`test "x$BUILD_HELPER" = "xSMB_LM"`
fi