Require gnutls >= 2.2.0

pull/1/head
Tatsuhiro Tsujikawa 2011-05-20 20:45:09 +09:00
parent c6b71eac8f
commit fbba1010ee
1 changed files with 3 additions and 2 deletions

View File

@ -99,8 +99,9 @@ if test "x$with_sqlite3" = "xyes"; then
fi fi
if test "x$with_gnutls" = "xyes"; then if test "x$with_gnutls" = "xyes"; then
# gnutls >= 2.8 doesn't have libgnutls-config anymore. # gnutls >= 2.8 doesn't have libgnutls-config anymore. We require
PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 1.2.9], # 2.2.0 because we use gnutls_priority_set_direct()
PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 2.2.0],
[have_libgnutls=yes], [have_libgnutls=no]) [have_libgnutls=yes], [have_libgnutls=no])
if test "x$have_libgnutls" = "xyes"; then if test "x$have_libgnutls" = "xyes"; then
AC_DEFINE([HAVE_LIBGNUTLS], [1], [Define to 1 if you have libgnutls.]) AC_DEFINE([HAVE_LIBGNUTLS], [1], [Define to 1 if you have libgnutls.])