summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-07-29 12:56:06 +0200
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2014-07-29 12:56:06 +0200
commitea9003268556154fdc305aa745890fdea92ac46b (patch)
treea3ed6fc20fe4be0d7d07f752942cd5b7e2e3c7de /configure
parentc67f7c0f0fc34887a4922a269815c460cbe3ccf8 (diff)
parent7e74f8f398deb8ed84f6c4613de6dab2066dc9de (diff)
Merge remote-tracking branch 'origin/5.3' into dev
Conflicts: src/network/ssl/qsslsocket_openssl_symbols.cpp Change-Id: Ic62419fa1fee5f4de6c372459d72e6e16f9a810b
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure b/configure
index dbd0c32107..8b95c805b7 100755
--- a/configure
+++ b/configure
@@ -4623,11 +4623,19 @@ if [ "$CFG_DBUS" != "no" ]; then
if [ -n "$PKG_CONFIG" ] && $PKG_CONFIG --atleast-version="$MIN_DBUS_1_VERSION" dbus-1 2>/dev/null; then
QT_CFLAGS_DBUS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
QT_LIBS_DBUS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
+ else
+ QT_LIBS_DBUS="-ldbus-1"
fi
if compileTest unix/dbus "D-Bus" $QT_CFLAGS_DBUS $QT_LIBS_DBUS; then
[ "$CFG_DBUS" = "auto" ] && CFG_DBUS=yes
- QMakeVar set QT_CFLAGS_DBUS "$QT_CFLAGS_DBUS"
QMakeVar set QT_LIBS_DBUS "$QT_LIBS_DBUS"
+ QMakeVar set QT_CFLAGS_DBUS "$QT_CFLAGS_DBUS"
+ # Try find correct host configuration for dbus tools when cross-compiling
+ if [ "$QT_CROSS_COMPILE" = "yes" ] && env -i PATH="$PATH" \
+ pkg-config --atleast-version="$MIN_DBUS_1_VERSION" dbus-1 2>/dev/null; then
+ QT_CFLAGS_DBUS=`env -i PATH="$PATH" pkg-config --cflags dbus-1 2>/dev/null`
+ fi
+ QMakeVar set QT_HOST_CFLAGS_DBUS "$QT_CFLAGS_DBUS"
else
if [ "$CFG_DBUS" = "auto" ]; then
CFG_DBUS=no