[Commits] [SCM] claws branch, master, updated. 3.11.1-112-g1b89980

ticho at claws-mail.org ticho at claws-mail.org
Sat May 30 23:33:01 CEST 2015


The branch, master has been updated
       via  1b899808550a55a1e51959cf6f7339585c17e816 (commit)
      from  545ff0cc02a37ebcef0514afb42dd273a69ab3bf (commit)

Summary of changes:
 configure.ac                  |   11 +++--------
 src/plugins/rssyl/Makefile.am |    5 ++++-
 2 files changed, 7 insertions(+), 9 deletions(-)


- Log -----------------------------------------------------------------
commit 1b899808550a55a1e51959cf6f7339585c17e816
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sat May 30 23:32:17 2015 +0200

    Use pkg-config to detect Expat library.

diff --git a/configure.ac b/configure.ac
index 60cca19..c4df03d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1069,14 +1069,9 @@ AC_SUBST(CURL_LIBS)
 AC_SUBST(CURL_CFLAGS)
 
 dnl expat **********************************************************************
-HAVE_EXPAT=no
-AC_CHECK_HEADER(expat.h, [expat_header=yes], [])
-AC_CHECK_LIB(expat, XML_ParserCreate, [expat_lib=yes], [])
-if test x"$expat_header" = xyes -a x"$expat_lib"=xyes; then
-	HAVE_EXPAT=yes
-	AC_DEFINE(HAVE_EXPAT, 1, [Define if expat is available])
-	EXPAT_LIBS="-lexpat"
-fi
+PKG_CHECK_MODULES(EXPAT, expat, HAVE_EXPAT=yes, HAVE_EXPAT=no)
+AC_SUBST(EXPAT_LIBS)
+AC_SUBST(EXPAT_CFLAGS)
 
 dnl webkit *********************************************************************
 PKG_CHECK_MODULES(WEBKIT, webkit-1.0 >= 1.1.14, HAVE_WEBKIT=yes, HAVE_WEBKIT=no)
diff --git a/src/plugins/rssyl/Makefile.am b/src/plugins/rssyl/Makefile.am
index 6d71d78..12b663a 100644
--- a/src/plugins/rssyl/Makefile.am
+++ b/src/plugins/rssyl/Makefile.am
@@ -63,6 +63,8 @@ endif
 rssyl_la_LDFLAGS = \
 	$(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
 	-avoid-version -module \
+	$(EXPAT_LIBS) \
+	$(CURL_LIBS) \
 	$(GTK_LIBS)
 
 rssyl_la_DEPENDENCIES = $(plugin_deps) libfeed/libfeed.la
@@ -74,7 +76,8 @@ rssyl_la_CPPFLAGS = \
 	$(IFLAGS) \
 	$(GLIB_CFLAGS) \
 	$(GTK_CFLAGS) \
-	$(CURL_CFLAGS)
+	$(CURL_CFLAGS) \
+	$(EXPAT_CFLAGS)
 
 rssyl_la_SOURCES = \
 	old_feeds.c old_feeds.h \

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list