summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libads/config.m41
-rw-r--r--source4/libcli/config.m47
2 files changed, 7 insertions, 1 deletions
diff --git a/source4/libads/config.m4 b/source4/libads/config.m4
index 98ddd04d76..99d138cd09 100644
--- a/source4/libads/config.m4
+++ b/source4/libads/config.m4
@@ -427,6 +427,7 @@ if test x"$with_ads_support" != x"no"; then
AC_DEFINE(WITH_ADS,1,[Whether to include Active Directory support])
AC_MSG_CHECKING(whether Active Directory and KRB5 support is used)
AC_MSG_RESULT(yes)
+ with_ads_support=yes
SMB_EXT_LIB_ENABLE(KRB5,YES)
else
if test x"$with_ads_support" = x"yes"; then
diff --git a/source4/libcli/config.m4 b/source4/libcli/config.m4
index 7331223487..e24fd1ba9e 100644
--- a/source4/libcli/config.m4
+++ b/source4/libcli/config.m4
@@ -1,5 +1,10 @@
dnl # LIBCLI subsystem
+LIBCLI_RAW_LIBS=
+if test x"$with_ads_support" = x"yes"; then
+ LIBCLI_RAW_LIBS="KRB5"
+fi
+
SMB_SUBSYSTEM(LIBCLI_RAW,[],
[libcli/raw/rawfile.o
libcli/raw/smb_signing.o
@@ -23,7 +28,7 @@ SMB_SUBSYSTEM(LIBCLI_RAW,[],
libcli/raw/rawioctl.o
libcli/raw/rawacl.o
libcli/raw/rawdate.o],
- [KRB5])
+ [${LIBCLI_RAW_LIBS}])
SMB_SUBSYSTEM(LIBCLI_UTILS,[],
[libcli/util/asn1.o