summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_configure.prf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/features/qt_configure.prf')
-rw-r--r--mkspecs/features/qt_configure.prf13
1 files changed, 9 insertions, 4 deletions
diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
index 41bd75c45d..c20a9672e4 100644
--- a/mkspecs/features/qt_configure.prf
+++ b/mkspecs/features/qt_configure.prf
@@ -503,12 +503,16 @@ defineTest(qtConfLibrary_makeSpec) {
# the library is found via pkg-config.
defineTest(qtConfLibrary_pkgConfig) {
pkg_config = $$qtConfPkgConfig($$eval($${1}.host))
- isEmpty(pkg_config): \
+ isEmpty(pkg_config) {
+ qtLog("pkg-config use disabled globally.")
return(false)
+ }
args = $$qtConfPrepareArgs($$eval($${1}.args))
- !qtConfPkgConfigPackageExists($$pkg_config, $$args): \
+ !qtConfPkgConfigPackageExists($$pkg_config, $$args) {
+ qtLog("pkg-config did not find package.")
return(false)
+ }
qtRunLoggedCommand("$$pkg_config --modversion $$args", version)|return(false)
qtRunLoggedCommand("$$pkg_config --libs-only-L --libs-only-l $$args", $${1}.libs)|return(false)
@@ -619,8 +623,9 @@ defineTest(qtConfHandleLibrary) {
qtLog("Trying source $$s (type $$t) of library $${1} ...")
- !$$qtConfEvaluate($$eval($${spfx}.condition)) {
- qtLog(" => source failed condition.")
+ cond = $$eval($${spfx}.condition)
+ !$$qtConfEvaluate($$cond) {
+ qtLog(" => source failed condition '$$cond'.")
next()
}