From 06ccc547f16dae7b623fd5c0aba89e52cdccb068 Mon Sep 17 00:00:00 2001 From: Michael Nottebrock Date: Thu, 13 Mar 2008 17:57:19 +0000 Subject: Update to Qt 4.3.4 --- devel/qt4/files/configure | 222 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 173 insertions(+), 49 deletions(-) (limited to 'devel/qt4/files/configure') diff --git a/devel/qt4/files/configure b/devel/qt4/files/configure index b59d302adc5f..97ff95c9f0df 100644 --- a/devel/qt4/files/configure +++ b/devel/qt4/files/configure @@ -2,7 +2,7 @@ # # Configures to build the Qt library # -# Copyright (C) 1999-2007 Trolltech ASA. All rights reserved. +# Copyright (C) 1999-2008 Trolltech ASA. All rights reserved. # # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE # WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. @@ -40,7 +40,7 @@ QT_CONFIG= SUPPORTED= QMAKE_VARS_FILE=.qmake.vars -exec 5> "$QMAKE_VARS_FILE" +:> "$QMAKE_VARS_FILE" #------------------------------------------------------------------------------- # utility functions @@ -66,7 +66,7 @@ QMakeVar() ;; esac - echo >&5 "$2" "$eq" "$3" + echo "$2" "$eq" "$3" >> "$QMAKE_VARS_FILE" } # relies on $QMAKESPEC being set correctly. parses include statements in @@ -162,7 +162,7 @@ if [ -f "$relpath"/LICENSE.Qtopia ]; then Licensee="Qtopia" Edition="Qtopia" QT_EDITION="QT_EDITION_DESKTOP" -elif [ -f "$relpath"/LICENSE.QPL -o -f "$relpath"/LICENSE.GPL ]; then +elif [ -f "$relpath"/LICENSE.QPL -o -f "$relpath"/LICENSE.GPL2 -o -f "$relpath"/LICENSE.GPL3 ]; then # Open Source edition - may only be used under the terms of the QPL or GPL. [ "$PLATFORM_MAC" = "maybe" ] && PLATFORM_MAC=yes [ "$PLATFORM_QWS" = "maybe" ] && PLATFORM_QWS=yes @@ -191,7 +191,7 @@ elif [ -f "$relpath"/LICENSE.SNAPSHOT.COMMERCIAL ]; then Licensee="Snapshot" Edition="Snapshot" QT_EDITION="QT_EDITION_DESKTOP" -elif [ -f "$relpath"/LICENSE.SNAPSHOT.OPENSOURCE ]; then +elif [ -f "$relpath"/LICENSE.SNAPSHOT.OPENSOURCE.GPL2 -o -f "$relpath"/LICENSE.SNAPSHOT.OPENSOURCE.GPL3 ]; then # snapshot - opensource [ "$PLATFORM_MAC" = "maybe" ] && PLATFORM_MAC=yes [ "$PLATFORM_QWS" = "maybe" ] && PLATFORM_QWS=yes @@ -420,7 +420,7 @@ else ;; esac if [ '!' -f "$outpath/LICENSE" ]; then - echo "The LICENSE, LICENSE.QPL, or LICENSE.GPL file shipped with" + echo "The LICENSE, LICENSE.QPL, or LICENSE.GPL2 file shipped with" echo "this software has disappeared." echo echo "Sorry, you are not licensed to use this software." @@ -609,6 +609,7 @@ QT_INSTALL_TRANSLATIONS= QT_INSTALL_SETTINGS= QT_INSTALL_EXAMPLES= QT_INSTALL_DEMOS= +QT_HOST_PREFIX= #flags for SQL drivers QT_CFLAGS_PSQL= @@ -763,6 +764,16 @@ while [ "$#" -gt 0 ]; do shift; VAL=$1 fi + ;; + -hostprefix) + VAR=`echo $1 | sed "s,^-\(.*\),\1,"` + # this option may or may not be followed by an argument + if [ -z "$2" ] || echo "$2" | grep '^-' >/dev/null 2>&1; then + VAL=$outpath + else + shift; + VAL=$1 + fi ;; -iwmmxt) CFG_IWMMXT="yes" @@ -874,6 +885,9 @@ while [ "$#" -gt 0 ]; do prefix) QT_INSTALL_PREFIX="$VAL" ;; + hostprefix) + QT_HOST_PREFIX="$VAL" + ;; docdir) QT_INSTALL_DOCS="$VAL" ;; @@ -1911,14 +1925,25 @@ if [ -z "$PLATFORM" ]; then " ;; HP-UX:*) - #PLATFORM=hpux-g++ - PLATFORM=hpux-acc - #PLATFORM=hpux-acc-64 - #PLATFORM=hpux-cc - #PLATFORM=hpux-acc-o64 - PLATFORM_NOTES=" - - Also available for HP-UX: hpux-g++ hpux-acc-64 hpux-acc-o64 - " + case "$UNAME_MACHINE" in + ia64) + #PLATFORM=hpuxi-acc-32 + PLATFORM=hpuxi-acc-64 + PLATFORM_NOTES=" + - Also available for HP-UXi: hpuxi-acc-32 + " + ;; + *) + #PLATFORM=hpux-g++ + PLATFORM=hpux-acc + #PLATFORM=hpux-acc-64 + #PLATFORM=hpux-cc + #PLATFORM=hpux-acc-o64 + PLATFORM_NOTES=" + - Also available for HP-UX: hpux-g++ hpux-acc-64 hpux-acc-o64 + " + ;; + esac ;; OSF1:*) #PLATFORM=tru64-g++ @@ -2002,6 +2027,13 @@ if [ -z "$PLATFORM" ]; then esac fi +if [ "$PLATFORM_QWS" = "yes" ]; then + CFG_SM=no + PLATFORMS=`find "$relpath/mkspecs/qws" | sed "s,$relpath/mkspecs/qws/,,"` +else + PLATFORMS=`find "$relpath/mkspecs/" -type f | grep -v qws | sed "s,$relpath/mkspecs/qws/,,"` +fi + [ -z "$XPLATFORM" ] && XPLATFORM="$PLATFORM" if [ -d "$PLATFORM" ]; then QMAKESPEC="$PLATFORM" @@ -2248,7 +2280,7 @@ else fi TEST_COMPILER="$CC" -[ -z "$TEST_COMPILE" ] && TEST_COMPILER=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_CXX[^_A-Z0-9]" | sed "s,.* *= *\(.*\)$,\1,"` +[ -z "$TEST_COMPILER" ] && TEST_COMPILER=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_CXX[^_A-Z0-9]" | sed "s,.* *= *\(.*\)$,\1,"` # auto-detect precompiled header support if [ "$CFG_PRECOMPILE" = "auto" ]; then @@ -2586,6 +2618,16 @@ Installation options: -prefix ...... This will install everything relative to (default $QT_INSTALL_PREFIX) +EOF +if [ "$PLATFORM_QWS" = "yes" ]; then +cat < "$outpath/src/corelib/global/qconfig.cpp.new" <> "$outpath/src/corelib/global/qconfig.cpp.new" <> "$outpath/src/corelib/global/qconfig.cpp.new" <> "$outpath/src/corelib/global/qconfig.cpp.new" <> "$outpath/src/corelib/global/qconfig.cpp.new" <>"$mkfile" fi if [ "$CFG_RELEASE_QMAKE" = "yes" ]; then setBootstrapVariable QMAKE_CFLAGS_RELEASE @@ -3714,7 +3830,7 @@ for _SQLDR in $CFG_SQL_AVAILABLE; do QT_CFLAGS_MYSQL=`$CFG_MYSQL_CONFIG --include 2>/dev/null` QT_LFLAGS_MYSQL_R=`$CFG_MYSQL_CONFIG --libs_r 2>/dev/null` QT_LFLAGS_MYSQL=`$CFG_MYSQL_CONFIG --libs 2>/dev/null` - QT_MYSQL_VERSION=`$CFG_MYSQL_CONFIG --version 2>/dev/null` + QT_MYSQL_VERSION=`$CFG_MYSQL_VERSION --version 2>/dev/null` QT_MYSQL_VERSION_MAJOR=`echo $QT_MYSQL_VERSION | cut -d . -f 1` fi if [ -n "$QT_MYSQL_VERSION" ] && [ "$QT_MYSQL_VERSION_MAJOR" -lt 4 ]; then @@ -4214,14 +4330,21 @@ if [ "$PLATFORM_X11" = "yes" ]; then fi fi fi +fi # X11 + +if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ]; then # auto-detect Glib support + if [ "$PLATFORM_QWS" = "yes" -a "$CFG_GLIB" = "auto" ]; then + CFG_GLIB="no" + fi + if [ "$CFG_GLIB" != "no" ]; then if [ "$QT_CROSS_COMPILE" = "no" ] && "$WHICH" pkg-config >/dev/null 2>&1; then QT_CFLAGS_GLIB=`pkg-config --cflags glib-2.0 gthread-2.0` QT_LIBS_GLIB=`pkg-config --libs glib-2.0 gthread-2.0` fi - if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/glib "Glib" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_GLIB $QT_LIBS_GLIB $X11TESTS_FLAGS; then + if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/glib "Glib" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_GLIB $QT_LIBS_GLIB $X11TESTS_FLAGS; then CFG_GLIB=yes QMakeVar set QT_CFLAGS_GLIB "$QT_CFLAGS_GLIB" QMakeVar set QT_LIBS_GLIB "$QT_LIBS_GLIB" @@ -4237,7 +4360,7 @@ if [ "$PLATFORM_X11" = "yes" ]; then fi fi fi -fi # X11 +fi # X11/QWS # QWS if [ "$PLATFORM_QWS" = "yes" ]; then @@ -4806,7 +4929,8 @@ fi if [ '!' -z "$I_FLAGS" ]; then # add the user define include paths - QMakeVar add INCPATH `echo $I_FLAGS | sed s,-I,,g` + QMakeVar add QMAKE_CFLAGS "$I_FLAGS" + QMakeVar add QMAKE_CXXFLAGS "$I_FLAGS" fi # turn off exceptions for the compilers that support it @@ -4850,15 +4974,15 @@ case "$COMPILER" in g++*) # GNU C++ QMAKE_CONF_COMPILER=`getQMakeConf | grep "^QMAKE_CXX[^_A-Z0-9]" | sed "s,.* *= *\(.*\)$,\1,"` - COMPILER_VERSION=`${QMAKE_CONF_COMPILER} --version 2>/dev/null` + COMPILER_VERSION=`${QMAKE_CONF_COMPILER} --version 2>/dev/null | sed 's,^[^0-9]*,,g'` case "$COMPILER_VERSION" in - *2.95.*) + 2.95.*) COMPILER_VERSION="2.95.*" ;; - *3.*) + 3.*) COMPILER_VERSION="3.*" ;; - *4.*) + 4.*) COMPILER_VERSION="4" ;; *) -- cgit v1.2.3