summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-11-27 22:37:25 +0000
committerAndrew Tridgell <tridge@samba.org>2001-11-27 22:37:25 +0000
commita7ac992b12325c9771ef9baa5543c1e7ac2121d4 (patch)
tree4d1fef64dcb609dd71aacbe99842eb8f013e2402 /source3/include
parente2adbd456864e23724e83cd83f60269bcbb2fdaf (diff)
downloadsamba-a7ac992b12325c9771ef9baa5543c1e7ac2121d4.tar.gz
samba-a7ac992b12325c9771ef9baa5543c1e7ac2121d4.tar.bz2
samba-a7ac992b12325c9771ef9baa5543c1e7ac2121d4.zip
added test for krb5.h
this was causing the kerberos stuff to fail compilation on several platforms (This used to be commit 17e2f3897374c76dd66b21fdcd93c3a04671f4ce)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/config.h.in3
-rw-r--r--source3/include/includes.h9
2 files changed, 11 insertions, 1 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in
index 6280c793eb..92b726c45c 100644
--- a/source3/include/config.h.in
+++ b/source3/include/config.h.in
@@ -820,6 +820,9 @@
/* Define if you have the <history.h> header file. */
#undef HAVE_HISTORY_H
+/* Define if you have the <krb5.h> header file. */
+#undef HAVE_KRB5_H
+
/* Define if you have the <lastlog.h> header file. */
#undef HAVE_LASTLOG_H
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 0a3fd1f4c0..0ebc09b450 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -379,18 +379,25 @@
#if HAVE_KRB5_H
#include <krb5.h>
+#else
+#undef HAVE_KRB5
#endif
#if HAVE_LDAP_H
#include <ldap.h>
+#else
+#undef HAVE_LDAP
#endif
#if HAVE_SASL_H
#include <sasl.h>
+#else
+/* we must have sasl to use ldap */
+#undef HAVE_LDAP
#endif
/* we support ADS if we have krb5 and ldap libs */
-#if defined(HAVE_KRB5) && defined(HAVE_KRB5_H) && defined(HAVE_LDAP) && defined(HAVE_LDAP_H) && defined(HAVE_SASL_H)
+#if defined(HAVE_KRB5) && defined(HAVE_LDAP)
#define HAVE_ADS
#endif