summaryrefslogtreecommitdiff
path: root/server/external
diff options
context:
space:
mode:
authorsbose <sbose@sles10.site>2009-09-09 12:26:07 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-09-24 21:36:59 -0400
commit7716bef4a7515344a7f552011ba458aaf4582e44 (patch)
treec15f12b8c1e8f19fba47c8b9f1988fc2d9302432 /server/external
parent794c66c7b1f8a367b26b8f56c8503007c234333e (diff)
downloadsssd-7716bef4a7515344a7f552011ba458aaf4582e44.tar.gz
sssd-7716bef4a7515344a7f552011ba458aaf4582e44.tar.bz2
sssd-7716bef4a7515344a7f552011ba458aaf4582e44.zip
added support for older MIT kerberos versions
- make the build of the locator plugin optional - added a man page for the locator plugin - use krb5.h if krb5/krb5.h cannot be found - added alternatives for missing functions - set -DDBUS_API_SUBJECT_TO_CHANGE if libdbus version is lesser than 1.0.0
Diffstat (limited to 'server/external')
-rw-r--r--server/external/krb5.m428
1 files changed, 28 insertions, 0 deletions
diff --git a/server/external/krb5.m4 b/server/external/krb5.m4
index 1ed5064a..95cd386e 100644
--- a/server/external/krb5.m4
+++ b/server/external/krb5.m4
@@ -9,3 +9,31 @@ if test -x "$KRB5_CONFIG"; then
else
AC_MSG_ERROR(no. Please install MIT kerberos devel package)
fi
+
+SAVE_CFLAGS=$CFLAGS
+SAVE_LIBS=$LIBS
+CFLAGS="$CFLAGS $KRB5_CFLAGS"
+LIBS="$LIBS $KRB5_LIBS"
+AC_CHECK_HEADERS([krb5.h krb5/krb5.h])
+AC_CHECK_FUNCS([krb5_get_init_creds_opt_alloc krb5_get_error_message])
+CFLAGS=$SAVE_CFLAGS
+LIBS=$SAVE_LIBS
+
+if test x$ac_cv_header_krb5_h != xyes -a x$ac_cv_header_krb5_krb5_h != xyes
+then
+ AC_MSG_ERROR(you must have Kerberos 5 header files to build sssd)
+fi
+
+AC_ARG_ENABLE([krb5-locator-plugin],
+ [AS_HELP_STRING([--disable-krb5-locator-plugin],
+ [do not build Kerberos locator plugin])],
+ [build_locator=$enableval],
+ [build_locator=yes])
+
+AC_CHECK_HEADER([krb5/locate_plugin.h],
+ [have_locate_plugin=yes],
+ [have_locate_plugin=no]
+ [AC_MSG_NOTICE([Kerberos locator plugin cannot be build])])
+AM_CONDITIONAL([BUILD_KRB5_LOCATOR_PLUGIN],
+ [test x$have_locate_plugin == xyes -a x$build_locator == xyes])
+