* configure.ac (LIBGNUTLS): Don't set LIBGNUTLS_* back to the empty
string when gnutls2 is installed but gnutls3 is not.
This commit is contained in:
parent
f747170fc5
commit
c5fc017811
2 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
11
configure.ac
11
configure.ac
|
@ -2424,14 +2424,15 @@ AC_SUBST(LIBSELINUX_LIBS)
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue