summaryrefslogtreecommitdiffstats
path: root/src/external
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2012-06-21 22:12:55 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-06-21 17:03:01 -0400
commit3b1386e5ad510eb29d826a53113324af2c096e26 (patch)
tree2782abae467e8eac5b92a2e4eabbab73cdcde1ae /src/external
parente13baa8dab9741d9221d3794fd8abf3d461f8d6d (diff)
downloadsssd_unused-3b1386e5ad510eb29d826a53113324af2c096e26.tar.gz
sssd_unused-3b1386e5ad510eb29d826a53113324af2c096e26.tar.xz
sssd_unused-3b1386e5ad510eb29d826a53113324af2c096e26.zip
Try to build PAC responder only if all dependencies are available
Diffstat (limited to 'src/external')
-rw-r--r--src/external/pac_responder.m413
1 files changed, 8 insertions, 5 deletions
diff --git a/src/external/pac_responder.m4 b/src/external/pac_responder.m4
index f2841924..8c960f71 100644
--- a/src/external/pac_responder.m4
+++ b/src/external/pac_responder.m4
@@ -12,10 +12,12 @@ then
build_pac_responder=yes
fi
+ndr_krb5pac_ok=no
+krb5_version_ok=no
if test x$build_pac_responder == xyes
then
- PKG_CHECK_MODULES(NDR_KRB5PAC, ndr_krb5pac,,
- AC_MSG_ERROR([Cannot build pac responder without libndr_krb5pac]))
+ 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)
@@ -23,12 +25,13 @@ then
case $KRB5_VERSION in
Kerberos\ 5\ release\ 1.9* | \
Kerberos\ 5\ release\ 1.10*)
+ krb5_version_ok=yes
AC_MSG_RESULT(yes)
;;
*)
- AC_MSG_ERROR([Cannot build authdata plugin with this version of
- MIT Kerberos, please use 1.9.x or 1.10.x])
+ AC_MSG_WARN([Cannot build authdata plugin with this version of
+ MIT Kerberos, please use 1.9.x or 1.10.x])
esac
fi
-AM_CONDITIONAL([BUILD_PAC_RESPONDER], [test x$build_pac_responder = xyes ])
+AM_CONDITIONAL([BUILD_PAC_RESPONDER], [test x$build_pac_responder = xyes -a x$ndr_krb5pac_ok = xyes -a x$krb5_version_ok = xyes ])