diff options
author | Günther Deschner <gd@samba.org> | 2009-11-25 21:33:48 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-01-13 14:01:01 +0100 |
commit | 38454d893f5b96880168c4040539fa25db334a3f (patch) | |
tree | 97b0d13a110b342e2e8c8a9e58d83c55094f6d64 /source | |
parent | 6e0d2b6110f8bc9ccf1175b19cecff7c597e169b (diff) | |
download | samba-38454d893f5b96880168c4040539fa25db334a3f.tar.gz samba-38454d893f5b96880168c4040539fa25db334a3f.tar.xz samba-38454d893f5b96880168c4040539fa25db334a3f.zip |
s3-kerberos: add check for prerequisite krb5/krb5.h header while checking for krb5/locate_plugin.h.
(Needed for new Heimdal versions).
Guenther
(cherry picked from commit c438b2b3923db66672ec82e795eef543de5fcb8a)
(cherry picked from commit e5592560bb8f90446bd8cbe8019663cbf00e22ab)
Diffstat (limited to 'source')
-rw-r--r-- | source/configure.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/configure.in b/source/configure.in index cf46405c3b6..ead0e29fa0d 100644 --- a/source/configure.in +++ b/source/configure.in @@ -3519,7 +3519,7 @@ if test x"$with_ads_support" != x"no"; then # now check for krb5.h. Some systems have the libraries without the headers! # note that this check is done here to allow for different kerberos # include paths - AC_CHECK_HEADERS(krb5.h) + AC_CHECK_HEADERS(krb5.h krb5/krb5.h) if test x"$ac_cv_header_krb5_h" = x"no"; then @@ -3540,7 +3540,12 @@ if test x"$with_ads_support" != x"no"; then CPPFLAGS=$ac_save_CPPFLAGS LDFLAGS=$ac_save_LDFLAGS fi - AC_CHECK_HEADERS(krb5/locate_plugin.h) + AC_CHECK_HEADERS([krb5/locate_plugin.h], [], [], +[[#ifdef HAVE_KRB5_KRB5_H + #include <krb5/krb5.h> + #endif +]]) + if test x"$ac_cv_header_krb5_locate_plugin_h" = x"yes"; then WINBIND_KRB5_LOCATOR="bin/winbind_krb5_locator.$SHLIBEXT" EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WINBIND_KRB5_LOCATOR" |