summaryrefslogtreecommitdiffstats
path: root/configure.pri
diff options
context:
space:
mode:
Diffstat (limited to 'configure.pri')
-rw-r--r--configure.pri14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.pri b/configure.pri
index 497557262..ecf2ce4d3 100644
--- a/configure.pri
+++ b/configure.pri
@@ -157,6 +157,20 @@ defineTest(qtConfTest_detectIcuuc) {
return(false)
}
+defineTest(qtConfTest_detectHostPkgConfig) {
+ PKG_CONFIG = $$qtConfPkgConfig(true)
+ isEmpty(PKG_CONFIG) {
+ qtLog("Could not find host pkg-config")
+ return(false)
+ }
+ qtLog("Found host pkg-config: $$PKG_CONFIG")
+ $${1}.path = $$PKG_CONFIG
+ export($${1}.path)
+ $${1}.cache += path
+ export($${1}.cache)
+ return(true)
+}
+
defineTest(qtConfTest_isSanitizerSupported) {
sanitizer_combo_supported = true