1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 04:17:33 +00:00

Use pkg-config to detect libxml2 and curl.

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@871 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Roman Bogorodskiy 2007-06-01 13:32:06 +00:00
parent a4841496e1
commit debd3bd151

View File

@ -184,14 +184,15 @@ dnl RSS
dnl dnl
AC_ARG_ENABLE([rss], AC_ARG_ENABLE([rss],
AC_HELP_STRING([--enable-rss], [enable if you want rss support (requires libmrss) @<:@default=no@:>@]), AC_HELP_STRING([--enable-rss], [enable if you want rss support @<:@default=no@:>@]),
[want_rss="$enableval"], [want_rss=no]) [want_rss="$enableval"], [want_rss=no])
# #
AM_CONDITIONAL(BUILD_RSS, test x$want_rss = xyes) AM_CONDITIONAL(BUILD_RSS, test x$want_rss = xyes)
if test x$want_rss = xyes; then if test x$want_rss = xyes; then
WANT_GLIB=yes WANT_GLIB=yes
CFLAGS="$CFLAGS `xml2-config --cflags` `curl-config --cflags`" PKG_CHECK_MODULES(RSS, libxml-2.0 libcurl,,exit)
LIBS="$LIBS `xml2-config --libs` `curl-config --libs`" CFLAGS="$CFLAGS $RSS_CFLAGS"
LIBS="$LIBS $RSS_LIBS"
AC_DEFINE(RSS, 1, [Define if you want rss support]) AC_DEFINE(RSS, 1, [Define if you want rss support])
fi fi