Blame SOURCES/cyrus-sasl-2.1.26-keytab.patch

bfd35c
diff --git a/cmulocal/sasl2.m4 b/cmulocal/sasl2.m4
bfd35c
index 3c2841a..b086b8f 100644
bfd35c
--- a/cmulocal/sasl2.m4
bfd35c
+++ b/cmulocal/sasl2.m4
bfd35c
@@ -269,6 +269,18 @@ if test "$gssapi" != no; then
bfd35c
   cmu_save_LIBS="$LIBS"
bfd35c
   LIBS="$LIBS $GSSAPIBASE_LIBS"
bfd35c
   AC_CHECK_FUNCS(gsskrb5_register_acceptor_identity)
bfd35c
+  if test "$ac_cv_func_gsskrb5_register_acceptor_identity" = no ; then
bfd35c
+    AC_CHECK_HEADERS(gssapi/gssapi_krb5.h)
bfd35c
+    if test "$ac_cv_header_gssapi_gssapi_krb5_h" = "yes"; then
bfd35c
+      AC_CHECK_DECL(gsskrb5_register_acceptor_identity,
bfd35c
+                    [AC_DEFINE(HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY,1,
bfd35c
+                               [Define if your GSSAPI implementation defines gsskrb5_register_acceptor_identity])],,
bfd35c
+                    [
bfd35c
+                    AC_INCLUDES_DEFAULT
bfd35c
+                    #include <gssapi/gssapi_krb5.h>
bfd35c
+                    ])
bfd35c
+    fi
bfd35c
+  fi
bfd35c
   AC_CHECK_FUNCS(gss_decapsulate_token)
bfd35c
   AC_CHECK_FUNCS(gss_encapsulate_token)
bfd35c
   AC_CHECK_FUNCS(gss_oid_equal)
bfd35c
diff --git a/plugins/gssapi.c b/plugins/gssapi.c
bfd35c
index 6be9d23..e6fcf46 100644
bfd35c
--- a/plugins/gssapi.c
bfd35c
+++ b/plugins/gssapi.c
bfd35c
@@ -51,6 +51,8 @@
bfd35c
 #include <gssapi/gssapi.h>
bfd35c
 #endif
bfd35c
 
bfd35c
+#include <gssapi/gssapi_krb5.h>
bfd35c
+
bfd35c
 #ifdef WIN32
bfd35c
 #  include <winsock2.h>
bfd35c