summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@nokia.com>2009-11-05 12:11:38 (GMT)
committerMorten Johan Sørvig <morten.sorvig@nokia.com>2009-11-05 12:11:38 (GMT)
commit8927e54d9ab5dda2c1f8e0e17988ad37ab0e4b1e (patch)
treecb1e88def98d433d6dd2b99937ff1757546eb3b6 /configure
parentee88b2d8408396188eb2ce52d740c395c6cd4656 (diff)
downloadQt-8927e54d9ab5dda2c1f8e0e17988ad37ab0e4b1e.zip
Qt-8927e54d9ab5dda2c1f8e0e17988ad37ab0e4b1e.tar.gz
Qt-8927e54d9ab5dda2c1f8e0e17988ad37ab0e4b1e.tar.bz2
Make configure warn on incompatible gcc / SDK.
Print a warning if configure was called with the 10.4u SDK option on Snow Leopard with the default mkspec. The 10.4u SDK does not support gcc 4.2.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 611f4bf..76e6802 100755
--- a/configure
+++ b/configure
@@ -3022,6 +3022,18 @@ else
CFG_FRAMEWORK=no
fi
+# Print a warning if configure was called with the 10.4u SDK option on Snow Leopard
+# with the default mkspec. The 10.4u SDK does not support gcc 4.2.
+if [ "$PLATFORM_MAC" = "yes" ] && [ '!' -z "$CFG_SDK" ]; then
+ # get the darwin version. 10.0.0 and up means snow leopard.
+ VERSION=`uname -r | tr '.' ' ' | awk '{print $1}'`
+ if [ "$VERSION" -gt 9 ] && [ "$CFG_SDK" == "/Developer/SDKs/MacOSX10.4u.sdk/" ] && [ "$PLATFORM" == "macx-g++" ]; then
+ echo
+ echo "WARNING: The 10.4u SDK does not support gcc 4.2. Configure with -platform macx-g++40. "
+ echo
+ fi
+fi
+
# x11 tests are done after qmake is built