summaryrefslogtreecommitdiff
path: root/source4/lib/tls/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/tls/config.m4')
-rw-r--r--source4/lib/tls/config.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/tls/config.m4 b/source4/lib/tls/config.m4
index 18dbea1e5f..1e4d61f6fe 100644
--- a/source4/lib/tls/config.m4
+++ b/source4/lib/tls/config.m4
@@ -17,6 +17,9 @@ if test x$SMB_ENABLE_GNUTLS = xNO; then
SMB_EXT_LIB(GNUTLS, $GNUTLS_LIBS)
fi
if test x$SMB_ENABLE_GNUTLS = xYES; then
+ #Some older versions have a different type name
+ AC_CHECK_TYPES([gnutls_datum],,,[#include "gnutls/gnutls.h"])
+ AC_CHECK_TYPES([gnutls_datum_t],,,[#include "gnutls/gnutls.h"])
AC_DEFINE(HAVE_LIBGNUTLS,1,[Whether we have gnutls support (SSL)])
fi
# end SMB_EXT_LIB_GNUTLS