Fix the gssapi configure check to detect newer MIT Kerberos (patch by

Michael Calmer)
This commit is contained in:
Michal Marek
2008-03-06 17:22:45 +00:00
parent 1cf559492a
commit 40e1a016f9
3 changed files with 12 additions and 7 deletions

View File

@@ -977,18 +977,18 @@ if test x"$want_gss" = xyes; then
gnu_gss=yes
],
[
dnl not found, check Heimdal
AC_CHECK_HEADER(gssapi.h,
dnl not found, check MIT
AC_CHECK_HEADER(gssapi/gssapi.h,
[
dnl found in the given dirs
AC_DEFINE(HAVE_GSSHEIMDAL, 1, [if you have the Heimdal gssapi libraries])
AC_DEFINE(HAVE_GSSMIT, 1, [if you have the MIT gssapi libraries])
],
[
dnl not found, check in gssapi/ subdir
AC_CHECK_HEADER(gssapi/gssapi.h,
dnl not found, check for Heimdal
AC_CHECK_HEADER(gssapi.h,
[
dnl found
AC_DEFINE(HAVE_GSSMIT, 1, [if you have the MIT gssapi libraries])
AC_DEFINE(HAVE_GSSHEIMDAL, 1, [if you have the Heimdal gssapi libraries])
],
[
dnl no header found, disabling GSS