summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-02-05 19:23:47 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-02-05 19:23:47 +0100
commit59f924fd3822e5887777a7d3b3f5c5d315ef49ce (patch)
treeaf8e8be512fe97e167c688d46522b41f681ea759
parentfebf5ba8da2479620fe58cabd9b9a1a515a375f5 (diff)
downloadkipi-plugins-59f924fd.zip
kipi-plugins-59f924fd.tar.gz
Add libxslt detection using pkg-config.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--kipi-plugins/configure.in.in23
1 files changed, 15 insertions, 8 deletions
diff --git a/kipi-plugins/configure.in.in b/kipi-plugins/configure.in.in
index 82d0057..7963aee 100644
--- a/kipi-plugins/configure.in.in
+++ b/kipi-plugins/configure.in.in
@@ -334,14 +334,21 @@ fi
have_xslt=no
if test "x$build_xslt" != "xno"; then
- AC_PATH_PROG(XSLT_CONFIG,xslt-config)
- if test -n "${XSLT_CONFIG}"; then
- LIBXSLT_CFLAGS="`$XSLT_CONFIG --cflags`"
- AC_SUBST(LIBXSLT_CFLAGS)
- LIBXSLT_LIBS="`$XSLT_CONFIG --libs`"
- AC_SUBST(LIBXSLT_LIBS)
- have_xslt=yes
- else
+ KDE_PKG_CHECK_MODULES(LIBXSLT, libxslt,
+ have_xslt=yes, have_xslt=no)
+
+ if test "x$have_xslt" != "xyes"; then
+ AC_PATH_PROG(XSLT_CONFIG,xslt-config)
+ if test -n "${XSLT_CONFIG}"; then
+ LIBXSLT_CFLAGS="`$XSLT_CONFIG --cflags`"
+ AC_SUBST(LIBXSLT_CFLAGS)
+ LIBXSLT_LIBS="`$XSLT_CONFIG --libs`"
+ AC_SUBST(LIBXSLT_LIBS)
+ have_xslt=yes
+ fi
+ fi
+
+ if test "x$have_xslt" != "xyes"; then
AC_MSG_WARN([libxslt library not found, some plugins will not be compiled])
fi
fi