From 848ba26243e5e1773bc06132635a911d42756a97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 7 Dec 2013 18:50:49 +0100 Subject: Fix plugins install directory This resolves Bug 1151 --- configure.in.in | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'configure.in.in') diff --git a/configure.in.in b/configure.in.in index a90f40f..b116f30 100644 --- a/configure.in.in +++ b/configure.in.in @@ -77,6 +77,24 @@ if test "x$X" = "x"; then fi UIC=`echo $UIC -L \$\(top_builddir\)/kmymoney2/widgets/.libs` +# +# get qt plugins directory +# + +if test "$PKG_CONFIG" != "no" ; then + if $PKG_CONFIG --exists qt-mt ; then + qt_plugins_dir="`pkg-config --variable=pluginsdir qt-mt`" + else + if $PKG_CONFIG --exists tqt-mt ; then + qt_plugins_dir="`pkg-config --variable=pluginsdir tqt-mt`" + fi + fi +fi +if test "x$qt_plugins_dir" = "x"; then + qt_plugins_dir=$(qt_libraries)/../plugins +fi +AC_SUBST(qt_plugins_dir) + # # create header directory, make symlinks # -- cgit v1.2.1