summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2016-04-15 12:41:35 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2016-04-21 12:24:10 +0200
commit91d312000e6ded4a93327c137b10c5beda55f65c (patch)
treeb0eee51d2be219a03f4c9ea5231b8a6fd100c598
parentfd3cbf6bfe86a245d7e90d2a355794eb9c70d525 (diff)
downloadsssd-91d312000e6ded4a93327c137b10c5beda55f65c.tar.gz
sssd-91d312000e6ded4a93327c137b10c5beda55f65c.tar.xz
sssd-91d312000e6ded4a93327c137b10c5beda55f65c.zip
build: move ndr_krb5pac check to the other Samba checks
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
-rw-r--r--Makefile.am7
-rw-r--r--src/external/pac_responder.m414
-rw-r--r--src/external/samba.m412
3 files changed, 21 insertions, 12 deletions
diff --git a/Makefile.am b/Makefile.am
index a287fbffb..9144274c7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -220,7 +220,6 @@ if HAVE_CMOCKA
test_sss_idmap \
test_ipa_idmap \
test_utils \
- ad_common_tests \
dp_opt_tests \
responder-get-domains-tests \
sbus-internal-tests \
@@ -242,7 +241,6 @@ if HAVE_CMOCKA
test_fo_srv \
pam-srv-tests \
test_ipa_subdom_util \
- test_ipa_subdom_server \
test_tools_colondb \
test_krb5_wait_queue \
test_cert_utils \
@@ -262,7 +260,10 @@ endif # BUILD_IFP
if BUILD_SAMBA
non_interactive_cmocka_based_tests += \
ad_access_filter_tests \
- ad_gpo_tests
+ ad_gpo_tests \
+ ad_common_tests \
+ test_ipa_subdom_server \
+ $(NULL)
endif
endif # HAVE_CMOCKA
diff --git a/src/external/pac_responder.m4 b/src/external/pac_responder.m4
index a9e142dc9..928b1d295 100644
--- a/src/external/pac_responder.m4
+++ b/src/external/pac_responder.m4
@@ -1,19 +1,12 @@
-AC_SUBST(NDR_KRB5PAC_CFLAGS)
-AC_SUBST(NDR_KRB5PAC_LIBS)
-
AC_ARG_ENABLE([pac-responder],
[AS_HELP_STRING([--enable-pac-responder],
[build pac responder])],
[build_pac_responder=$enableval],
[build_pac_responder=yes])
-ndr_krb5pac_ok=no
krb5_version_ok=no
if test x$build_pac_responder = xyes
then
- PKG_CHECK_MODULES(NDR_KRB5PAC, ndr_krb5pac, ndr_krb5pac_ok=yes,
- AC_MSG_WARN([Cannot build pac responder without libndr_krb5pac]))
-
AC_PATH_PROG(KRB5_CONFIG, krb5-config)
AC_MSG_CHECKING(for supported MIT krb5 version)
KRB5_VERSION="`$KRB5_CONFIG --version`"
@@ -34,6 +27,11 @@ then
esac
fi
-AM_CONDITIONAL([BUILD_PAC_RESPONDER], [test x$build_pac_responder = xyes -a x$ndr_krb5pac_ok = xyes -a x$krb5_version_ok = xyes ])
+if test x$with_samba != xyes
+then
+ AC_MSG_WARN([Cannot build PAC responder without Samba])
+fi
+
+AM_CONDITIONAL([BUILD_PAC_RESPONDER], [test x$build_pac_responder = xyes -a x$with_samba = xyes -a x$krb5_version_ok = xyes ])
AM_COND_IF([BUILD_PAC_RESPONDER],
[AC_DEFINE_UNQUOTED(HAVE_PAC_RESPONDER, 1, [Build with the PAC responder])])
diff --git a/src/external/samba.m4 b/src/external/samba.m4
index 10a553b83..91a583a0d 100644
--- a/src/external/samba.m4
+++ b/src/external/samba.m4
@@ -2,10 +2,20 @@ AC_SUBST(NDR_NBT_CFLAGS)
AC_SUBST(NDR_NBT_LIBS)
AC_SUBST(SMBCLIENT_CFLAGS)
AC_SUBST(SMBCLIENT_LIBS)
+AC_SUBST(NDR_KRB5PAC_CFLAGS)
+AC_SUBST(NDR_KRB5PAC_LIBS)
if test x"$with_samba" = xyes; then
PKG_CHECK_MODULES(NDR_NBT, ndr_nbt, ,
- AC_MSG_ERROR([[Please install Samba 4 development libraries.
+ AC_MSG_ERROR([[Please install Samba 4 NDR NBT development libraries.
+Samba 4 libraries are necessary for building ad and ipa provider.
+If you do not want to build these providers it is possible to build SSSD
+without them. In this case, you will need to execute configure script
+with argument --without-samba
+ ]]))
+
+ PKG_CHECK_MODULES(NDR_KRB5PAC, ndr_krb5pac, ,
+ AC_MSG_ERROR([[Please install Samba 4 NDR KRB5PAC development libraries.
Samba 4 libraries are necessary for building ad and ipa provider.
If you do not want to build these providers it is possible to build SSSD
without them. In this case, you will need to execute configure script