1 # Allow gnome-vfs-2.24 to build with gnutls >= 2.7.0
2 # Use pkg-config in place of gnutls own macro since it's not present anymore.
3 --- a/configure.in 2009-03-07 19:59:53.805507753 +0100
4 +++ b/configure.in 2009-03-07 18:34:36.928169018 +0100
6 AC_MSG_ERROR([*** Can't use both openssl and gnutls at the same time. Please pick one only. ***])
8 AC_CHECK_HEADER(gcrypt.h,, AC_MSG_ERROR([*** Need gcrypt.h to compile with GnuTLS support ***]))
9 - AM_PATH_LIBGNUTLS(1.0.0, [AC_DEFINE(HAVE_GNUTLS, 1, [Define to 1 if GnuTLS is available])
11 + PKG_CHECK_MODULES(LIBGNUTLS, gnutls >= 1.0.0, [AC_DEFINE(HAVE_GNUTLS, 1, [Define to 1 if GnuTLS is available])
14 if test "x${LIBGNUTLS_LIBS}" = "x"; then
15 - AM_PATH_LIBGNUTLS(0.5.1, [AC_DEFINE(HAVE_GNUTLS, 1, [Define to 1 if GnuTLS is available])
16 - AC_DEFINE(GNUTLS_COMPAT, 1, [FIXME])
18 - AC_MSG_ERROR([Unable to find GNUTLS]))
19 + PKG_CHECK_MODULES(LIBGNUTLS, gnutls >= 0.5.1, [AC_DEFINE(HAVE_GNUTLS, 1, [Define to 1 if GnuTLS is available])
20 + AC_DEFINE(GNUTLS_COMPAT, 1, [FIXME])
22 + AC_MSG_ERROR([Unable to find GNUTLS]))