summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-01-06 15:49:21 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2010-01-06 15:49:21 (GMT)
commit2399046fbc9dc2c9f7250a43a83ce6f800b59922 (patch)
treef256e007fd022fc790071336b418adbe5ae6a58e /configure
parent6f173f9686bb3be19b26215342699705765937d3 (diff)
downloadQt-2399046fbc9dc2c9f7250a43a83ce6f800b59922.zip
Qt-2399046fbc9dc2c9f7250a43a83ce6f800b59922.tar.gz
Qt-2399046fbc9dc2c9f7250a43a83ce6f800b59922.tar.bz2
Fix build on other platforms than Mac
$CFG_MAC_COCOA has a default value of yes now so be sure we the platform is Mac before doing anything with it. Reviewed-by:thiago
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 0030c6c..ec23103 100755
--- a/configure
+++ b/configure
@@ -6911,9 +6911,9 @@ if [ "$CFG_LARGEFILE" = "yes" ]; then
fi
# if both carbon and cocoa are specified, enable the autodetection code.
-if [ "$CFG_MAC_COCOA" = "yes" -a "$CFG_MAC_CARBON" = "yes" ]; then
+if [ "$PLATFORM_MAC" = "yes" -a "$CFG_MAC_COCOA" = "yes" -a "$CFG_MAC_CARBON" = "yes" ]; then
echo "#define AUTODETECT_COCOA 1" >>"$outpath/src/corelib/global/qconfig.h.new"
-elif [ "$CFG_MAC_COCOA" = "yes" ]; then
+elif [ "$PLATFORM_MAC" = "yes" -a "$CFG_MAC_COCOA" = "yes" ]; then
echo "#define QT_MAC_USE_COCOA 1" >>"$outpath/src/corelib/global/qconfig.h.new"
fi