/pidgin/main: 747e73eab859: Merge release-2.x.y

Tomasz Wasilczyk twasilczyk at pidgin.im
Mon Jun 16 19:57:08 EDT 2014


Changeset: 747e73eab859f87ce086f09cf52b96992f39b45f
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-06-17 01:56 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/747e73eab859

Description:

Merge release-2.x.y

diffstat:

 configure.ac                       |  28 ++++++++++++++++++++++++++++
 libpurple/protocols/gg/Makefile.am |   8 ++------
 2 files changed, 30 insertions(+), 6 deletions(-)

diffs (61 lines):

diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1361,6 +1361,34 @@ fi
 AM_CONDITIONAL(HAVE_LIBGADU, test "x$have_libgadu" = "xyes")
 if test "x$have_libgadu" = "xyes"; then
 	AC_DEFINE(HAVE_LIBGADU, 1, [Linked with external libgadu])
+else
+	AC_CHECK_LIB(gnutls, gnutls_certificate_set_x509_system_trust, [gg_have_gnutls_csxst=yes], [gg_have_gnutls_csxst=no])
+
+	gg_gnutls_sts=""
+	if test "x$gg_have_gnutls_csxst" = "xno"; then
+		for i in /etc/ssl/ca-bundle.pem \
+			/etc/ssl/certs/ca-certificates.crt \
+			/etc/pki/tls/cert.pem \
+			/usr/local/share/certs/ca-root-nss.crt \
+			/etc/ssl/cert.pem
+		do
+			if test -e $i; then
+				gg_gnutls_sts="$i"
+				break
+			fi
+		done
+	fi
+
+	if test "x$gg_have_gnutls_csxst" = "xyes"; then
+		AC_DEFINE(HAVE_GNUTLS_CERTIFICATE_SET_X509_SYSTEM_TRUST, 1, [gnutls contains the gnutls_certificate_set_x509_system_trust function])
+	fi
+	if test "x$gg_gnutls_sts" != "x"; then
+		AC_DEFINE_UNQUOTED(GG_CONFIG_GNUTLS_SYSTEM_TRUST_STORE, ["$gg_gnutls_sts"], [use the given file as GnuTLS default trust store])
+	fi
+
+	PKG_CHECK_MODULES([GNUTLS_2_10], [gnutls >= 2.10.0], [
+		AC_DEFINE([HAVE_GNUTLS_2_10], [], [Defined if GnuTLS >= 2.10.0 is available.])
+	],:)
 fi
 
 AC_SUBST(LIBGADU_LIBS)
diff --git a/libpurple/protocols/gg/Makefile.am b/libpurple/protocols/gg/Makefile.am
--- a/libpurple/protocols/gg/Makefile.am
+++ b/libpurple/protocols/gg/Makefile.am
@@ -50,17 +50,13 @@ INTGG_SOURCES = \
 	lib/tvbuilder.c \
 	lib/tvbuilder.h
 
-INTGG_LIBS = $(ZLIB_LIBS)
+INTGG_LIBS = $(ZLIB_LIBS) $(GNUTLS_LIBS)
 INTGG_CFLAGS = \
 	-I$(top_srcdir)/libpurple/protocols/gg/lib \
 	$(ZLIB_CFLAGS) \
+	$(GNUTLS_CFLAGS) \
 	-DGG_IGNORE_DEPRECATED
 
-if USE_GNUTLS
-	INTGG_LIBS += $(GNUTLS_LIBS)
-	INTGG_CFLAGS += $(GNUTLS_CFLAGS)
-endif
-
 endif
 
 GGSOURCES = \



More information about the Commits mailing list