From: Howard Chu Date: Tue, 1 Jul 2014 03:22:43 +0000 (-0700) Subject: ITS#7877 require GnuTLS 2.12.0 or newer X-Git-Tag: OPENLDAP_REL_ENG_2_5_0ALPHA~141^2~306 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6559e3c18c9bc26d2461a36528e8a1a41d555abf;p=thirdparty%2Fopenldap.git ITS#7877 require GnuTLS 2.12.0 or newer --- diff --git a/configure.in b/configure.in index 84bfc8afb7..3d546aabd5 100644 --- a/configure.in +++ b/configure.in @@ -1207,6 +1207,13 @@ if test $ol_link_tls = no ; then AC_CHECK_HEADERS(gnutls/gnutls.h) if test $ac_cv_header_gnutls_gnutls_h = yes ; then + AC_PREPROC_IFELSE( + [[#include ] +[#if GNUTLS_VERSION_NUMBER < 0x020c00] +[#error "GnuTLS 2.12.0 or newer required"] +[#endif]], + , [AC_MSG_FAILURE([GnuTLS is too old])]) + AC_CHECK_LIB(gnutls, gnutls_init, [have_gnutls=yes], [have_gnutls=no])