diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/tls/config.m4 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/lib/tls/config.m4 b/source4/lib/tls/config.m4 index 1e4d61f6fe..b1e4d2cb29 100644 --- a/source4/lib/tls/config.m4 +++ b/source4/lib/tls/config.m4 @@ -6,7 +6,12 @@ SMB_EXT_LIB_FROM_PKGCONFIG(GNUTLS, gnutls) if test x$SMB_ENABLE_GNUTLS = xNO; then AC_CHECK_HEADERS(gnutls/gnutls.h) AC_CHECK_LIB_EXT(gnutls, GNUTLS_LIBS, gnutls_global_init) - if test x"$ac_cv_header_gnutls_gnutls_h" = x"yes" -a x"$ac_cv_lib_ext_gnutls_gnutls_global_init" = x"yes";then + AC_CHECK_DECL(gnutls_x509_crt_set_version, + [AC_DEFINE(HAVE_GNUTLS_X509_CRT_SET_VERSION,1,gnutls set_version)], [], [ + #include <gnutls/gnutls.h> + #include <gnutls/x509.h> + ]) + if test x"$ac_cv_header_gnutls_gnutls_h" = x"yes" -a x"$ac_cv_lib_ext_gnutls_gnutls_global_init" = x"yes" -a x"$ac_cv_have_gnutls_x509_crt_set_version_decl" = x"yes";then SMB_ENABLE(GNUTLS,YES) AC_CHECK_DECL(gnutls_x509_crt_set_subject_key_id, [AC_DEFINE(HAVE_GNUTLS_X509_CRT_SET_SUBJECT_KEY_ID,1,gnutls subject_key)], [], [ |