r8482: gnutls_x509_crt_set_subject_key_id is not available in some versions
[bbaumbach/samba-autobuild/.git] / source4 / lib / tls / config.m4
1 ###############################
2 # start SMB_EXT_LIB_GNUTLS
3 # check for gnutls/gnutls.h and -lgnutls
4 AC_CHECK_HEADERS(gnutls/gnutls.h)
5 AC_CHECK_LIB_EXT(gnutls, GNUTLS_LIBS, gnutls_global_init)
6 if test x"$ac_cv_header_gnutls_gnutls_h" = x"yes" -a x"$ac_cv_lib_ext_gnutls_gnutls_global_init" = x"yes";then
7         SMB_EXT_LIB_ENABLE(GNUTLS,YES)
8         AC_CHECK_DECL(gnutls_x509_crt_set_subject_key_id,  
9                       [AC_DEFINE(HAVE_GNUTLS_X509_CRT_SET_SUBJECT_KEY_ID,1,gnutls subject_key)], [], [
10 #include <gnutls/gnutls.h>
11 #include <gnutls/x509.h>
12 ])
13 fi
14 SMB_EXT_LIB(GNUTLS, $GNUTLS_LIBS)
15 # end SMB_EXT_LIB_GNUTLS
16 ###############################