From 7efbb82f43d5b7c17c4f7a4bfc363e6bf0291281 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 7 May 2012 11:52:34 +0200 Subject: Kerberos locator: Include the correct krb5.h header file https://fedorahosted.org/sssd/ticket/1325 --- src/external/krb5.m4 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/external') diff --git a/src/external/krb5.m4 b/src/external/krb5.m4 index a8707c6e..ee966261 100644 --- a/src/external/krb5.m4 +++ b/src/external/krb5.m4 @@ -38,7 +38,12 @@ CFLAGS="$CFLAGS $KRB5_CFLAGS" LIBS="$LIBS $KRB5_LIBS" AC_CHECK_HEADERS([krb5.h krb5/krb5.h]) AC_CHECK_TYPES([krb5_ticket_times, krb5_times], [], [], - [[#include ]]) + [ #ifdef HAVE_KRB5_KRB5_H + #include + #else + #include + #endif + ]) AC_CHECK_FUNCS([krb5_get_init_creds_opt_alloc krb5_get_error_message \ krb5_free_unparsed_name \ krb5_get_init_creds_opt_set_expire_callback \ @@ -69,7 +74,13 @@ AC_ARG_ENABLE([krb5-locator-plugin], AC_CHECK_HEADER([krb5/locate_plugin.h], [have_locate_plugin=yes], [have_locate_plugin=no] - [AC_MSG_NOTICE([Kerberos locator plugin cannot be build])]) + [AC_MSG_NOTICE([Kerberos locator plugin cannot be built])], + [ #ifdef HAVE_KRB5_KRB5_H + #include + #else + #include + #endif + ]) AM_CONDITIONAL([BUILD_KRB5_LOCATOR_PLUGIN], [test x$have_locate_plugin = xyes -a x$build_locator = xyes]) -- cgit