summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-16 12:14:28 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-21 13:21:21 (GMT)
commit6c5cbdbee91ea200321480dcee243ae061a3a902 (patch)
tree2fe2762a199b16c8331da89e563e5dcea26eced3 /configure
parent1ba8d525d3c898c198821e493c7fa6c4eb4689a3 (diff)
downloadQt-6c5cbdbee91ea200321480dcee243ae061a3a902.zip
Qt-6c5cbdbee91ea200321480dcee243ae061a3a902.tar.gz
Qt-6c5cbdbee91ea200321480dcee243ae061a3a902.tar.bz2
Add code to the Unix configure script to get the xlC version number
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure30
1 files changed, 28 insertions, 2 deletions
diff --git a/configure b/configure
index 13bdf7f..87fe281 100755
--- a/configure
+++ b/configure
@@ -6114,8 +6114,34 @@ case "$XPLATFORM" in
canBuildWebKit="no"
;;
aix-xlc*)
- canBuildWebKit="no"
- canBuildQtXmlPatterns="no"
+ # Get the xlC version
+ cat > xlcver.c <<EOF
+#include <stdio.h>
+int main()
+{
+ printf("%d.%d\n", __xlC__ >> 8, __xlC__ & 0xFF);
+ return 0;
+}
+EOF
+ xlcver=
+ if ${QMAKE_CONF_COMPILER} -o xlcver xlcver.c >/dev/null 2>/dev/null; then
+ xlcver=`./xlcver 2>/dev/null`
+ rm -f ./xlcver
+ fi
+ if [ "$OPT_VERBOSE" = "yes" ]; then
+ if [ -n "$xlcver" ]; then
+ echo Found IBM xlC version: $xlcver.
+ else
+ echo Could not determine IBM xlC version, assuming oldest supported.
+ fi
+ fi
+
+ case "$xlcver" in
+ *)
+ canBuildWebKit="no"
+ canBuildQtXmlPatterns="no"
+ ;;
+ esac
;;
irix-cc*)
canBuildWebKit="no"