summaryrefslogtreecommitdiffstats
path: root/tools/configure
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure')
-rw-r--r--tools/configure/configureapp.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index f9d3377540..b4162b3f0f 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -2353,6 +2353,11 @@ void Configure::autoDetection()
if (i.value() == "auto")
i.value() = defaultTo(i.key());
}
+
+ if (tryCompileProject("unix/ptrsize"))
+ dictionary["QT_POINTER_SIZE"] = "8";
+ else
+ dictionary["QT_POINTER_SIZE"] = "4";
}
bool Configure::verifyConfiguration()
@@ -3411,6 +3416,8 @@ void Configure::generateConfigfiles()
if (dictionary["REDUCE_RELOCATIONS"] == "yes") qconfigList += "QT_REDUCE_RELOCATIONS";
if (dictionary["QT_GETIFADDRS"] == "no") qconfigList += "QT_NO_GETIFADDRS";
+ qconfigList += QString("QT_POINTER_SIZE=%1").arg(dictionary["QT_POINTER_SIZE"]);
+
qconfigList.sort();
for (int i = 0; i < qconfigList.count(); ++i)
tmpStream << addDefine(qconfigList.at(i));