+2013-10-11 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * configure.ac (LIBGNUTLS): Don't set LIBGNUTLS_* back to the empty
+ string when gnutls2 is installed but gnutls3 is not.
+
2013-10-11 Teodor Zlatanov <tzz@lifelogs.com>
* configure.ac: Define HAVE_GNUTLS3 if GnuTLS v3 is found.
HAVE_GNUTLS=no
HAVE_GNUTLS3=no
if test "${with_gnutls}" = "yes" ; then
- PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 2.6.6], HAVE_GNUTLS=yes, HAVE_GNUTLS=no)
PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 3.0.0], HAVE_GNUTLS3=yes, HAVE_GNUTLS3=no)
- if test "${HAVE_GNUTLS}" = "yes"; then
- AC_DEFINE(HAVE_GNUTLS, 1, [Define if using GnuTLS.])
- fi
-
if test "${HAVE_GNUTLS3}" = "yes"; then
AC_DEFINE(HAVE_GNUTLS3, 1, [Define if using GnuTLS v3.])
+ HAVE_GNUTLS="yes"
+ else
+ PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 2.6.6], HAVE_GNUTLS=yes, HAVE_GNUTLS=no)
+ fi
+ if test "${HAVE_GNUTLS}" = "yes"; then
+ AC_DEFINE(HAVE_GNUTLS, 1, [Define if using GnuTLS.])
fi
# Windows loads GnuTLS dynamically