Changeset 846 for trunk/configure


Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/configure

    r769 r846  
    22#############################################################################
    33##
    4 ## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4## Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    55## All rights reserved.
    66## Contact: Nokia Corporation (qt-info@nokia.com)
     
    481481            LICENSE_EXTENSION="-ALLOS"
    482482            ;;
    483         8M,* | KM,* | S9,* | SC,* | SU,* | SW,* | X9,* | XC,* | XU,* | XW,*)
     483        8M,* | KM,* | S9,* | SC,* | SM,* | SU,* | SW,* | X9,* | XC,* | XU,* | XW,*)
    484484            # Qt for Embedded Linux
    485485            LICENSE_EXTENSION="-EMBEDDED"
     
    631631CFG_PROFILE=no
    632632CFG_EXCEPTIONS=unspecified
     633CFG_GUI=auto # (yes|no|auto)
    633634CFG_SCRIPT=auto # (yes|no|auto)
    634635CFG_SCRIPTTOOLS=auto # (yes|no|auto)
     
    643644CFG_XSHAPE=auto
    644645CFG_XSYNC=auto
     646CFG_XVIDEO=auto
    645647CFG_XINERAMA=runtime
    646648CFG_XFIXES=runtime
    647649CFG_ZLIB=auto
     650CFG_SYMBIAN_DEFFILES=auto
     651CFG_S60=auto
    648652CFG_SQLITE=qt
    649653CFG_GIF=auto
     
    678682CFG_PHONON=auto
    679683CFG_PHONON_BACKEND=yes
    680 CFG_MULTIMEDIA=yes
    681 CFG_AUDIO_BACKEND=yes
    682 CFG_SVG=yes
     684CFG_MULTIMEDIA=auto
     685CFG_AUDIO_BACKEND=auto
     686CFG_SVG=auto
    683687CFG_DECLARATIVE=auto
    684 CFG_WEBKIT=auto # (yes|no|auto)
     688CFG_DECLARATIVE_DEBUG=yes
     689CFG_WEBKIT=auto # (yes|no|auto|debug)
    685690CFG_JAVASCRIPTCORE_JIT=auto
    686691
     
    724729CFG_GSTREAMER=auto
    725730CFG_QGTKSTYLE=auto
     731CFG_QS60STYLE=auto
    726732CFG_LARGEFILE=auto
    727733CFG_OPENSSL=auto
     
    729735CFG_STL=auto
    730736CFG_PRECOMPILE=auto
    731 CFG_SEPARATE_DEBUG_INFO=auto
     737CFG_SEPARATE_DEBUG_INFO=no
    732738CFG_SEPARATE_DEBUG_INFO_NOCOPY=no
    733739CFG_REDUCE_EXPORTS=auto
     
    736742CFG_SSE=auto
    737743CFG_SSE2=auto
     744CFG_SSE3=auto
     745CFG_SSSE3=auto
     746CFG_SSE4_1=auto
     747CFG_SSE4_2=auto
     748CFG_AVX=auto
    738749CFG_REDUCE_RELOCATIONS=no
    739750CFG_IPV6=auto
     
    762773CFG_MAC_DWARF2=auto
    763774CFG_MAC_XARCH=auto
    764 CFG_MAC_CARBON=yes
    765 CFG_MAC_COCOA=auto
    766 COMMANDLINE_MAC_COCOA=no
     775CFG_MAC_CARBON=no
     776CFG_MAC_COCOA=yes
     777COMMANDLINE_MAC_CARBON=no
    767778CFG_SXE=no
    768779CFG_PREFIX_INSTALL=yes
     
    774785l_FLAGS=
    775786QCONFIG_FLAGS=
    776 XPLATFORM=              # This seems to be the QMAKESPEC, like "linux-g++"
     787XPLATFORM=              # This seems to be the QMAKESPEC, like "linux-g++" or "symbian/linux-gcce"
     788XPLATFORM_MINGW=no      # Whether target platform is MinGW (win32-g++*)
    777789PLATFORM=$QMAKESPEC
    778790QT_CROSS_COMPILE=no
     
    784796CFG_SILENT=no
    785797CFG_GRAPHICS_SYSTEM=default
     798CFG_RUNTIME_SYSTEM=
    786799CFG_ALSA=auto
     800CFG_PULSEAUDIO=auto
     801CFG_COREWLAN=auto
     802CFG_ICD=auto
     803CFG_NOPROCESS=no
    787804
    788805# initalize variables used for installation
     
    793810QT_INSTALL_BINS=
    794811QT_INSTALL_PLUGINS=
     812QT_INSTALL_IMPORTS=
    795813QT_INSTALL_DATA=
    796814QT_INSTALL_TRANSLATIONS=
     
    809827QT_LFLAGS_SQLITE=
    810828QT_LFLAGS_ODBC="-lodbc"
     829QT_LFLAGS_TDS=
    811830
    812831# flags for libdbus-1
     
    821840QT_CFLAGS_GSTREAMER=
    822841QT_LIBS_GSTREAMER=
     842
     843#flag for Symbian fpu settings
     844QT_CFLAGS_FPU=
     845
     846# flags for libconnsettings0 (used for Maemo ICD bearer management plugin)
     847QT_CFLAGS_CONNSETTINGS=
     848QT_LIBS_CONNSETTINGS=
    823849
    824850#-------------------------------------------------------------------------------
     
    918944        VAL=`echo $1 | sed "s,^-\([^-]*\).*,\1,"`
    919945        ;;
     946    #WebKit options
     947    -webkit)
     948        VAR="webkit"
     949        VAL="yes"
     950        ;;
     951    -webkit-debug)
     952        VAR="webkit"
     953        VAL="debug"
     954        ;;
     955    -no-webkit)
     956        VAR="webkit"
     957        VAL="no"
     958        ;;
    920959    #Qt style no options
    921960    -no-*)
     
    924963        ;;
    925964    #Qt style yes options
    926         -incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xsync|-xinput|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-nis|-qdbus|-dbus|-dbus-linked|-glib|-gstreamer|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-qt3support|-debug-and-release|-exceptions|-cocoa|-universal|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-ptmalloc|-xmlpatterns|-phonon|-phonon-backend|-multimedia|-audio-backend|-svg|-declarative|-webkit|-javascript-jit|-script|-scripttools|-rpath|-force-pkg-config)
     965        -incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xsync|-xinput|-egl|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-nis|-qdbus|-dbus|-dbus-linked|-glib|-gstreamer|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-qt3support|-debug-and-release|-exceptions|-cocoa|-carbon|-universal|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-ptmalloc|-xmlpatterns|-phonon|-phonon-backend|-multimedia|-audio-backend|-svg|-declarative|-javascript-jit|-script|-scripttools|-rpath|-force-pkg-config|-s60|-usedeffiles)
    927966        VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
    928967        VAL=yes
     
    940979        VAL=$1
    941980        ;;
    942     -prefix|-docdir|-headerdir|-plugindir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-demosdir|-depths|-make|-nomake|-platform|-xplatform|-buildkey|-sdk|-arch|-host-arch|-mysql_config)
     981    -prefix|-docdir|-headerdir|-plugindir|-importdir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-demosdir|-depths|-make|-nomake|-platform|-xplatform|-buildkey|-sdk|-arch|-host-arch|-mysql_config)
    943982        VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
    944983        shift
     
    10151054    -graphicssystem)
    10161055        VAR="graphicssystem"
     1056        shift
     1057        VAL=$1
     1058        ;;
     1059    -runtimegraphicssystem)
     1060        VAR="runtimegraphicssystem"
    10171061        shift
    10181062        VAL=$1
     
    10301074        else
    10311075            VAL=`echo $1 | sed 's,-D,,'`
     1076        fi
     1077        ;;
     1078    -fpu)
     1079        VAR="fpu"
     1080        # this option may or may not be followed by an argument
     1081        if [ -z "$2" ] || echo "$2" | grep '^-' >/dev/null 2>&1; then
     1082            VAL=no
     1083        else
     1084            shift
     1085            VAL=$1
    10321086        fi
    10331087        ;;
     
    11411195        QT_INSTALL_PLUGINS="$VAL"
    11421196        ;;
     1197    importdir)
     1198        QT_INSTALL_IMPORTS="$VAL"
     1199        ;;
    11431200    datadir)
    11441201        QT_INSTALL_DATA="$VAL"
     
    12281285        if  [ "$VAL" = "auto" ] || [ "$VAL" = "desktop" ] ||
    12291286            [ "$VAL" = "yes" ] || [ "$VAL" = "no" ] ||
    1230             [ "$VAL" = "es1cl" ] || [ "$VAL" = "es1" ] || [ "$VAL" = "es2" ]; then
     1287            [ "$VAL" = "es1" ] || [ "$VAL" = "es2" ]; then
    12311288            CFG_OPENGL="$VAL"
     1289            if  [ "$VAL" = "es1" ] || [ "$VAL" = "es2" ]; then
     1290                CFG_EGL="yes"
     1291            fi
    12321292        else
    12331293            UNKNOWN_OPT=yes
     
    12371297        if [ "$VAL" = "auto" ] || [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
    12381298            CFG_OPENVG="$VAL"
     1299            CFG_EGL="auto"
    12391300        else
    12401301            UNKNOWN_OPT=yes
     
    12551316            elif [ "$VAL" = "raster" ]; then
    12561317                CFG_GRAPHICS_SYSTEM="raster"
     1318            elif [ "$VAL" = "runtime" ]; then
     1319                CFG_GRAPHICS_SYSTEM="runtime"
    12571320            else
    12581321                UNKNOWN_OPT=yes
    12591322            fi
     1323        fi
     1324        ;;
     1325    runtimegraphicssystem)
     1326        if  [ "$VAL" != "runtime" ]; then
     1327            CFG_RUNTIME_SYSTEM="$VAL"
    12601328        fi
    12611329        ;;
     
    13071375        ;;
    13081376    arch)
    1309         if [ "$PLATFORM_MAC" = "yes" ]; then
     1377        # if this is a Mac then "windows" probably means
     1378        # we are cross-compiling for MinGW
     1379        if [ "$PLATFORM_MAC" = "yes" ] && [ "$VAL" != "windows" ]; then
    13101380            CFG_MAC_ARCHS="$CFG_MAC_ARCHS $VAL"
    13111381        else
     
    13241394        ;;
    13251395    cocoa)
     1396#       do nothing - Cocoa is the default.
     1397        ;;
     1398    carbon)
    13261399        if [ "$PLATFORM_MAC" = "yes" ] && [ "$VAL" = "yes" ]; then
    1327             CFG_MAC_COCOA="$VAL"
    1328             COMMANDLINE_MAC_COCOA="$VAL"
    1329         else
    1330             UNKNOWN_OPT=yes
    1331         fi
    1332         ;;
     1400            CFG_MAC_CARBON="$VAL"
     1401            COMMANDLINE_MAC_CARBON="$VAL"
     1402        else
     1403            UNKNOWN_OPT=yes
     1404        fi
     1405        ;;
     1406
    13331407    framework)
    13341408        if [ "$PLATFORM_MAC" = "yes" ]; then
     
    13891463            PLATFORM=solaris-cc-64
    13901464            ;;
    1391         solaris-64)
    1392             PLATFORM=solaris-cc-64
    1393             ;;
    13941465        openunix-cc)
    13951466            PLATFORM=unixware-cc
     
    14211492    xplatform)
    14221493        XPLATFORM="$VAL"
     1494        case `basename "$XPLATFORM"` in win32-g++*) XPLATFORM_MINGW=yes;; esac
    14231495        ;;
    14241496    debug-and-release)
     
    14821554        ;;
    14831555    feature-*)
    1484         if [ "$PLATFORM_QWS" = "yes" ]; then
    14851556            FEATURE=`echo $VAR | sed "s,^[^-]*-\([^-]*\),\1," | tr 'abcdefghijklmnopqrstuvwxyz-' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
    14861557            if [ "$VAL" = "no" ]; then
     
    14911562                UNKNOWN_OPT=yes
    14921563            fi
    1493         else
    1494             UNKNOWN_OPT=yes
    1495         fi
    14961564        ;;
    14971565    shared)
     
    15031571        ;;
    15041572    gif)
    1505         [ "$VAL" = "qt" ] && VAL=yes
    1506         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
     1573        [ "$VAL" = "qt" ] && VAL=auto
     1574        if [ "$VAL" = "auto" ] || [ "$VAL" = "no" ]; then
    15071575            CFG_GIF="$VAL"
    15081576        else
     
    15321600        fi
    15331601        ;;
     1602    xvideo)
     1603        if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
     1604            CFG_XVIDEO="$VAL"
     1605        else
     1606            UNKNOWN_OPT=yes
     1607        fi
     1608        ;;
    15341609    xsync)
    15351610        if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
     
    15421617        if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ] || [ "$VAL" = "runtime" ]; then
    15431618            CFG_XINPUT="$VAL"
     1619        else
     1620            UNKNOWN_OPT=yes
     1621        fi
     1622        ;;
     1623    egl)
     1624        if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
     1625            CFG_EGL="$VAL"
    15441626        else
    15451627            UNKNOWN_OPT=yes
     
    16051687        fi
    16061688        ;;
     1689    sse3)
     1690        if [ "$VAL" = "no" ]; then
     1691            CFG_SSE3="$VAL"
     1692        else
     1693            UNKNOWN_OPT=yes
     1694        fi
     1695        ;;
     1696    ssse3)
     1697        if [ "$VAL" = "no" ]; then
     1698            CFG_SSSE3="$VAL"
     1699        else
     1700            UNKNOWN_OPT=yes
     1701        fi
     1702        ;;
     1703    sse4.1)
     1704        if [ "$VAL" = "no" ]; then
     1705            CFG_SSE4_1="$VAL"
     1706        else
     1707            UNKNOWN_OPT=yes
     1708        fi
     1709        ;;
     1710    sse4.2)
     1711        if [ "$VAL" = "no" ]; then
     1712            CFG_SSE4_2="$VAL"
     1713        else
     1714            UNKNOWN_OPT=yes
     1715        fi
     1716        ;;
     1717    avx)
     1718        if [ "$VAL" = "no" ]; then
     1719            CFG_AVX="$VAL"
     1720        else
     1721            UNKNOWN_OPT=yes
     1722        fi
     1723        ;;
    16071724    iwmmxt)
    16081725        CFG_IWMMXT="yes"
     
    16401757        #[ "$VAL" = "no" ] && CFG_LIBPNG=no
    16411758        ;;
     1759    s60)
     1760        if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
     1761            CFG_S60="$VAL"
     1762        else
     1763            UNKNOWN_OPT=yes
     1764        fi
     1765        ;;
     1766    usedeffiles)
     1767        if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
     1768            CFG_SYMBIAN_DEFFILES="$VAL"
     1769        else
     1770            UNKNOWN_OPT=yes
     1771        fi
     1772        ;;
    16421773    sqlite)
    16431774        if [ "$VAL" = "system" ]; then
     
    17681899        else
    17691900            UNKNOWN_OPT=yes
     1901        fi
     1902        ;;
     1903    style-s60)
     1904        if [ "$VAL" = "qt" ] || [ "$VAL" = "no" ]; then
     1905            CFG_QS60STYLE="$VAL"
     1906        else
     1907            UNKNOWN_OPT=yes
     1908        fi
     1909        ;;
     1910    gui)
     1911        if [ "$VAL" = "yes" ] || [ "$VAL" = "auto" ]; then
     1912            CFG_GUI="yes"
     1913        else
     1914            if [ "$VAL" = "no" ]; then
     1915                CFG_GUI="no"
     1916            else
     1917                UNKNOWN_OPT=yes
     1918            fi
    17701919        fi
    17711920        ;;
     
    18772026        fi
    18782027        ;;
    1879     webkit)
    1880         if [ "$VAL" = "yes" ] || [ "$VAL" = "auto" ]; then
    1881             CFG_WEBKIT="yes"
     2028    declarative-debug)
     2029        if [ "$VAL" = "yes" ]; then
     2030            CFG_DECLARATIVE_DEBUG="yes"
    18822031        else
    18832032            if [ "$VAL" = "no" ]; then
    1884                 CFG_WEBKIT="no"
     2033                CFG_DECLARATIVE_DEBUG="no"
    18852034            else
    18862035                UNKNOWN_OPT=yes
    18872036            fi
    18882037        fi
     2038        ;;
     2039    webkit)
     2040        [ "$VAL" = "auto" ] && VAL="yes"
     2041        CFG_WEBKIT="$VAL"
    18892042        ;;
    18902043    javascript-jit)
     
    19782131                [ "$VAR" = "decoration" ] && CFG_DECORATION_ON=`echo "${CFG_DECORATION_ON} " | sed "s,${VAL} ,,g"` && CFG_DECORATION_PLUGIN="$CFG_DECORATION_PLUGIN ${VAL}"
    19792132                [ "$VAR" = "kbd" ] && QMakeVar del "${VAR}s" "$VAL"
    1980                 [ "$VAR" = "kbd" ] && CFG_KBD_ON=`echo "${CFG_MOUSE_ON} " | sed "s,${VAL} ,,g"` && CFG_KBD_PLUGIN="$CFG_KBD_PLUGIN ${VAL}"
     2133                [ "$VAR" = "kbd" ] && CFG_KBD_ON=`echo "${CFG_KBD_ON} " | sed "s,${VAL} ,,g"` && CFG_KBD_PLUGIN="$CFG_KBD_PLUGIN ${VAL}"
    19812134                [ "$VAR" = "mouse" ] && QMakeVar del "${VAR}s" "$VAL"
    19822135                [ "$VAR" = "mouse" ] && CFG_MOUSE_ON=`echo "${CFG_MOUSE_ON} " | sed "s,${VAL} ,,g"` && CFG_MOUSE_PLUGIN="$CFG_MOUSE_PLUGIN ${VAL}"
     
    20982251        fi
    20992252        ;;
     2253    dont-process)
     2254        CFG_NOPROCESS=yes
     2255        ;;
     2256    process)
     2257        CFG_NOPROCESS=no
     2258        ;;
    21002259    audio-backend)
    21012260        if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
     
    21052264        fi
    21062265        ;;
     2266    fpu)
     2267       if [ "$VAL" != "no" ]; then
     2268          QT_CFLAGS_FPU=$VAL
     2269       fi
     2270       ;;
    21072271    *)
    21082272        UNKNOWN_OPT=yes
     
    21182282if [ "$CFG_QCONFIG" != "full" ] && [ "$CFG_QT3SUPPORT" = "yes" ]; then
    21192283    echo "Warning: '-qconfig $CFG_QCONFIG' will disable the qt3support library."
     2284    CFG_QT3SUPPORT="no"
     2285fi
     2286if [ "$CFG_GUI" = "no" ]; then
     2287    echo "Warning: -no-gui will disable the qt3support library."
    21202288    CFG_QT3SUPPORT="no"
    21212289fi
     
    21322300*)
    21332301    # not known to be sufficient for anything
    2134     if [ '!' -f "$relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h" ]; then
     2302    if [ '!' -f "$relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h" ] && [ '!' -f `"$relpath/config.tests/unix/makeabs" "${CFG_QCONFIG}"` ]; then
    21352303        echo >&2 "Error: configuration file not found:"
    21362304        echo >&2 "  $relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h"
     2305        echo >&2 "  or"
     2306        echo >&2 "  `"$relpath/config.tests/unix/makeabs" "${CFG_QCONFIG}"`"
    21372307        OPT_HELP=yes
    21382308    fi
     
    21462316unixtests="$relpath/config.tests/unix"
    21472317mactests="$relpath/config.tests/mac"
     2318symbiantests="$relpath/config.tests/symbian"
    21482319WHICH="$unixtests/which.test"
    21492320
     
    21912362    echo
    21922363    echo "WARNING: -debug-and-release is not supported anymore on Qt/X11 and Qt for Embedded Linux"
    2193     echo "By default, Qt is built in release mode with separate debug information, so"
     2364    echo "Qt can be built in release mode with separate debug information, so"
    21942365    echo "-debug-and-release is not necessary anymore"
    21952366    echo
     
    21982369# detect build style
    21992370if [ "$CFG_DEBUG" = "auto" ]; then
    2200     if [ "$PLATFORM_MAC" = "yes" ]; then
     2371    if [ "$PLATFORM_MAC" = "yes" -o "$XPLATFORM_MINGW" = "yes" ]; then
    22012372        CFG_DEBUG_RELEASE=yes
    22022373        CFG_DEBUG=yes
     
    22642435    fi
    22652436
     2437    for i in elf2e32_qtwrapper createpackage patch_capabilities; do
     2438        rm -f "$outpath/bin/$i"
     2439        if [ -x "$relpath/bin/$i" ]; then
     2440            mkdir -p "$outpath/bin"
     2441            echo "#!/bin/sh" >"$outpath/bin/$i"
     2442            echo "QTDIR=\"$relpath\"; export QTDIR" >>"$outpath/bin/$i"
     2443            echo "\"$relpath/bin/$i\" \"\$@\"" >>"$outpath/bin/$i"
     2444            chmod 755 "$outpath/bin/$i"
     2445        fi
     2446    done
     2447
    22662448    # symlink the mkspecs directory
    22672449    mkdir -p "$outpath/mkspecs"
    2268     rm -f "$outpath"/mkspecs/*
     2450    rm -rf "$outpath"/mkspecs/*
    22692451    ln -s "$relpath"/mkspecs/* "$outpath/mkspecs"
    22702452    rm -f "$outpath/mkspecs/default"
     2453
     2454    ShadowMkspecs()
     2455    {
     2456        rm -rf "$outpath/mkspecs/$1"
     2457        find "$relpath/mkspecs/$1" -type d | sed "s,^$relpath,$outpath," | xargs mkdir -p
     2458        find "$relpath/mkspecs/$1" -type f | sed "s,^$relpath/,," | while read f; do ln -s "$relpath/$f" "$outpath/$f"; done
     2459    }
     2460
     2461    # Special case for mkspecs/features directory.
     2462    # To be able to place .prf files into a shadow build directory,
     2463    # we're creating links for files only. The directory structure is reproduced.
     2464    ShadowMkspecs features
     2465
     2466    # The modules dir is special, too.
     2467    ShadowMkspecs modules
    22712468
    22722469    # symlink the doc directory
     
    23872584        ;;
    23882585    CYGWIN*:*)
    2389         CFG_EMBEDDED=x86
     2586        if [ -z "$XPLATFORM" ]; then
     2587                CFG_EMBEDDED=x86
     2588        fi
    23902589        ;;
    23912590    *)
     
    24932692        ;;
    24942693     SunOS:5*)
    2495         #PLATFORM=solaris-g++
    2496         PLATFORM=solaris-cc
    2497         #PLATFORM=solaris-cc64
     2694        if [ "$XPLATFORM_MINGW" = "yes" ]; then
     2695            PLATFORM="solaris-g++"
     2696        else
     2697            #PLATFORM=solaris-g++
     2698            PLATFORM=solaris-cc
     2699            #PLATFORM=solaris-cc64
     2700        fi
    24982701        PLATFORM_NOTES="
    24992702            - Also available for Solaris: solaris-g++ solaris-cc-64
     
    25652768
    25662769[ -z "$XPLATFORM" ] && XPLATFORM="$PLATFORM"
     2770
     2771case `basename "$XPLATFORM"` in win32-g++*) XPLATFORM_MINGW=yes;; esac
     2772
    25672773if [ -d "$PLATFORM" ]; then
    25682774  QMAKESPEC="$PLATFORM"
     
    26722878if [ -z "${CFG_HOST_ARCH}" ]; then
    26732879    case "$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_MACHINE" in
     2880    GNU:*:*)
     2881        CFG_HOST_ARCH=`echo ${UNAME_MACHINE} | sed -e 's,[-/].*$,,'`
     2882        case "$CFG_HOST_ARCH" in
     2883            i?86)
     2884                CFG_HOST_ARCH=i386
     2885                ;;
     2886        esac
     2887        if [ "$OPT_VERBOSE" = "yes" ]; then
     2888            echo "    GNU/Hurd ($CFG_HOST_ARCH)"
     2889        fi
     2890        ;;
    26742891    IRIX*:*:*)
    26752892        CFG_HOST_ARCH=`uname -p`
     
    26882905        i86pc)
    26892906            case "$PLATFORM" in
    2690             *-64)
     2907            *-64*)
    26912908                if [ "$OPT_VERBOSE" = "yes" ]; then
    26922909                    echo "    64-bit AMD 80x86 (x86_64)"
     
    28263043        ;;
    28273044    esac
     3045elif [ "$XPLATFORM_MINGW" = "yes" ]; then
     3046    [ -z "$CFG_ARCH" ] && CFG_ARCH="windows"
     3047elif echo "$XPLATFORM" | grep symbian > /dev/null; then
     3048    CFG_ARCH=symbian
    28283049elif [ "$PLATFORM_MAC" = "yes" ] || [ -z "$CFG_ARCH" ]; then
    28293050    CFG_ARCH=$CFG_HOST_ARCH
     
    29493170
    29503171QMAKE_CONF_COMPILER=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_CXX[^_A-Z0-9]" | sed "s,.* *= *\(.*\)$,\1," | tail -1`
    2951 TEST_COMPILER="$CC"
     3172TEST_COMPILER="$CXX"
     3173
    29523174[ -z "$TEST_COMPILER" ] && TEST_COMPILER=$QMAKE_CONF_COMPILER
    2953 if [ -z "$TEST_COMPILER" ]; then
    2954     echo "ERROR: Cannot set the compiler for the configuration tests"
    2955     exit 1
    2956 fi
     3175if [ "$XPLATFORM" != "symbian-sbsv2" ]; then
     3176    #for Symbian we don't need this checking
     3177    if [ -z "$TEST_COMPILER" ]; then
     3178        echo "ERROR: Cannot set the compiler for the configuration tests"
     3179        exit 1
     3180    fi
     3181fi
     3182
    29573183
    29583184# auto-detect precompiled header support
     
    29983224# auto-detect support for separate debug info in objcopy
    29993225if [ "$CFG_SEPARATE_DEBUG_INFO" != "no" ] && [ "$CFG_SHARED" = "yes" ]; then
    3000     TEST_COMPILER_CFLAGS=`getQMakeConf "$XQMAKESPEC" | sed -n -e 's%QMAKE_CFLAGS[^_].*=%%p' | tr '\n' ' '`
    3001     TEST_COMPILER_CXXFLAGS=`getQMakeConf "$XQMAKESPEC" | sed -n -e 's%QMAKE_CXXFLAGS[^_].*=%%p' | tr '\n' ' '`
     3226    TEST_COMPILER_CFLAGS=`getQMakeConf "$XQMAKESPEC" | sed -n -e 's%QMAKE_CFLAGS[^_=]*[+*]*=%%p' | tr '\n' ' '`
     3227    TEST_COMPILER_CXXFLAGS=`getQMakeConf "$XQMAKESPEC" | sed -n -e 's%QMAKE_CXXFLAGS[^_=]*[+*]*=%%p' | tr '\n' ' '`
    30023228    TEST_OBJCOPY=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_OBJCOPY" | sed "s%.* *= *\(.*\)$%\1%" | tail -1`
    30033229    COMPILER_WITH_FLAGS="$TEST_COMPILER $TEST_COMPILER_CXXFLAGS"
     
    31083334if [ -z "$QT_INSTALL_PREFIX" ]; then
    31093335    if [ "$CFG_DEV" = "yes" ]; then
    3110         QT_INSTALL_PREFIX="$outpath" # In Development, we use sandboxed builds by default
     3336        QT_INSTALL_PREFIX="$outpath" # In Development, we use sandboxed builds by default
    31113337    elif [ "$PLATFORM_QWS" = "yes" ]; then
    31123338        QT_INSTALL_PREFIX="/usr/local/Trolltech/QtEmbedded-${QT_VERSION}"
     
    31143340            QT_INSTALL_PREFIX="${QT_INSTALL_PREFIX}-${CFG_ARCH}"
    31153341        fi
     3342    elif [ -d "$EPOCROOT" ] && echo $XPLATFORM | grep symbian > /dev/null; then
     3343        QT_INSTALL_PREFIX="$EPOCROOT/epoc32/"
     3344        QT_INSTALL_LIBS="$EPOCROOT/epoc32/release/armv5/lib/"
    31163345    else
    31173346        QT_INSTALL_PREFIX="/usr/local/Trolltech/Qt-${QT_VERSION}" # the default install prefix is /usr/local/Trolltech/Qt-$QT_VERSION
     
    31203349QT_INSTALL_PREFIX=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_PREFIX"`
    31213350
    3122 #docs
    3123 if [ -z "$QT_INSTALL_DOCS" ]; then #default
    3124     if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
    3125         if [ "$PLATFORM_MAC" = "yes" ]; then
    3126             QT_INSTALL_DOCS="/Developer/Documentation/Qt"
    3127         fi
    3128     fi
    3129     [ -z "$QT_INSTALL_DOCS" ] && QT_INSTALL_DOCS="$QT_INSTALL_PREFIX/doc" #fallback
    3130 
    3131 fi
    3132 QT_INSTALL_DOCS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DOCS"`
    3133 
    3134 #headers
    3135 if [ -z "$QT_INSTALL_HEADERS" ]; then #default
    3136     if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
    3137         if [ "$PLATFORM_MAC" = "yes" ]; then
    3138             if [ "$CFG_FRAMEWORK" = "yes" ]; then
    3139                 QT_INSTALL_HEADERS=
     3351if echo $XPLATFORM | grep symbian > /dev/null; then
     3352    [ -z "$QT_HOST_PREFIX" ] && QT_HOST_PREFIX="$QT_INSTALL_PREFIX"
     3353    [ -z "$QT_INSTALL_DOCS" ] && QT_INSTALL_DOCS=
     3354    [ -z "$QT_INSTALL_HEADERS" ] && QT_INSTALL_HEADERS=
     3355    [ -z "$QT_INSTALL_LIBS" ] && QT_INSTALL_LIBS=
     3356    [ -z "$QT_INSTALL_BINS" ] && QT_INSTALL_BINS=
     3357    [ -z "$QT_INSTALL_PLUGINS" ] && QT_INSTALL_PLUGINS="\\\\resource\\\\qt$QT_LIBINFIX\\\\plugins"
     3358    [ -z "$QT_INSTALL_IMPORTS" ] && QT_INSTALL_IMPORTS="\\\\resource\\\\qt$QT_LIBINFIX\\\\imports"
     3359    [ -z "$QT_INSTALL_DATA" ] && QT_INSTALL_DATA=
     3360    [ -z "$QT_INSTALL_TRANSLATIONS" ] && QT_INSTALL_TRANSLATIONS="\\\\resource\\\\qt$QT_LIBINFIX\\\\translations"
     3361    [ -z "$QT_INSTALL_SETTINGS" ] && QT_INSTALL_SETTINGS=
     3362    [ -z "$QT_INSTALL_EXAMPLES" ] && QT_INSTALL_EXAMPLES=
     3363    [ -z "$QT_INSTALL_DEMOS" ] && QT_INSTALL_DEMOS=
     3364else
     3365    #docs
     3366    if [ -z "$QT_INSTALL_DOCS" ]; then #default
     3367        if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
     3368            if [ "$PLATFORM_MAC" = "yes" ]; then
     3369                QT_INSTALL_DOCS="/Developer/Documentation/Qt"
    31403370            fi
    31413371        fi
    3142     fi
    3143     [ -z "$QT_INSTALL_HEADERS" ] && QT_INSTALL_HEADERS="$QT_INSTALL_PREFIX/include"
    3144 
    3145 fi
    3146 QT_INSTALL_HEADERS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_HEADERS"`
    3147 
    3148 #libs
    3149 if [ -z "$QT_INSTALL_LIBS" ]; then #default
    3150     if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
    3151         if [ "$PLATFORM_MAC" = "yes" ]; then
    3152             if [ "$CFG_FRAMEWORK" = "yes" ]; then
    3153                 QT_INSTALL_LIBS="/Libraries/Frameworks"
     3372        [ -z "$QT_INSTALL_DOCS" ] && QT_INSTALL_DOCS="$QT_INSTALL_PREFIX/doc" #fallback
     3373
     3374    fi
     3375    QT_INSTALL_DOCS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DOCS"`
     3376
     3377    #headers
     3378    if [ -z "$QT_INSTALL_HEADERS" ]; then #default
     3379        if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
     3380            if [ "$PLATFORM_MAC" = "yes" ]; then
     3381                if [ "$CFG_FRAMEWORK" = "yes" ]; then
     3382                    QT_INSTALL_HEADERS=
     3383                fi
    31543384            fi
    31553385        fi
    3156     fi
    3157     [ -z "$QT_INSTALL_LIBS" ] && QT_INSTALL_LIBS="$QT_INSTALL_PREFIX/lib" #fallback
    3158 fi
    3159 QT_INSTALL_LIBS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_LIBS"`
    3160 
    3161 #bins
    3162 if [ -z "$QT_INSTALL_BINS" ]; then #default
    3163     if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
    3164         if [ "$PLATFORM_MAC" = "yes" ]; then
    3165             QT_INSTALL_BINS="/Developer/Applications/Qt"
    3166         fi
    3167     fi
    3168     [ -z "$QT_INSTALL_BINS" ] && QT_INSTALL_BINS="$QT_INSTALL_PREFIX/bin" #fallback
    3169 
    3170 fi
    3171 QT_INSTALL_BINS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_BINS"`
    3172 
    3173 #plugins
    3174 if [ -z "$QT_INSTALL_PLUGINS" ]; then #default
    3175     if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
    3176         if [ "$PLATFORM_MAC" = "yes" ]; then
    3177             QT_INSTALL_PLUGINS="/Developer/Applications/Qt/plugins"
    3178         fi
    3179     fi
    3180     [ -z "$QT_INSTALL_PLUGINS" ] && QT_INSTALL_PLUGINS="$QT_INSTALL_PREFIX/plugins" #fallback
    3181 fi
    3182 QT_INSTALL_PLUGINS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_PLUGINS"`
    3183 
    3184 #data
    3185 if [ -z "$QT_INSTALL_DATA" ]; then #default
    3186     QT_INSTALL_DATA="$QT_INSTALL_PREFIX"
    3187 fi
    3188 QT_INSTALL_DATA=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DATA"`
    3189 
    3190 #translations
    3191 if [ -z "$QT_INSTALL_TRANSLATIONS" ]; then #default
    3192     QT_INSTALL_TRANSLATIONS="$QT_INSTALL_PREFIX/translations"
    3193 fi
    3194 QT_INSTALL_TRANSLATIONS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_TRANSLATIONS"`
    3195 
    3196 #settings
    3197 if [ -z "$QT_INSTALL_SETTINGS" ]; then #default
    3198     if [ "$PLATFORM_MAC" = "yes" ]; then
    3199         QT_INSTALL_SETTINGS=/Library/Preferences/Qt
    3200     else
    3201         QT_INSTALL_SETTINGS=/etc/xdg
    3202     fi
    3203 fi
    3204 QT_INSTALL_SETTINGS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_SETTINGS"`
    3205 
    3206 #examples
    3207 if [ -z "$QT_INSTALL_EXAMPLES" ]; then #default
    3208     if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
    3209         if [ "$PLATFORM_MAC" = "yes" ]; then
    3210             QT_INSTALL_EXAMPLES="/Developer/Examples/Qt"
    3211         fi
    3212     fi
    3213     [ -z "$QT_INSTALL_EXAMPLES" ] && QT_INSTALL_EXAMPLES="$QT_INSTALL_PREFIX/examples" #fallback
    3214 fi
    3215 QT_INSTALL_EXAMPLES=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_EXAMPLES"`
    3216 
    3217 #demos
    3218 if [ -z "$QT_INSTALL_DEMOS" ]; then #default
    3219     if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
    3220         if [ "$PLATFORM_MAC" = "yes" ]; then
    3221             QT_INSTALL_DEMOS="/Developer/Examples/Qt/Demos"
    3222         fi
    3223     fi
    3224     [ -z "$QT_INSTALL_DEMOS" ] && QT_INSTALL_DEMOS="$QT_INSTALL_PREFIX/demos"
    3225 fi
    3226 QT_INSTALL_DEMOS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DEMOS"`
     3386        [ -z "$QT_INSTALL_HEADERS" ] && QT_INSTALL_HEADERS="$QT_INSTALL_PREFIX/include"
     3387
     3388    fi
     3389    QT_INSTALL_HEADERS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_HEADERS"`
     3390
     3391    #libs
     3392    if [ -z "$QT_INSTALL_LIBS" ]; then #default
     3393        if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
     3394            if [ "$PLATFORM_MAC" = "yes" ]; then
     3395                if [ "$CFG_FRAMEWORK" = "yes" ]; then
     3396                    QT_INSTALL_LIBS="/Libraries/Frameworks"
     3397                fi
     3398            fi
     3399        fi
     3400        [ -z "$QT_INSTALL_LIBS" ] && QT_INSTALL_LIBS="$QT_INSTALL_PREFIX/lib" #fallback
     3401    fi
     3402    QT_INSTALL_LIBS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_LIBS"`
     3403
     3404    #bins
     3405    if [ -z "$QT_INSTALL_BINS" ]; then #default
     3406        if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
     3407            if [ "$PLATFORM_MAC" = "yes" ]; then
     3408                QT_INSTALL_BINS="/Developer/Applications/Qt"
     3409            fi
     3410        fi
     3411        [ -z "$QT_INSTALL_BINS" ] && QT_INSTALL_BINS="$QT_INSTALL_PREFIX/bin" #fallback
     3412
     3413    fi
     3414    QT_INSTALL_BINS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_BINS"`
     3415
     3416    #plugins
     3417    if [ -z "$QT_INSTALL_PLUGINS" ]; then #default
     3418        if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
     3419            if [ "$PLATFORM_MAC" = "yes" ]; then
     3420                QT_INSTALL_PLUGINS="/Developer/Applications/Qt/plugins"
     3421            fi
     3422        fi
     3423        [ -z "$QT_INSTALL_PLUGINS" ] && QT_INSTALL_PLUGINS="$QT_INSTALL_PREFIX/plugins" #fallback
     3424    fi
     3425    QT_INSTALL_PLUGINS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_PLUGINS"`
     3426
     3427    #imports
     3428    if [ -z "$QT_INSTALL_IMPORTS" ]; then #default
     3429        if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
     3430            if [ "$PLATFORM_MAC" = "yes" ]; then
     3431                QT_INSTALL_IMPORTS="/Developer/Applications/Qt/imports"
     3432            fi
     3433        fi
     3434        [ -z "$QT_INSTALL_IMPORTS" ] && QT_INSTALL_IMPORTS="$QT_INSTALL_PREFIX/imports" #fallback
     3435    fi
     3436    QT_INSTALL_IMPORTS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_IMPORTS"`
     3437
     3438    #data
     3439    if [ -z "$QT_INSTALL_DATA" ]; then #default
     3440        QT_INSTALL_DATA="$QT_INSTALL_PREFIX"
     3441    fi
     3442    QT_INSTALL_DATA=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DATA"`
     3443
     3444    #translations
     3445    if [ -z "$QT_INSTALL_TRANSLATIONS" ]; then #default
     3446        QT_INSTALL_TRANSLATIONS="$QT_INSTALL_PREFIX/translations"
     3447    fi
     3448    QT_INSTALL_TRANSLATIONS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_TRANSLATIONS"`
     3449
     3450    #settings
     3451    if [ -z "$QT_INSTALL_SETTINGS" ]; then #default
     3452        if [ "$PLATFORM_MAC" = "yes" ]; then
     3453            QT_INSTALL_SETTINGS=/Library/Preferences/Qt
     3454        else
     3455            QT_INSTALL_SETTINGS=/etc/xdg
     3456        fi
     3457    fi
     3458    QT_INSTALL_SETTINGS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_SETTINGS"`
     3459
     3460    #examples
     3461    if [ -z "$QT_INSTALL_EXAMPLES" ]; then #default
     3462        if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
     3463            if [ "$PLATFORM_MAC" = "yes" ]; then
     3464                QT_INSTALL_EXAMPLES="/Developer/Examples/Qt"
     3465            fi
     3466        fi
     3467        [ -z "$QT_INSTALL_EXAMPLES" ] && QT_INSTALL_EXAMPLES="$QT_INSTALL_PREFIX/examples" #fallback
     3468    fi
     3469    QT_INSTALL_EXAMPLES=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_EXAMPLES"`
     3470
     3471    #demos
     3472    if [ -z "$QT_INSTALL_DEMOS" ]; then #default
     3473        if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
     3474            if [ "$PLATFORM_MAC" = "yes" ]; then
     3475                QT_INSTALL_DEMOS="/Developer/Examples/Qt/Demos"
     3476            fi
     3477        fi
     3478        [ -z "$QT_INSTALL_DEMOS" ] && QT_INSTALL_DEMOS="$QT_INSTALL_PREFIX/demos"
     3479    fi
     3480    QT_INSTALL_DEMOS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DEMOS"`
     3481fi
    32273482
    32283483#-------------------------------------------------------------------------------
     
    32823537    cat <<EOF
    32833538Usage:  $relconf [-h] [-prefix <dir>] [-prefix-install] [-bindir <dir>] [-libdir <dir>]
    3284         [-docdir <dir>] [-headerdir <dir>] [-plugindir <dir> ] [-datadir <dir>]
     3539        [-docdir <dir>] [-headerdir <dir>] [-plugindir <dir> ] [-importdir <dir>] [-datadir <dir>]
    32853540        [-translationdir <dir>] [-sysconfdir <dir>] [-examplesdir <dir>]
    32863541        [-demosdir <dir>] [-buildkey <key>] [-release] [-debug]
     
    32953550        [-nomake <part>] [-R <string>]  [-l <string>] [-no-rpath]  [-rpath] [-continue]
    32963551        [-verbose] [-v] [-silent] [-no-nis] [-nis] [-no-cups] [-cups] [-no-iconv]
    3297         [-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus] [-dbus-linked]
     3552        [-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus] [-dbus-linked] [-no-gui]
    32983553        [-no-separate-debug-info] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2]
     3554        [-no-sse3] [-no-ssse3] [-no-sse4.1] [-no-sse4.2] [-no-avx] [-no-neon]
    32993555        [-qtnamespace <namespace>] [-qtlibinfix <infix>] [-separate-debug-info] [-armfpa]
    33003556        [-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns] [-xmlpatterns]
    33013557        [-no-multimedia] [-multimedia] [-no-phonon] [-phonon] [-no-phonon-backend] [-phonon-backend]
    3302         [-no-audio-backend] [-audio-backend] [-no-openssl] [-openssl] [-openssl-linked]
    3303         [-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit] [-no-javascript-jit] [-javascript-jit]
    3304         [-no-script] [-script] [-no-scripttools] [-scripttools] [-no-declarative] [-declarative]
    3305 
     3558        [-no-media-backend] [-media-backend] [-no-audio-backend] [-audio-backend]
     3559        [-no-openssl] [-openssl] [-openssl-linked]
     3560        [-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit] [-webkit-debug]
     3561        [-no-javascript-jit] [-javascript-jit]
     3562        [-no-script] [-script] [-no-scripttools] [-scripttools]
     3563        [-no-declarative] [-declarative][-no-declarative-debug] [-declarative-debug]
    33063564        [additional platform specific options (see below)]
    33073565
     
    33443602    -plugindir <dir> ...... Plugins will be installed to <dir>
    33453603                            (default PREFIX/plugins)
     3604    -importdir <dir> ...... Imports for QML will be installed to <dir>
     3605                            (default PREFIX/imports)
    33463606    -datadir <dir> ........ Data used by Qt programs will be installed to <dir>
    33473607                            (default PREFIX)
     
    34533713 +  -webkit ............ Build the WebKit module.
    34543714                         WebKit is built if a decent C++ compiler is used.
     3715    -webkit-debug ...... Build the WebKit module with debug symbols.
    34553716
    34563717    -no-javascript-jit . Do not build the JavaScriptCore JIT compiler.
     
    34633724 +  -scripttools ....... Build the QtScriptTools module.
    34643725
    3465  +  -no-declarative .....Do not build the declarative module.
    3466     -declarative ....... Build the declarative module.
     3726    -no-declarative ..... Do not build the declarative module.
     3727 +  -declarative ....... Build the declarative module.
     3728
     3729    -no-declarative-debug ..... Do not build the declarative debugging support.
     3730 +  -declarative-debug ....... Build the declarative debugging support.
    34673731
    34683732    -platform target ... The operating system and compiler you are building
     
    34773741                           raster - Software rasterizer
    34783742                           opengl - Rendering via OpenGL, Experimental!
     3743                           openvg - Rendering via OpenVG, Experimental!
     3744
    34793745EOF
    34803746fi
     
    34853751    -no-sse ............ Do not compile with use of SSE instructions.
    34863752    -no-sse2 ........... Do not compile with use of SSE2 instructions.
     3753    -no-sse3 ........... Do not compile with use of SSE3 instructions.
     3754    -no-ssse3 .......... Do not compile with use of SSSE3 instructions.
     3755    -no-sse4.1.......... Do not compile with use of SSE4.1 instructions.
     3756    -no-sse4.2.......... Do not compile with use of SSE4.2 instructions.
     3757    -no-avx ............ Do not compile with use of AVX instructions.
     3758    -no-neon ........... Do not compile with use of NEON instructions.
    34873759
    34883760    -qtnamespace <name>  Wraps all Qt library code in 'namespace <name> {...}'.
     
    35013773                         See http://www.gzip.org/zlib
    35023774
    3503     -no-gif ............ Do not compile the plugin for GIF reading support.
    3504  *  -qt-gif ............ Compile the plugin for GIF reading support.
    3505                          See also src/plugins/imageformats/gif/qgifhandler.h
    3506 
    3507     -no-libtiff ........ Do not compile the plugin for TIFF support.
     3775    -no-gif ............ Do not compile GIF reading support.
     3776 *  -qt-gif ............ Compile GIF reading support.
     3777                         See also src/gui/image/qgifhandler_p.h
     3778
     3779    -no-libtiff ........ Do not compile TIFF support.
    35083780    -qt-libtiff ........ Use the libtiff bundled with Qt.
    35093781 +  -system-libtiff .... Use libtiff from the operating system.
    35103782                         See http://www.libtiff.org
    35113783
    3512     -no-libpng ......... Do not compile in PNG support.
     3784    -no-libpng ......... Do not compile PNG support.
    35133785    -qt-libpng ......... Use the libpng bundled with Qt.
    35143786 +  -system-libpng ..... Use libpng from the operating system.
    35153787                         See http://www.libpng.org/pub/png
    35163788
    3517     -no-libmng ......... Do not compile the plugin for MNG support.
     3789    -no-libmng ......... Do not compile MNG support.
    35183790    -qt-libmng ......... Use the libmng bundled with Qt.
    35193791 +  -system-libmng ..... Use libmng from the operating system.
    35203792                         See http://www.libmng.com
    35213793
    3522     -no-libjpeg ........ Do not compile the plugin for JPEG support.
     3794    -no-libjpeg ........ Do not compile JPEG support.
    35233795    -qt-libjpeg ........ Use the libjpeg bundled with Qt.
    35243796 +  -system-libjpeg .... Use libjpeg from the operating system.
     
    35583830 *  -no-optimized-qmake ... Do not build qmake optimized.
    35593831    -optimized-qmake ...... Build qmake optimized.
     3832
     3833    -no-gui ............ Don't build the Qt GUI library
    35603834
    35613835 $NSN  -no-nis ............ Do not compile NIS support.
     
    36233897        SHN=" "
    36243898    fi
     3899    if [ "$CFG_XVIDEO" = "no" ]; then
     3900        XVY=" "
     3901        XVN="*"
     3902    else
     3903        XVY="*"
     3904        XVN=" "
     3905    fi
    36253906    if [ "$CFG_XINERAMA" = "no" ]; then
    36263907        XAY=" "
     
    37033984    -system-nas-sound .. Use NAS libaudio from the operating system.
    37043985                         See http://radscan.com/nas.html
     3986
     3987    -egl ............... Use EGL instead of GLX to manage contexts.
     3988                         When building for desktop OpenGL, this option will
     3989                         make Qt use EGL to manage contexts rather than the
     3990                         GLX, which is the default. Note: For OpenGL ES, EGL
     3991                         is always used.
    37053992
    37063993    -no-opengl ......... Do not support OpenGL.
     
    37083995                         With no parameter, this will auto-detect the "best"
    37093996                         OpenGL API to use. If desktop OpenGL is available, it
    3710                          will be used. Use desktop, es1, es1cl or es2 for <api>
     3997                         will be used. Use desktop, es1, or es2 for <api>
    37113998                         to force the use of the Desktop (OpenGL 1.x or 2.x),
    3712                          OpenGL ES 1.x Common profile, 1.x Common Lite profile
    3713                          or 2.x APIs instead. On X11, the EGL API will be used
    3714                          to manage GL contexts in the case of OpenGL ES
     3999                         OpenGL ES 1.x Common profile, or 2.x APIs instead.
    37154000
    37164001     -no-openvg ........ Do not support OpenVG.
     
    37254010 $SHY  -xshape ............ Compile XShape support.
    37264011                         Requires X11/extensions/shape.h.
     4012
     4013 $XVN  -no-xvideo ......... Do not compile XVideo support.
     4014 $XVY  -xvideo ............ Compile XVideo support.
     4015                         Requires X11/extensions/Xv.h & Xvlib.h.
    37274016
    37284017 $SHN  -no-xsync .......... Do not compile XSync support.
     
    37874076    -fw string ......... Add an explicit framework.
    37884077
    3789     -cocoa ............. Build the Cocoa version of Qt. Note that -no-framework
    3790                          and -static is not supported with -cocoa. Specifying
    3791                          this option creates Qt binaries that requires Mac OS X
    3792                          10.5 or higher.
     4078    -cocoa ............. [Deprecated] Cocoa is now enabled by default.
     4079
     4080    -carbon .............Build the Carbon version of Qt. 64-bit archs
     4081                         are not supported by carbon and will be built
     4082                         with cocoa
    37934083
    37944084 *  -framework ......... Build Qt as a series of frameworks and
     
    38034093    -arch <arch> ....... Build Qt for <arch>
    38044094                         Example values for <arch>: x86 ppc x86_64 ppc64
    3805                          Multiple -arch arguments can be specified, 64-bit archs
    3806                          will be built with the Cocoa framework.
     4095                         Multiple -arch arguments can be specified.
    38074096
    38084097    -sdk <sdk> ......... Build Qt using Apple provided SDK <sdk>. This option requires gcc 4.
     
    38664155    -opengl <api> ....... Enable OpenGL ES support
    38674156                          With no parameter, this will attempt to auto-detect OpenGL ES 1.x
    3868                           or 2.x. Use es1, es1cl or es2 for <api> to override auto-detection.
     4157                          or 2.x. Use es1 or es2 for <api> to override auto-detection.
    38694158
    38704159                          NOTE: A QGLScreen driver for the hardware is required to support
     
    38994188    -iwmmxt ............ Compile using the iWMMXt instruction set
    39004189                         (available on some XScale CPUs).
    3901 
    3902     -no-neon ........... Do not compile with use of NEON instructions.
    39034190EOF
    39044191fi
     
    39204207fi
    39214208
     4209case "$XPLATFORM" in *symbian*)
     4210    cat << EOF
     4211
     4212Qt for Symbian only:
     4213    -no-s60 ............ Do not compile in S60 support.
     4214 +  -s60 ............... Compile with support for the S60 UI Framework.
     4215    -no-style-s60....... Disable s60 style
     4216 +  -qt-style-s60....... Enable s60 style in the Qt Library
     4217
     4218    -no-usedeffiles .... Disable the usage of DEF files.
     4219 *  -usedeffiles ....... Enable the usage of DEF files.
     4220EOF
     4221;;
     4222esac
     4223
    39224224   [ "x$ERROR" = "xyes" ] && exit 1
    39234225   exit 0
     
    39334235elif [ "$PLATFORM_MAC" = "yes" ]; then
    39344236    Platform="Qt for Mac OS X"
    3935 else
     4237elif echo "$XPLATFORM" | grep "symbian" > /dev/null ; then
     4238    Platform="Qt for Symbian"
     4239elif [ "$XPLATFORM_MINGW" = "yes" ]; then
     4240    Platform="Qt for Windows"
     4241elif [ '!' -z "`getQMakeConf \"$XQMAKESPEC\" | grep QMAKE_LIBS_X11 | awk '{print $3;}'`" ]; then
    39364242    PLATFORM_X11=yes
    39374243    Platform="Qt for Linux/X11"
     
    41274433BINARIES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_binspath=$QT_INSTALL_BINS"`
    41284434PLUGINS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_plugpath=$QT_INSTALL_PLUGINS"`
     4435IMPORTS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_impspath=$QT_INSTALL_IMPORTS"`
    41294436DATA_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_datapath=$QT_INSTALL_DATA"`
    41304437TRANSLATIONS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_trnspath=$QT_INSTALL_TRANSLATIONS"`
     
    41514458    HOSTBINARIES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_binspath=$QT_HOST_PREFIX/bin"`
    41524459    HOSTPLUGINS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_plugpath=$QT_HOST_PREFIX/plugins"`
     4460    HOSTIMPORTS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_impspath=$QT_HOST_PREFIX/IMPORTS"`
    41534461    HOSTDATA_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_datapath=$QT_HOST_PREFIX"`
    41544462    HOSTTRANSLATIONS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_trnspath=$QT_HOST_PREFIX/translations"`
     
    41674475static const char qt_configure_binaries_path_str     [256 + 12] = "$HOSTBINARIES_PATH_STR";
    41684476static const char qt_configure_plugins_path_str      [256 + 12] = "$HOSTPLUGINS_PATH_STR";
     4477static const char qt_configure_imports_path_str      [256 + 12] = "$HOSTIMPORTS_PATH_STR";
    41694478static const char qt_configure_data_path_str         [256 + 12] = "$HOSTDATA_PATH_STR";
    41704479static const char qt_configure_translations_path_str [256 + 12] = "$HOSTTRANSLATIONS_PATH_STR";
     
    41844493static const char qt_configure_binaries_path_str     [256 + 12] = "$BINARIES_PATH_STR";
    41854494static const char qt_configure_plugins_path_str      [256 + 12] = "$PLUGINS_PATH_STR";
     4495static const char qt_configure_imports_path_str      [256 + 12] = "$IMPORTS_PATH_STR";
    41864496static const char qt_configure_data_path_str         [256 + 12] = "$DATA_PATH_STR";
    41874497static const char qt_configure_translations_path_str [256 + 12] = "$TRANSLATIONS_PATH_STR";
     
    42084518#define QT_CONFIGURE_BINARIES_PATH qt_configure_binaries_path_str + 12;
    42094519#define QT_CONFIGURE_PLUGINS_PATH qt_configure_plugins_path_str + 12;
     4520#define QT_CONFIGURE_IMPORTS_PATH qt_configure_imports_path_str + 12;
    42104521#define QT_CONFIGURE_DATA_PATH qt_configure_data_path_str + 12;
    42114522#define QT_CONFIGURE_TRANSLATIONS_PATH qt_configure_translations_path_str + 12;
     
    42354546    cat > "$outpath/src/corelib/global/qconfig_eval.cpp" <<EOF
    42364547/* Evaluation license key */
    4237 static const char qt_eval_key_data                   [512 + 12] = "$EVALKEY";
     4548static const volatile char qt_eval_key_data                   [512 + 12] = "$EVALKEY";
    42384549EOF
    42394550    chmod -w "$outpath/src/corelib/global/qconfig_eval.cpp"
     
    42514562    if [ "$OPT_SHADOW" = "yes" ]; then
    42524563        "$outpath/bin/syncqt" $SYNCQT_OPTS
    4253     elif [ "$CFG_DEV" = "yes" ] || [ ! -d $relpath/include ]; then
     4564    elif [ "$CFG_DEV" = "yes" ] || [ ! -d $relpath/include ] || [ -d $relpath/.git ]; then
    42544565        QTDIR="$relpath" perl "$outpath/bin/syncqt" $SYNCQT_OPTS
    42554566    fi
     
    42624573setBootstrapVariable()
    42634574{
    4264     variableRegExp="^$1[^_A-Z0-9]"
    4265     getQMakeConf | grep "$variableRegExp" | ( [ -n "$2" ] && sed "$2" ; [ -z "$2" ] && cat ) | $AWK '
     4575    getQMakeConf | $AWK '/^('"$1"')[^_A-Z0-9]/ { print $0; }' | ( [ -n "$2" ] && sed "$2" ; [ -z "$2" ] && cat ) | $AWK '
    42664576{
    42674577    varLength = index($0, "=") - 1
     
    43084618
    43094619    mv -f "$QMAKE_QCONFIG_H" "$QCONFIG_H"
    4310     for conf in "$outpath/include/QtCore/qconfig.h" "$outpath/include/Qt/qconfig.h"; do
    4311         if [ '!' -f "$conf" ]; then
    4312             ln -s "$QCONFIG_H" "$conf"
    4313         fi
    4314     done
    43154620
    43164621    #mkspecs/default is used as a (gasp!) default mkspec so QMAKESPEC needn't be set once configured
    4317     rm -f mkspecs/default
    4318     ln -s `echo $XQMAKESPEC | sed "s,^${relpath}/mkspecs/,,"` mkspecs/default
     4622    rm -rf mkspecs/default
     4623    if echo "$XPLATFORM" | grep "symbian-sbsv2" > /dev/null ; then
     4624#Link is not supported for Symbian build system
     4625        cp -a mkspecs/`echo $XQMAKESPEC | sed "s,^${relpath}/mkspecs/,,"` mkspecs/default
     4626    else
     4627        ln -s `echo $XQMAKESPEC | sed "s,^${relpath}/mkspecs/,,"` mkspecs/default
     4628    fi
    43194629    # fix makefiles
    43204630    for mkfile in GNUmakefile Makefile; do
     
    43784688        fi
    43794689
    4380         if [ '!' -z "$RPATH_FLAGS" ] && [ '!' -z "`getQMakeConf \"$QMAKESPEC\" | grep QMAKE_RPATH | awk '{print $3;}'`" ]; then
    4381             setBootstrapVariable QMAKE_RPATH 's,\$\$LITERAL_WHITESPACE, ,'
    4382             for rpath in $RPATH_FLAGS; do
    4383                 EXTRA_LFLAGS="\$(QMAKE_RPATH)\"$rpath\" $EXTRA_LFLAGS"
     4690        if [ '!' -z "$RPATH_FLAGS" ] && [ '!' -z "`getQMakeConf \"$QMAKESPEC\" | $AWK '/QMAKE_(LFLAGS_)?RPATH/ {print $3;}'`" ]; then
     4691            setBootstrapVariable "QMAKE_(LFLAGS_)?RPATH" 's,\$\$LITERAL_WHITESPACE, ,;s,QMAKE_RPATH,QMAKE_LFLAGS_RPATH,'
     4692            for rpath in $RPATH_FLAGS; do
     4693                EXTRA_LFLAGS="\$(QMAKE_LFLAGS_RPATH)\"$rpath\" $EXTRA_LFLAGS"
    43844694            done
    43854695        fi
     
    44994809fi
    45004810
     4811# detect sse3 support
     4812if [ "${CFG_SSE3}" = "auto" ]; then
     4813    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/sse3 "sse3" $L_FLAGS $I_FLAGS $l_FLAGS "-msse3"; then
     4814       CFG_SSE3=yes
     4815    else
     4816       CFG_SSE3=no
     4817    fi
     4818fi
     4819
     4820# detect ssse3 support
     4821if [ "${CFG_SSSE3}" = "auto" ]; then
     4822    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/ssse3 "ssse3" $L_FLAGS $I_FLAGS $l_FLAGS "-mssse3"; then
     4823       CFG_SSSE3=yes
     4824    else
     4825       CFG_SSSE3=no
     4826    fi
     4827fi
     4828
     4829# detect sse4.1 support
     4830if [ "${CFG_SSE4_1}" = "auto" ]; then
     4831    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/sse4_1 "sse4_1" $L_FLAGS $I_FLAGS $l_FLAGS "-msse4.1"; then
     4832       CFG_SSE4_1=yes
     4833    else
     4834       CFG_SSE4_1=no
     4835    fi
     4836fi
     4837
     4838# detect sse4.2 support
     4839if [ "${CFG_SSE4_2}" = "auto" ]; then
     4840    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/sse4_2 "sse4_2" $L_FLAGS $I_FLAGS $l_FLAGS "-msse4.2"; then
     4841       CFG_SSE4_2=yes
     4842    else
     4843       CFG_SSE4_2=no
     4844    fi
     4845fi
     4846
     4847# detect avx support
     4848if [ "${CFG_AVX}" = "auto" ]; then
     4849    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/avx "avx" $L_FLAGS $I_FLAGS $l_FLAGS "-mavx"; then
     4850       CFG_AVX=yes
     4851    else
     4852       CFG_AVX=no
     4853    fi
     4854fi
     4855
    45014856# check iWMMXt support
    45024857if [ "$CFG_IWMMXT" = "yes" ]; then
     
    45104865
    45114866# detect neon support
    4512 if ([ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]) && [ "${CFG_NEON}" = "auto" ]; then
     4867if ( [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ] ) && [ "${CFG_NEON}" = "auto" ]; then
    45134868    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/neon "neon" $L_FLAGS $I_FLAGS $l_FLAGS "-mfpu=neon"; then
    45144869        CFG_NEON=yes
     
    45404895fi
    45414896
     4897[ "$XPLATFORM_MINGW" = "yes" ] && QMakeVar add styles "windowsxp windowsvista"
     4898
     4899case "$XPLATFORM" in *symbian*)
     4900    QMakeVar set styles "windows s60"   #overwrite previous default
     4901    CFG_LIBFREETYPE=no
     4902
     4903    if [ "$CFG_LARGEFILE" = auto ]; then
     4904        CFG_LARGEFILE=no
     4905    fi
     4906    if [ "$CFG_PHONON" = auto ]; then
     4907        CFG_PHONON=yes
     4908    fi
     4909
     4910    if test -z "$EPOCROOT"; then
     4911        echo "Please export EPOCROOT. It should point to the sdk install dir"
     4912        exit 1
     4913    fi
     4914    if test ! -d "$EPOCROOT/epoc32"; then
     4915        echo "Could not find the 'epoc32' dir in your EPOCROOT."
     4916        exit 1
     4917    fi
     4918
     4919    if ! echo $XPLATFORM | grep symbian-sbsv2 > /dev/null; then
     4920        # Raptor does not support configure tests.
     4921
     4922        # the main commands needed to compile;
     4923        (mkdir -p config.tests/symbian/rcomp
     4924            cd config.tests/symbian/rcomp
     4925            rm -f rcomp_test.rsg
     4926            touch rcomp_test.rpp rcomp_test.rsc rcomp_test.rss
     4927            rcomp -u -m045,046,047 -s./rcomp_test.rpp -o./rcomp_test.rsc -h./rcomp_test.rsg -i./rcomp_test.rss 2>&1 > /dev/null
     4928            if test ! -f rcomp_test.rsg; then
     4929                echo "Finding a working rcomp in your PATH failed."
     4930                echo "Fatal error. Make sure you have the epoc tools working and in your PATH";
     4931                exit 1;
     4932            fi
     4933        )
     4934
     4935        # compile a simple main that uses printf
     4936        if ! "$symbiantests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/symbian/simple "simple" $L_FLAGS $I_FLAGS $l_FLAGS
     4937        then
     4938            echo "Testing your compiler failed. Could not compile a simple application."
     4939            echo "Fatal error; Rerun configure with -verbose to get more details."
     4940            exit 1;
     4941        fi
     4942    fi
     4943    ;;
     4944esac
     4945
     4946if [ "$CFG_LARGEFILE" = "auto" ]; then
     4947    #Large files should be enabled for all Linux systems
     4948    CFG_LARGEFILE=yes
     4949fi
     4950
     4951
     4952if [ "$CFG_S60" = "auto" ]; then
     4953    if echo "$XPLATFORM" | grep symbian > /dev/null; then
     4954        CFG_S60=yes
     4955    else
     4956        CFG_S60=no
     4957    fi
     4958fi
     4959
     4960if [ "$CFG_QS60STYLE" = "auto" ]; then
     4961    if echo "$XPLATFORM" | grep symbian > /dev/null; then
     4962        CFG_QS60STYLE=qt
     4963    else
     4964        CFG_QS60STYLE=no
     4965    fi
     4966fi
     4967
     4968if [ "$CFG_SYMBIAN_DEFFILES" = "auto" ]; then
     4969    if echo "$XPLATFORM" | grep symbian > /dev/null && [ "$CFG_DEV" = "no" ]; then
     4970        CFG_SYMBIAN_DEFFILES=yes
     4971    else
     4972        CFG_SYMBIAN_DEFFILES=no
     4973    fi
     4974fi
     4975
    45424976# detect how jpeg should be built
    45434977if [ "$CFG_JPEG" = "auto" ]; then
     
    46125046# detect accessibility
    46135047if [ "$CFG_ACCESSIBILITY" = "auto" ]; then
    4614     CFG_ACCESSIBILITY=yes
     5048    case "$XPLATFORM" in
     5049    symbian*)
     5050        # accessibility is currently unsupported
     5051        CFG_ACCESSIBILITY=no
     5052    ;;
     5053    *)
     5054        CFG_ACCESSIBILITY=yes
     5055    esac
    46155056fi
    46165057
     
    46715112        psql)
    46725113            if [ "$CFG_SQL_psql" != "no" ]; then
    4673                 if "$WHICH" pg_config >/dev/null 2>&1; then
     5114                # Be careful not to use native pg_config when cross building.
     5115                if [ "$XPLATFORM_MINGW" != "yes" ] && "$WHICH" pg_config >/dev/null 2>&1; then
    46745116                    QT_CFLAGS_PSQL=`pg_config --includedir 2>/dev/null`
    46755117                    QT_LFLAGS_PSQL=`pg_config --libdir 2>/dev/null`
     
    46775119                [ -z "$QT_CFLAGS_PSQL" ] || QT_CFLAGS_PSQL="-I$QT_CFLAGS_PSQL"
    46785120                [ -z "$QT_LFLAGS_PSQL" ] || QT_LFLAGS_PSQL="-L$QT_LFLAGS_PSQL"
     5121                # But, respect PSQL_LIBS if set
     5122                [ -z "$PSQL_LIBS" ] || QT_LFLAGS_PSQL="$PSQL_LIBS"
    46795123                if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/psql "PostgreSQL" $QT_LFLAGS_PSQL $L_FLAGS $QT_CFLAGS_PSQL $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
    46805124                    if [ "$CFG_SQL_psql" = "auto" ]; then
     
    46985142        odbc)
    46995143            if [ "$CFG_SQL_odbc" != "no" ]; then
    4700                 if [ "$PLATFORM_MAC" != "yes" ] && "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/odbc "ODBC" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
     5144                if ( [ "$PLATFORM_MAC" != "yes" ] || [ "$XPLATFORM_MINGW" = "yes" ] ) && "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/odbc "ODBC" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
    47015145                    if [ "$CFG_SQL_odbc" = "auto" ]; then
    47025146                        CFG_SQL_odbc=plugin
     
    47435187        tds)
    47445188            if [ "$CFG_SQL_tds" != "no" ]; then
    4745                 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/tds "TDS" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
     5189                [ -z "$SYBASE" ] || QT_LFLAGS_TDS="-L$SYBASE/lib"
     5190                [ -z "$SYBASE_LIBS" ] || QT_LFLAGS_TDS="$QT_LFLAGS_TDS $SYBASE_LIBS"
     5191                if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/tds "TDS" $QT_LFLAGS_TDS $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
    47465192                    if [ "$CFG_SQL_tds" = "auto" ]; then
    47475193                        CFG_SQL_tds=plugin
     
    48185264            ;;
    48195265        sqlite)
     5266            if [ "$CFG_SQL_sqlite" = "auto" ]; then # the default
     5267                case "$XPLATFORM" in
     5268                    symbian*)
     5269                    # sqlite on symbian is typically not build in Qt but deployed as a pre-existing sis file and should be marked as driver.
     5270                    # Configuration parameters should be set
     5271                    CFG_SQL_sqlite=qt
     5272                    QT_LFLAGS_SQLITE=-lsqlite3
     5273                    QMAKE_CONFIG="$QMAKE_CONFIG system-sqlite"
     5274                    ;;
     5275                esac
     5276            fi
    48205277            if [ "$CFG_SQL_sqlite" != "no" ]; then
    48215278                SQLITE_AUTODETECT_FAILED="no"
     
    49005357    elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" "$OPT_VERBOSE" "$relpath" "$outpath" "config.tests/unix/iconv" "POSIX iconv" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
    49015358        CFG_ICONV=yes
     5359    elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" "$OPT_VERBOSE" "$relpath" "$outpath" "config.tests/unix/sun-libiconv" "SUN libiconv" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
     5360        CFG_ICONV=sun
    49025361    elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" "$OPT_VERBOSE" "$relpath" "$outpath" "config.tests/unix/gnu-libiconv" "GNU libiconv" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
    49035362        CFG_ICONV=gnu
     
    49405399fi
    49415400
     5401if [ "$CFG_MULTIMEDIA" = "auto" ]; then
     5402    CFG_MULTIMEDIA="$CFG_GUI"
     5403fi
     5404
     5405if [ "$CFG_MULTIMEDIA" = "yes" ] && [ "$CFG_GUI" = "no" ]; then
     5406    echo "QtMultimedia requested, but it can't be built without QtGui"
     5407    exit 1
     5408fi
     5409
    49425410# Generate a CRC of the namespace for using in constants for the Carbon port.
    49435411# This should mean that you really *can* load two Qt's and have our custom
     
    49475415fi
    49485416
     5417# X11/QWS
    49495418if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ]; then
    4950 
    4951     # detect EGL support
    4952     if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/egl" "EGL (EGL/egl.h)" $L_FLAGS $I_FLAGS $l_FLAGS; then
    4953         # EGL specified by QMAKE_*_EGL, included with <EGL/egl.h>
    4954         CFG_EGL=yes
    4955         CFG_EGL_GLES_INCLUDES=no
    4956     elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/egl4gles1" "EGL (GLES/egl.h)" $L_FLAGS $I_FLAGS $l_FLAGS; then
    4957         # EGL specified by QMAKE_*_EGL, included with <GLES/egl.h>
    4958         CFG_EGL=yes
    4959         CFG_EGL_GLES_INCLUDES=yes
    4960     fi
    4961     if ( [ "$CFG_OPENGL" = "es1" ] || [ "$CFG_OPENGL" = "es1cl" ] || [ "$CFG_OPENGL" = "es2" ] ) && [ "$CFG_EGL" != "yes" ]; then
    4962         echo "The EGL functionality test failed!"
    4963         echo " EGL is required for OpenGL ES to manage contexts & surfaces."
    4964         echo " You might need to modify the include and library search paths by editing"
    4965         echo " QMAKE_INCDIR_EGL, QMAKE_LIBDIR_EGL and QMAKE_LIBS_EGL in"
    4966         echo " ${XQMAKESPEC}."
    4967         exit 1
    4968     fi
    4969 
    49705419
    49715420    # auto-detect Glib support
     
    49925441    fi
    49935442
     5443    if [ "$CFG_GUI" = "no" ]; then
     5444        if [ "$CFG_PHONON" = "auto" ]; then
     5445            CFG_PHONON=no
     5446        fi
     5447        if [ "$CFG_PHONON" != "no" ]; then
     5448            echo "Phonon enabled, but GUI disabled."
     5449            echo " You might need to either enable the GUI or disable Phonon"
     5450            exit 1
     5451        fi
     5452    fi
     5453
     5454    # Auto-detect GStreamer support (needed for Phonon)
     5455    if [ "$CFG_PHONON" != "no" ]; then
     5456        if [ "$CFG_GLIB" = "yes" -a "$CFG_GSTREAMER" != "no" ]; then
     5457            if [ -n "$PKG_CONFIG" ]; then
     5458                QT_CFLAGS_GSTREAMER=`$PKG_CONFIG --cflags gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`
     5459                QT_LIBS_GSTREAMER=`$PKG_CONFIG --libs gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`
     5460            fi
     5461            if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/gstreamer "GStreamer" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_GSTREAMER $QT_LIBS_GSTREAMER $X11TESTS_FLAGS; then
     5462                CFG_GSTREAMER=yes
     5463                QMakeVar set QT_CFLAGS_GSTREAMER "$QT_CFLAGS_GSTREAMER"
     5464                QMakeVar set QT_LIBS_GSTREAMER "$QT_LIBS_GSTREAMER"
     5465            else
     5466                if [ "$CFG_GSTREAMER" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
     5467                    echo "Gstreamer support cannot be enabled due to functionality tests!"
     5468                    echo " Turn on verbose messaging (-v) to $0 to see the final report."
     5469                    echo " If you believe this message is in error you may use the continue"
     5470                    echo " switch (-continue) to $0 to continue."
     5471                    exit 101
     5472                else
     5473                    CFG_GSTREAMER=no
     5474                fi
     5475            fi
     5476        elif [ "$CFG_GLIB" = "no" ]; then
     5477            CFG_GSTREAMER=no
     5478        fi
     5479    else
     5480        CFG_GSTREAMER=no
     5481    fi
     5482
    49945483    if [ "$CFG_PHONON" != "no" ]; then
    49955484        if [ "$CFG_PHONON_BACKEND" != "no" ]; then
    4996             if [ "$CFG_GLIB" = "yes" -a "$CFG_GSTREAMER" != "no" ]; then
    4997                 if [ -n "$PKG_CONFIG" ]; then
    4998                     QT_CFLAGS_GSTREAMER=`$PKG_CONFIG --cflags gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`
    4999                     QT_LIBS_GSTREAMER=`$PKG_CONFIG --libs gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`
    5000                 fi
    5001                 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/gstreamer "GStreamer" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_GSTREAMER $QT_LIBS_GSTREAMER $X11TESTS_FLAGS; then
    5002                     CFG_GSTREAMER=yes
    5003                     QMakeVar set QT_CFLAGS_GSTREAMER "$QT_CFLAGS_GSTREAMER"
    5004                     QMakeVar set QT_LIBS_GSTREAMER "$QT_LIBS_GSTREAMER"
    5005                 else
    5006                     if [ "$CFG_GSTREAMER" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
    5007                         echo "Gstreamer support cannot be enabled due to functionality tests!"
    5008                         echo " Turn on verbose messaging (-v) to $0 to see the final report."
    5009                         echo " If you believe this message is in error you may use the continue"
    5010                         echo " switch (-continue) to $0 to continue."
    5011                         exit 101
    5012                     else
    5013                         CFG_GSTREAMER=no
    5014                     fi
    5015                 fi
    5016             elif [ "$CFG_GLIB" = "no" ]; then
    5017                 CFG_GSTREAMER=no
    5018             fi
    5019 
    50205485            if [ "$CFG_GSTREAMER" = "yes" ]; then
    50215486                CFG_PHONON=yes
     
    50355500        fi
    50365501    fi
     5502
     5503    # auto-detect icd support
     5504    if [ "$CFG_GLIB" = "yes" -a "$CFG_ICD" != "no" ]; then
     5505        if [ -n "$PKG_CONFIG" ]; then
     5506            QT_CFLAGS_CONNSETTINGS=`$PKG_CONFIG --cflags connsettings icd2 2>/dev/null`
     5507            QT_LIBS_CONNSETTINGS=`$PKG_CONFIG --libs connsettings icd2 2>/dev/null`
     5508        fi
     5509        if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/icd "ICD" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_CONNSETTINGS $QT_LIBS_CONNSETTINGS; then
     5510            [ "$CFG_ICD" = "auto" ] && CFG_ICD=yes
     5511            QMakeVar set QT_CFLAGS_CONNSETTINGS "$QT_CFLAGS_CONNSETTINGS"
     5512            QMakeVar set QT_LIBS_CONNSETTINGS "$QT_LIBS_CONNSETTINGS"
     5513        else
     5514            if [ "$CFG_ICD" = "auto" ]; then
     5515                CFG_ICD=no
     5516            elif [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
     5517                # CFG_ICD is "yes"
     5518
     5519                echo "The ICD Bearer Management plugin cannot be enabled because connsettings was not found."
     5520                echo " Turn on verbose messaging (-v) to $0 to see the final report."
     5521                echo " If you believe this message is in error you may use the continue"
     5522                echo " switch (-continue) to $0 to continue."
     5523                exit 101
     5524            fi
     5525        fi
     5526    elif [ "$CFG_GLIB" = "no" ]; then
     5527        CFG_ICD=no
     5528    fi
     5529
     5530    # Auto-detect PulseAudio support
     5531    if [ "$CFG_PULSEAUDIO" != "no" ]; then
     5532        if [ -n "$PKG_CONFIG" ]; then
     5533            QT_CFLAGS_PULSEAUDIO=`$PKG_CONFIG --cflags libpulse '>=' 0.9.10 libpulse-mainloop-glib 2>/dev/null`
     5534            QT_LIBS_PULSEAUDIO=`$PKG_CONFIG --libs libpulse '>=' 0.9.10 libpulse-mainloop-glib 2>/dev/null`
     5535        fi
     5536        if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/pulseaudio "PulseAudio" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_PULSEAUDIO $QT_LIBS_PULSEAUDIO $X11TESTS_FLAGS; then
     5537            CFG_PULSEAUDIO=yes
     5538            QMakeVar set QT_CFLAGS_PULSEAUDIO "$QT_CFLAGS_PULSEAUDIO"
     5539            QMakeVar set QT_LIBS_PULSEAUDIO "$QT_LIBS_PULSEAUDIO"
     5540        else
     5541            if [ "$CFG_PULSEAUDIO" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
     5542                echo "PulseAudio support cannot be enabled due to functionality tests!"
     5543                echo " Turn on verbose messaging (-v) to $0 to see the final report."
     5544                echo " If you believe this message is in error you may use the continue"
     5545                echo " switch (-continue) to $0 to continue."
     5546                exit 101
     5547            else
     5548                CFG_PULSEAUDIO=no
     5549            fi
     5550        fi
     5551    fi
    50375552fi # X11/QWS
    50385553
    5039 # x11
     5554# X11
    50405555if [ "$PLATFORM_X11" = "yes" ]; then
    50415556    x11tests="$relpath/config.tests/x11"
     
    50585573        exit 1
    50595574    fi
    5060 
    5061     # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es1cl = ES 1.x common lite, es2 = OpenGL ES 2.x)
     5575fi
     5576
     5577# X11/MINGW OpenGL
     5578if [ "$PLATFORM_X11" = "yes" -o "$XPLATFORM_MINGW" = "yes" ]; then
     5579    # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es2 = OpenGL ES 2.x)
     5580    if [ "$CFG_GUI" = "no" ]; then
     5581        if [ "$CFG_OPENGL" = "auto" ]; then
     5582            CFG_OPENGL=no
     5583        fi
     5584        if [ "$CFG_OPENGL" != "no" ]; then
     5585            echo "OpenGL enabled, but GUI disabled."
     5586            echo " You might need to either enable the GUI or disable OpenGL"
     5587            exit 1
     5588        fi
     5589    fi
    50625590    if [ "$CFG_OPENGL" = "auto" ] || [ "$CFG_OPENGL" = "yes" ]; then
    50635591        if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/opengl "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then
     
    50655593        elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
    50665594            CFG_OPENGL=es2
    5067         elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
     5595            if [ "$CFG_EGL" = "no" ]; then
     5596                CFG_EGL=auto
     5597            fi
     5598        elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
    50685599            CFG_OPENGL=es1
    5069         elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1cl "OpenGL ES 1.x Lite" $L_FLAGS $I_FLAGS $l_FLAGS; then
    5070             CFG_OPENGL=es1cl
     5600            if [ "$CFG_EGL" = "no" ]; then
     5601                CFG_EGL=auto
     5602            fi
    50715603        else
    50725604            if [ "$CFG_OPENGL" = "yes" ]; then
     
    50795611            CFG_OPENGL=no
    50805612        fi
    5081        case "$PLATFORM" in
    5082        hpux*)
    5083            # HP-UX have buggy glx headers; check if we really need to define the GLXFBConfig struct.
    5084            if [ "$CFG_OPENGL" = "desktop" ]; then
    5085                "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/glxfbconfig "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
    5086                if [ $? != "0" ]; then
    5087                    QMakeVar add DEFINES QT_DEFINE_GLXFBCONFIG_STRUCT
    5088                fi
    5089            fi
    5090            ;;
    5091        *)
    5092            ;;
    5093        esac
    5094     elif [ "$CFG_OPENGL" = "es1cl" ]; then
    5095         # OpenGL ES 1.x common lite
    5096         "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1cl "OpenGL ES 1.x Lite" $L_FLAGS $I_FLAGS $l_FLAGS
    5097         if [ $? != "0" ]; then
    5098             echo "The OpenGL ES 1.x Common Lite Profile functionality test failed!"
    5099             echo " You might need to modify the include and library search paths by editing"
    5100             echo " QMAKE_INCDIR_OPENGL_ES1CL, QMAKE_LIBDIR_OPENGL_ES1CL and QMAKE_LIBS_OPENGL_ES1CL in"
    5101             echo " ${XQMAKESPEC}."
    5102             exit 1
    5103         fi
     5613        case "$PLATFORM" in
     5614        hpux*)
     5615            # HP-UX have buggy glx headers; check if we really need to define the GLXFBConfig struct.
     5616            if [ "$CFG_OPENGL" = "desktop" ]; then
     5617                "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/glxfbconfig "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
     5618                if [ $? != "0" ]; then
     5619                    QMakeVar add DEFINES QT_DEFINE_GLXFBCONFIG_STRUCT
     5620                fi
     5621            fi
     5622            ;;
     5623        *)
     5624            ;;
     5625        esac
    51045626    elif [ "$CFG_OPENGL" = "es1" ]; then
    51055627        # OpenGL ES 1.x
    5106         "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS
     5628        "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS
    51075629        if [ $? != "0" ]; then
    5108             echo "The OpenGL ES 1.x functionality test failed!"
     5630            echo "The OpenGL ES 1.x functionality test failed!"
    51095631            echo " You might need to modify the include and library search paths by editing"
    51105632            echo " QMAKE_INCDIR_OPENGL_ES1, QMAKE_LIBDIR_OPENGL_ES1 and QMAKE_LIBS_OPENGL_ES1 in"
     
    51145636    elif [ "$CFG_OPENGL" = "es2" ]; then
    51155637        #OpenGL ES 2.x
    5116         "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS
     5638        "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS
    51175639        if [ $? != "0" ]; then
    5118             echo "The OpenGL ES 2.0 functionality test failed!"
     5640            echo "The OpenGL ES 2.0 functionality test failed!"
    51195641            echo " You might need to modify the include and library search paths by editing"
    51205642            echo " QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in"
     
    51265648        "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/opengl "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
    51275649        if [ $? != "0" ]; then
    5128             echo "The OpenGL functionality test failed!"
     5650            echo "The OpenGL functionality test failed!"
    51295651            echo " You might need to modify the include and library search paths by editing"
    51305652            echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
     
    51395661                QMakeVar add DEFINES QT_DEFINE_GLXFBCONFIG_STRUCT
    51405662            fi
    5141             ;;
     5663            ;;
    51425664        *)
    51435665            ;;
     
    51505672        CFG_GRAPHICS_SYSTEM=default
    51515673    fi
    5152 
     5674fi # X11/MINGW OpenGL
     5675
     5676# X11
     5677if [ "$PLATFORM_X11" = "yes" ]; then
    51535678    # auto-detect Xcursor support
    51545679    if [ "$CFG_XCURSOR" != "no" ]; then
     
    53035828    fi
    53045829
     5830    # auto-detect XVideo support
     5831    if [ "$CFG_XVIDEO" != "no" ]; then
     5832        if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xvideo "XVideo" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then
     5833            CFG_XVIDEO=yes
     5834        else
     5835            if [ "$CFG_XVIDEO" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
     5836                echo "XVideo support cannot be enabled due to functionality tests!"
     5837                echo " Turn on verbose messaging (-v) to $0 to see the final report."
     5838                echo " If you believe this message is in error you may use the continue"
     5839                echo " switch (-continue) to $0 to continue."
     5840                exit 101
     5841            else
     5842                CFG_XVIDEO=no
     5843            fi
     5844        fi
     5845    fi
     5846
    53055847    # auto-detect XSync support
    53065848    if [ "$CFG_XSYNC" != "no" ]; then
     
    54065948        CFG_PHONON=yes
    54075949    fi
     5950
     5951    if [ "$CFG_COREWLAN" = "auto" ]; then
     5952        if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/mac/corewlan "CoreWlan" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
     5953            CFG_COREWLAN=yes
     5954        else
     5955            CFG_COREWLAN=no
     5956        fi
     5957    fi
    54085958fi
    54095959
     
    54115961if [ "$PLATFORM_QWS" = "yes" ]; then
    54125962
    5413     # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es1cl = ES 1.x common lite, es2 = OpenGL ES 2.x)
     5963    # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es2 = OpenGL ES 2.x)
     5964    if [ "$CFG_GUI" = "no" ]; then
     5965        if [ "$CFG_OPENGL" = "auto" ]; then
     5966            CFG_OPENGL=no
     5967        fi
     5968        if [ "$CFG_OPENGL" != "no" ]; then
     5969            echo "OpenGL enabled, but GUI disabled."
     5970            echo " You might need to either enable the GUI or disable OpenGL"
     5971            exit 1
     5972        fi
     5973    fi
    54145974    if [ "$CFG_OPENGL" = "yes" ]; then
     5975        CFG_EGL=auto
    54155976        if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
    54165977            CFG_OPENGL=es2
    5417         elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
     5978        elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
    54185979            CFG_OPENGL=es1
    5419         elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1cl "OpenGL ES 1.x Lite" $L_FLAGS $I_FLAGS $l_FLAGS; then
    5420             CFG_OPENGL=es1cl
    54215980        else
    54225981            echo "All the OpenGL ES functionality tests failed!"
     
    54285987    elif [ "$CFG_OPENGL" = "es1" ]; then
    54295988        # OpenGL ES 1.x
    5430         "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS
     5989        "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS
    54315990        if [ $? != "0" ]; then
    5432             echo "The OpenGL ES 1.x functionality test failed!"
     5991            echo "The OpenGL ES 1.x functionality test failed!"
    54335992            echo " You might need to modify the include and library search paths by editing"
    5434             echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
    5435             echo " ${XQMAKESPEC}."
     5993            echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
     5994            echo " ${XQMAKESPEC}."
    54365995            exit 1
    54375996        fi
     5997        CFG_EGL=yes
    54385998    elif [ "$CFG_OPENGL" = "es2" ]; then
    54395999        #OpenGL ES 2.x
    5440         "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS
     6000        "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS
    54416001        if [ $? != "0" ]; then
    5442             echo "The OpenGL ES 2.0 functionality test failed!"
     6002            echo "The OpenGL ES 2.0 functionality test failed!"
    54436003            echo " You might need to modify the include and library search paths by editing"
    5444             echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
    5445             echo " ${XQMAKESPEC}."
     6004            echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
     6005            echo " ${XQMAKESPEC}."
    54466006            exit 1
    54476007        fi
     6008        CFG_EGL=yes
    54486009    elif [ "$CFG_OPENGL" = "desktop" ]; then
    54496010        # Desktop OpenGL support
     
    54776038
    54786039       if [ "${screen}" = "directfb" ] && [ "${CFG_CONFIGURE_EXIT_ON_ERROR}" = "yes" ]; then
    5479            if [ -n "$PKG_CONFIG" ]; then
    5480                if $PKG_CONFIG --exists directfb 2>/dev/null; then
    5481                    QT_CFLAGS_DIRECTFB=`$PKG_CONFIG --cflags directfb 2>/dev/null`
    5482                    QT_LIBS_DIRECTFB=`$PKG_CONFIG --libs directfb 2>/dev/null`
    5483                elif directfb-config --version >/dev/null 2>&1; then
    5484                    QT_CFLAGS_DIRECTFB=`directfb-config --cflags 2>/dev/null`
    5485                    QT_LIBS_DIRECTFB=`directfb-config --libs 2>/dev/null`
    5486                fi
     6040           if test -n "$PKG_CONFIG" && "$PKG_CONFIG" --exists directfb 2>/dev/null; then
     6041               QT_CFLAGS_DIRECTFB=`$PKG_CONFIG --cflags directfb 2>/dev/null`
     6042               QT_LIBS_DIRECTFB=`$PKG_CONFIG --libs directfb 2>/dev/null`
     6043           elif directfb-config --version >/dev/null 2>&1; then
     6044               QT_CFLAGS_DIRECTFB=`directfb-config --cflags 2>/dev/null`
     6045               QT_LIBS_DIRECTFB=`directfb-config --libs 2>/dev/null`
    54876046           fi
    54886047
     
    55326091fi # QWS
    55336092
     6093# EGL Support
     6094if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ]; then
     6095    if [ "$CFG_EGL" != "no" ]; then
     6096        # detect EGL support
     6097        if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/egl" "EGL (EGL/egl.h)" $L_FLAGS $I_FLAGS $l_FLAGS; then
     6098            # EGL specified by QMAKE_*_EGL, included with <EGL/egl.h>
     6099            CFG_EGL=yes
     6100            CFG_EGL_GLES_INCLUDES=no
     6101        elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/egl4gles1" "EGL (GLES/egl.h)" $L_FLAGS $I_FLAGS $l_FLAGS; then
     6102            # EGL specified by QMAKE_*_EGL, included with <GLES/egl.h>
     6103            CFG_EGL=yes
     6104            CFG_EGL_GLES_INCLUDES=yes
     6105        else
     6106            if [ "$CFG_EGL" = "yes" ]; then
     6107                echo "The EGL functionality test failed!"
     6108                echo " EGL is required for OpenGL ES to manage contexts & surfaces."
     6109                echo " You might need to modify the include and library search paths by editing"
     6110                echo " QMAKE_INCDIR_EGL, QMAKE_LIBDIR_EGL and QMAKE_LIBS_EGL in"
     6111                echo " ${XQMAKESPEC}."
     6112                exit 1
     6113            fi
     6114            CFG_EGL=no
     6115            # If QtOpenGL would be built against OpenGL ES, disable it as we can't to that if EGL is missing
     6116            if [ "$CFG_OPENGL" = "es1" -o "$CFG_OPENGL" = "es2" ]; then
     6117                CFG_OPENGL=no
     6118            fi
     6119        fi
     6120    fi
     6121fi
     6122
     6123[ "$XPLATFORM_MINGW" = "yes" ] && [ "$CFG_PHONON" != "no" ] && CFG_PHONON="yes"
     6124
    55346125# freetype support
    55356126[ "x$CFG_EMBEDDED" != "xno" ] && CFG_LIBFREETYPE="$CFG_QWS_FREETYPE"
    55366127[ "x$PLATFORM_MAC" = "xyes" ] && CFG_LIBFREETYPE=no
     6128[ "$XPLATFORM_MINGW" = "yes" ] && [ "$CFG_LIBFREETYPE" = "auto" ] && CFG_LIBFREETYPE=no
    55376129if [ "$CFG_LIBFREETYPE" = "auto" ]; then
    55386130    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/freetype "FreeType" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
     
    55446136
    55456137if [ "$CFG_ENDIAN" = "auto" ]; then
    5546     if [ "$PLATFORM_MAC" = "yes" ]; then
     6138    if [ "$XPLATFORM_MINGW" = "yes" ]; then
     6139        CFG_ENDIAN="Q_LITTLE_ENDIAN"
     6140    elif [ "$PLATFORM_MAC" = "yes" ]; then
    55476141        true #leave as auto
     6142    elif [ "$XPLATFORM" = "symbian-sbsv2" ]; then
     6143        CFG_ENDIAN="Q_LITTLE_ENDIAN"
    55486144    else
    55496145        "$unixtests/endian.test" "$XQMAKESPEC" $OPT_VERBOSE "$relpath" "$outpath"
     
    56316227
    56326228HAVE_STL=no
    5633 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/stl "STL" $L_FLAGS $I_FLAGS $l_FLAGS; then
     6229if echo "$XPLATFORM" | grep symbian > /dev/null || "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/stl "STL" $L_FLAGS $I_FLAGS $l_FLAGS; then
    56346230    HAVE_STL=yes
    56356231fi
     
    56536249# find if the platform supports IPv6
    56546250if [ "$CFG_IPV6" != "no" ]; then
    5655     if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/ipv6 "IPv6" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
     6251    #
     6252    # We accidently enabled IPv6 for Qt Symbian in 4.6.x. However the underlying OpenC does not fully support IPV6.
     6253    # Therefore for 4.7.1 and following we disable it until OpenC either supports it or we have the native Qt
     6254    # symbian socket engine.
     6255    #
     6256    if echo "$XPLATFORM" | grep symbian > /dev/null; then
     6257        CFG_IPV6=no
     6258    elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/ipv6 "IPv6" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
    56566259        CFG_IPV6=yes
    56576260    else
     
    57656368fi
    57666369
    5767 # find if the platform supports X/Open Large File compilation environment
    5768 if [ "$CFG_LARGEFILE" != "no" ]; then
    5769     if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/largefile "X/Open Large File" $L_FLAGS $I_FLAGS $l_FLAGS; then
    5770         CFG_LARGEFILE=yes
    5771     else
    5772         if [ "$CFG_LARGEFILE" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
    5773             echo "X/Open Large File support cannot be enabled due to functionality tests!"
    5774             echo " Turn on verbose messaging (-v) to $0 to see the final report."
    5775             echo " If you believe this message is in error you may use the continue"
    5776             echo " switch (-continue) to $0 to continue."
    5777             exit 101
    5778         else
    5779             CFG_LARGEFILE=no
    5780         fi
    5781     fi
    5782 fi
    5783 
    57846370# detect OpenSSL
    5785 if [ "$CFG_OPENSSL" != "no" ]; then
     6371if [ "$CFG_OPENSSL" != "no" ] && [ "$XPLATFORM" != "symbian-sbsv2" ]; then
    57866372    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/openssl "OpenSSL" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
    57876373        if [ "$CFG_OPENSSL" = "auto" ]; then
     
    57996385        fi
    58006386    fi
     6387else
     6388    if [ "$CFG_OPENSSL" = "auto" ] && [ "$XPLATFORM" = "symbian-sbsv2" ]; then
     6389        #OpenSSl should be enabled for Symbian release
     6390        CFG_OPENSSL=yes
     6391    fi
    58016392fi
    58026393
    58036394# detect OpenVG support
    5804 if [ "$CFG_OPENVG" != "no" ]; then
     6395if [ "$CFG_OPENVG" != "no" ] && [ "$XPLATFORM" != "symbian-sbsv2" ]; then
    58056396    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/openvg" "OpenVG" $L_FLAGS $I_FLAGS $l_FLAGS $CONFIG_ARG; then
    58066397        if [ "$CFG_OPENVG" = "auto" ]; then
     
    58456436fi
    58466437
     6438if [ -n "$CFG_RUNTIME_SYSTEM" -a "$CFG_GRAPHICS_SYSTEM" != "runtime" ] || [ "$CFG_RUNTIME_SYSTEM" = "runtime" ]; then
     6439    echo "Argument to -runtimegraphicssystem is invalid so ignoring..."
     6440    CFG_RUNTIME_SYSTEM=
     6441fi
     6442
    58476443if [ "$CFG_PTMALLOC" != "no" ]; then
    58486444    # build ptmalloc, copy .a file to lib/
     
    58546450fi
    58556451
    5856 if [ "$CFG_ALSA" = "auto" ]; then
     6452if [ "$CFG_ALSA" = "auto" ] && [ "$XPLATFORM" != "symbian-sbsv2" ]; then
    58576453    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/alsa "alsa" $L_FLAGS $I_FLAGS $l_FLAGS; then
    58586454        CFG_ALSA=yes
     
    58606456        CFG_ALSA=no
    58616457    fi
    5862 fi
    5863 
    5864 if [ -f "$relpath/src/declarative/declarative.pro" ]; then
    5865     if [ "$CFG_DECLARATIVE" = "auto" ]; then
    5866         CFG_DECLARATIVE=yes
    5867     fi
    5868 else
    5869     if [ "$CFG_DECLARATIVE" = "auto" ] || [ "$CFG_DECLARATIVE" = "no" ]; then
    5870         CFG_DECLARATIVE=no
    5871     else
    5872         echo "Error: Unable to locate the qt-declarative package. Refer to the documentation on how to build the package."
    5873         exit 1
    5874     fi
     6458elif [ "$XPLATFORM" = "symbian-sbsv2" ]; then
     6459    # Disabled for Symbian release
     6460    CFG_ALSA=no
    58756461fi
    58766462
     
    58886474elif [ "$CFG_JAVASCRIPTCORE_JIT" = "no" ]; then
    58896475    QMakeVar set JAVASCRIPTCORE_JIT no
     6476fi
     6477
     6478if [ "$CFG_AUDIO_BACKEND" = "auto" ]; then
     6479    if echo "$XPLATFORM" | grep symbian > /dev/null 2>&1; then
     6480         if "$symbiantests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/symbian/audio "audio" $L_FLAGS $I_FLAGS $l_FLAGS ; then
     6481            CFG_AUDIO_BACKEND=yes
     6482         fi
     6483    else
     6484        CFG_AUDIO_BACKEND=yes
     6485    fi
     6486fi
     6487
     6488if [ "$CFG_LARGEFILE" != "yes" ] && [ "$XPLATFORM_MINGW" = "yes" ]; then
     6489    echo "Warning: largefile support cannot be disabled for win32."
     6490    CFG_LARGEFILE="yes"
     6491elif [ "$CFG_LARGEFILE" != "no" ] && echo "$XPLATFORM" | grep "symbian" > /dev/null; then
     6492    echo "Warning: largefile support cannot be enabled for symbian."
     6493    CFG_LARGEFILE="no"
    58906494fi
    58916495
     
    59336537fi
    59346538
    5935 # Set the default arch.
    5936 # Carbon builds: 32 bit x86/ppc.
    5937 # For "-cocoa" builds on snow leopard : compiler default (64-bit).
    5938 # For "-cocoa" builds on leopard : compiler default (32-bit).
     6539# Set the default arch if there are no "-arch" arguments on the configure line
     6540# For "-carbon" builds: 32 bit x86/ppc.
     6541# For builds on snow leopard : compiler default (64-bit).
     6542# For builds on leopard : compiler default (32-bit).
    59396543if [ "$PLATFORM_MAC" = "yes" ]  && [ "$CFG_MAC_ARCHS" = "" ]; then
    59406544    source "$mactests/defaultarch.test" "$TEST_COMPILER" "$OPT_VERBOSE" "$mactests"
    59416545
    5942         if [ "$CFG_MAC_COCOA" != "yes" ]; then
     6546        if [ "$CFG_MAC_CARBON" = "yes" ]; then
    59436547                if [ "$QT_MAC_DEFAULT_ARCH" = "x86_64" ]; then
    59446548                        CFG_MAC_ARCHS=" x86"
     
    59556559fi
    59566560
    5957 # enable cocoa and/or carbon on Mac
    5958 if [ "$CFG_MAC_COCOA" = "yes" ]; then
    5959 #   -cocoa on the command line disables carbon completely (i.e. use cocoa for 32-bit as well)
    5960     CFG_MAC_CARBON="no"
    5961 else
    5962 #   check which archs are in use, enable cocoa if we find a 64-bit one
     6561# enable Cocoa and/or Carbon on Mac
     6562#  -carbon on the command line disables Cocoa, except for 64-bit archs
     6563if [ "$CFG_MAC_CARBON" = "yes" ]; then
     6564    CFG_MAC_CARBON="YES"
     6565    CFG_MAC_COCOA="NO"
     6566
     6567#    check which archs are in use, enable cocoa if we find a 64-bit one
    59636568    if echo "$CFG_MAC_ARCHS" | grep 64 > /dev/null 2>&1; then
    59646569        CFG_MAC_COCOA="yes";
     
    59706575            CFG_MAC_CARBON="yes";
    59716576        fi
    5972     else
    5973 #       no 64-bit archs found.
    5974         CFG_MAC_COCOA="no"
    5975     fi
    5976 fi;
     6577    fi
     6578fi
     6579
     6580# select Carbon on 10.4 Tiger.
     6581if [ "$PLATFORM_MAC" = "yes" ]; then
     6582    VERSION=`uname -r | tr '.' ' ' | awk '{print $1}'`
     6583    if [ "$VERSION" == 8 ]; then
     6584        CFG_MAC_COCOA="no";
     6585        CFG_MAC_CARBON="yes";
     6586    fi
     6587fi
     6588
     6589# select Carbon when using the 10.4u SDK
     6590if [ "$PLATFORM_MAC" = "yes" ]; then
     6591    if [ "TEST$CFG_SDK" = "TEST/Developer/SDKs/MacOSX10.4u.sdk/" ]; then
     6592        echo "Carbon on";
     6593        CFG_MAC_COCOA="no";
     6594        CFG_MAC_CARBON="yes";
     6595    fi
     6596fi
     6597
     6598# but disable Cocoa if cross-building for mingw
     6599[ "$XPLATFORM_MINGW" = "yes" ] && CFG_MAC_COCOA="no"
    59776600
    59786601# set the global Mac deployment target. This is overridden on an arch-by-arch basis
     
    59896612esac
    59906613
    5991 # disable Qt 3 support on VxWorks
     6614# disable Qt 3 support on VxWorks and Symbian
    59926615case "$XPLATFORM" in
    5993     unsupported/vxworks*)
     6616    unsupported/vxworks*|symbian*)
    59946617        CFG_QT3SUPPORT="no"
    59956618    ;;
     
    60456668fi
    60466669
     6670if [ "$CFG_QS60STYLE" = "no" ]; then
     6671    QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_STYLE_S60"
     6672else
     6673    QCONFIG_FLAGS="$QCONFIG_FLAGS QT_STYLE_S60"
     6674fi
     6675
     6676# Just check if OpenGL is not set by command argumets for Symbian.
     6677case "$XPLATFORM" in
     6678    symbian*)
     6679        if [ "$CFG_OPENGL" = "auto" ]; then
     6680            CFG_OPENGL="no"
     6681        fi
     6682        ;;
     6683esac
     6684
    60476685# enable opengl
    60486686if [ "$CFG_OPENGL" = "no" ]; then
     
    60526690fi
    60536691
    6054 if [ "$CFG_OPENGL" = "es1" ] || [ "$CFG_OPENGL" = "es1cl" ] || [ "$CFG_OPENGL" = "es2" ]; then
     6692if [ "$CFG_OPENGL" = "es1" ] || [ "$CFG_OPENGL" = "es2" ]; then
    60556693    if [ "$PLATFORM_QWS" = "yes" ]; then
    60566694        QCONFIG_FLAGS="$QCONFIG_FLAGS Q_BACKINGSTORE_SUBSURFACES"
     
    60636701    QCONFIG_FLAGS="$QCONFIG_FLAGS QT_OPENGL_ES_1"
    60646702    QT_CONFIG="$QT_CONFIG opengles1"
    6065 fi
    6066 
    6067 if [ "$CFG_OPENGL" = "es1cl" ]; then
    6068     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_OPENGL_ES_1_CL"
    6069     QT_CONFIG="$QT_CONFIG opengles1cl"
    60706703fi
    60716704
     
    61016734    rm -f "src/.moc/$QMAKE_OUTDIR/allmoc.cpp" # needs remaking if config changes
    61026735fi
    6103 QMakeVar set PRECOMPILED_DIR ".pch/$QMAKE_OUTDIR"
     6736if [ "$XPLATFORM_MINGW" != "yes" ]; then
     6737    # Do not set this here for Windows. Let qmake do it so
     6738    # debug and release precompiled headers are kept separate.
     6739    QMakeVar set PRECOMPILED_DIR ".pch/$QMAKE_OUTDIR"
     6740fi
    61046741QMakeVar set OBJECTS_DIR ".obj/$QMAKE_OUTDIR"
    61056742QMakeVar set MOC_DIR ".moc/$QMAKE_OUTDIR"
    61066743QMakeVar set RCC_DIR ".rcc/$QMAKE_OUTDIR"
    61076744QMakeVar set UI_DIR ".uic/$QMAKE_OUTDIR"
    6108 if [ "$CFG_LARGEFILE" = "yes" ]; then
     6745if [ "$CFG_LARGEFILE" = "yes" ] && [ "$XPLATFORM_MINGW" != "yes" ]; then
    61096746    QMAKE_CONFIG="$QMAKE_CONFIG largefile"
    61106747fi
     
    61326769[ "$CFG_SSE" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse"
    61336770[ "$CFG_SSE2" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse2"
     6771[ "$CFG_SSE3" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse3"
     6772[ "$CFG_SSSE3" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG ssse3"
     6773[ "$CFG_SSE4_1" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse4_1"
     6774[ "$CFG_SSE4_2" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse4_2"
     6775[ "$CFG_AVX" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG avx"
    61346776[ "$CFG_IWMMXT" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG iwmmxt"
    61356777[ "$CFG_NEON" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG neon"
     
    62076849if [ "$CFG_LIBFREETYPE" = "no" ]; then
    62086850    QT_CONFIG="$QT_CONFIG no-freetype"
     6851    QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_FREETYPE"
    62096852elif [ "$CFG_LIBFREETYPE" = "system" ]; then
    62106853    QT_CONFIG="$QT_CONFIG system-freetype"
     
    62126855    QT_CONFIG="$QT_CONFIG freetype"
    62136856fi
    6214 
    6215 if [ "x$PLATFORM_MAC" = "xyes" ]; then
     6857if [ "$CFG_GUI" = "auto" ]; then
     6858    CFG_GUI="yes"
     6859fi
     6860if [ "$CFG_GUI" = "no" ]; then
     6861    QT_CONFIG="$QT_CONFIG no-gui"
     6862else
     6863    QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_GUI"
     6864fi
     6865
     6866
     6867if [ "x$PLATFORM_MAC" = "xyes" ] && [ "$XPLATFORM_MINGW" != "yes" ]; then
    62166868    #On Mac we implicitly link against libz, so we
    62176869    #never use the 3rdparty stuff.
     
    62246876fi
    62256877
     6878if [ "$CFG_S60" = "yes" ]; then
     6879    QT_CONFIG="$QT_CONFIG s60"
     6880fi
     6881
     6882if [ "$CFG_SYMBIAN_DEFFILES" = "yes" ]; then
     6883    QTCONFIG_CONFIG="$QTCONFIG_CONFIG def_files"
     6884else
     6885    QTCONFIG_CONFIG="$QTCONFIG_CONFIG def_files_disabled"
     6886fi
     6887
    62266888[ "$CFG_NIS" = "yes" ] && QT_CONFIG="$QT_CONFIG nis"
    62276889[ "$CFG_CUPS" = "yes" ] && QT_CONFIG="$QT_CONFIG cups"
    62286890[ "$CFG_ICONV" = "yes" ] && QT_CONFIG="$QT_CONFIG iconv"
     6891[ "$CFG_ICONV" = "sun" ] && QT_CONFIG="$QT_CONFIG sun-libiconv"
    62296892[ "$CFG_ICONV" = "gnu" ] && QT_CONFIG="$QT_CONFIG gnu-libiconv"
    62306893[ "$CFG_GLIB" = "yes" ] && QT_CONFIG="$QT_CONFIG glib"
     
    62446907        QT_CONFIG="$QT_CONFIG xshape"
    62456908    fi
     6909    if [ "$CFG_XVIDEO" = "yes" ]; then
     6910        QT_CONFIG="$QT_CONFIG xvideo"
     6911    fi
    62466912    if [ "$CFG_XSYNC" = "yes" ]; then
    62476913        QT_CONFIG="$QT_CONFIG xsync"
     
    62976963       QMAKE_CONFIG="$QMAKE_CONFIG absolute_library_soname"
    62986964    fi
    6299 elif [ -z "`getQMakeConf \"$XQMAKESPEC\" | grep QMAKE_RPATH | awk '{print $3;}'`" ]; then
     6965elif [ -z "`getQMakeConf \"$XQMAKESPEC\" | $AWK '/QMAKE_(LFLAGS_)?RPATH/ {print $3;}'`" ]; then
    63006966    if [ -n "$RPATH_FLAGS" ]; then
    63016967        echo
    6302         echo "ERROR: -R cannot be used on this platform as \$QMAKE_RPATH is"
     6968        echo "ERROR: -R cannot be used on this platform as \$QMAKE_LFLAGS_RPATH is"
    63036969        echo "       undefined."
    63046970        echo
     
    63286994if [ "$PLATFORM_QWS" = "yes" ]; then
    63296995    COMPILER=`echo $XPLATFORM | cut -f 3- -d-`
     6996elif [ "$XPLATFORM" != "$PLATFORM" ]; then
     6997    COMPILER=`echo $XPLATFORM | cut -f 2- -d-`
    63306998else
    63316999    COMPILER=`echo $PLATFORM | cut -f 2- -d-`
     
    63397007fi
    63407008
     7009if [ "$XPLATFORM_MINGW" = "yes" ]; then
     7010    # mkspecs/features/win32/default_pre.prf sets "no-rtti".
     7011    # Follow default behavior of configure.exe by overriding with "rtti".
     7012    QTCONFIG_CONFIG="$QTCONFIG_CONFIG rtti"
     7013fi
     7014
    63417015if [ "$CFG_ALSA" = "yes" ]; then
    63427016    QT_CONFIG="$QT_CONFIG alsa"
     7017fi
     7018
     7019if [ "$CFG_PULSEAUDIO" = "yes" ]; then
     7020    QT_CONFIG="$QT_CONFIG pulseaudio"
     7021fi
     7022
     7023if [ "$CFG_COREWLAN" = "yes" ]; then
     7024    QT_CONFIG="$QT_CONFIG corewlan"
     7025fi
     7026
     7027if [ "$CFG_ICD" = "yes" ]; then
     7028    QT_CONFIG="$QT_CONFIG icd"
    63437029fi
    63447030
     
    64087094                canBuildQtConcurrent="no"
    64097095                ;;
    6410             5.9)
     7096            5.*)
    64117097                canBuildWebKit="no"
    64127098                canBuildQtConcurrent="no"
     
    64617147        canBuildQtConcurrent="no"
    64627148        ;;
     7149    symbian/*-gcce)
     7150        canBuildWebKit="no"
     7151        canBuildQtConcurrent="no"
     7152        ;;
     7153    symbian/*-armcc)
     7154        canBuildQtConcurrent="no"
     7155        ;;
    64637156esac
     7157
     7158if [ "$CFG_GUI" = "no" ]; then
     7159    # WebKit requires QtGui
     7160    canBuildWebKit="no"
     7161fi
     7162
     7163if [ "$CFG_SHARED" = "no" ]; then
     7164    echo
     7165    echo "WARNING: Using static linking will disable the WebKit module."
     7166    echo
     7167    canBuildWebKit="no"
     7168fi
    64647169
    64657170CFG_CONCURRENT="yes"
     
    64947199fi
    64957200
     7201if [ "$CFG_SVG" = "auto" ]; then
     7202    CFG_SVG=$CFG_GUI
     7203fi
     7204
     7205if [ "$CFG_SVG" = "yes" ] && [ "$CFG_GUI" = "no" ]; then
     7206    echo "QtSvg requested, but it can't be built without QtGui"
     7207    exit 1
     7208fi
     7209
    64967210if [ "$CFG_SVG" = "yes" ]; then
    64977211    QT_CONFIG="$QT_CONFIG svg"
     
    65007214fi
    65017215
    6502 if [ "$CFG_DECLARATIVE" = "yes" ]; then
    6503     QT_CONFIG="$QT_CONFIG declarative"
    6504 else
    6505     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_DECLARATIVE"
    6506 fi
    6507 
    65087216if [ "$CFG_WEBKIT" = "auto" ]; then
    65097217    CFG_WEBKIT="$canBuildWebKit"
    65107218fi
    65117219
    6512 if [ "$CFG_WEBKIT" = "yes" ]; then
    6513     QT_CONFIG="$QT_CONFIG webkit"
     7220if [ "$CFG_WEBKIT" != "no" ]; then
     7221    # This include takes care of adding "webkit" to QT_CONFIG.
     7222    cp -f "$relpath/src/3rdparty/webkit/WebKit/qt/qt_webkit_version.pri" "$outpath/mkspecs/modules/qt_webkit_version.pri"
    65147223    # The reason we set CFG_WEBKIT, is such that the printed overview of what will be enabled, shows correctly.
    6515     CFG_WEBKIT="yes"
     7224    if [ "$CFG_WEBKIT" = "debug" ]; then
     7225        QMAKE_CONFIG="$QMAKE_CONFIG webkit-debug"
     7226    fi
    65167227else
    6517     CFG_WEBKIT="no"
     7228    rm -f "$outpath/mkspecs/modules/qt_webkit_version.pri"
    65187229    QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_WEBKIT"
    65197230fi
     
    65347245fi
    65357246if [ "$CFG_SCRIPTTOOLS" = "auto" -a "$CFG_SCRIPT" != "no" ]; then
    6536     CFG_SCRIPTTOOLS="yes"
     7247    case "$XPLATFORM" in
     7248    symbian*)
     7249        CFG_SCRIPTTOOLS="no"
     7250        ;;
     7251    *)
     7252        CFG_SCRIPTTOOLS="yes"
     7253        ;;
     7254    esac
    65377255elif [ "$CFG_SCRIPT" = "no" ]; then
    65387256    CFG_SCRIPTTOOLS="no"
     
    65437261else
    65447262    QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SCRIPTTOOLS"
     7263fi
     7264
     7265
     7266if [ "$CFG_DECLARATIVE" = "yes" ]; then
     7267    if [ "$CFG_SCRIPT" = "no" -o "$CFG_GUI" = "no" ]; then
     7268        echo "Error: QtDeclarative was requested, but it can't be built due to QtScript or QtGui being disabled."
     7269        exit 1
     7270    fi
     7271fi
     7272if [ "$CFG_DECLARATIVE" = "auto" ]; then
     7273    if [ "$CFG_SCRIPT" = "no" -o "$CFG_GUI" = "no" ]; then
     7274            CFG_DECLARATIVE=no
     7275    else
     7276            CFG_DECLARATIVE=yes
     7277    fi
     7278fi
     7279
     7280if [ "$CFG_DECLARATIVE" = "yes" ]; then
     7281    QT_CONFIG="$QT_CONFIG declarative"
     7282    if [ "$CFG_DECLARATIVE_DEBUG" = "no" ]; then
     7283        QCONFIG_FLAGS="$QCONFIG_FLAGS QDECLARATIVE_NO_DEBUG_PROTOCOL"
     7284    fi
     7285else
     7286    QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_DECLARATIVE"
    65457287fi
    65467288
     
    65707312# using the Xarch compiler option when supported (10.5 and up).  On 10.4 the
    65717313# deployment version is set to 10.4 globally using the QMAKE_MACOSX_DEPLOYMENT_TARGET
    6572 # env. variable. "-cocoa" on the command line means Cocoa is used in 32-bit mode also,
    6573 # in this case fall back on QMAKE_MACOSX_DEPLOYMENT_TARGET which will be set to 10.5.
    6574 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_XARCH" != "no" ] && [ "$COMMANDLINE_MAC_COCOA" != "yes" ]; then
     7314# env. variable.
     7315if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_XARCH" != "no" ] ; then
    65757316    if echo "$CFG_MAC_ARCHS" | grep '\<x86\>' > /dev/null 2>&1; then
    65767317        QMakeVar add QMAKE_CFLAGS "-Xarch_i386 -mmacosx-version-min=10.4"
     
    66057346# some compilers generate binary incompatible code between different versions,
    66067347# so we need to generate a build key that is different between these compilers
     7348COMPAT_COMPILER=
    66077349case "$COMPILER" in
    66087350g++*)
     
    66377379    esac
    66387380    [ '!' -z "$COMPILER_VERSION" ] && COMPILER="g++-${COMPILER_VERSION}"
     7381    ;;
     7382icc*)
     7383    # The Intel CC compiler on Unix systems matches the ABI of the g++
     7384    # that is found on PATH
     7385    COMPAT_COMPILER="icc"
     7386    COMPILER="g++-4"
     7387    case "`g++ -dumpversion` 2>/dev/null" in
     7388    2.95.*)
     7389        COMPILER="g++-2.95.*"
     7390        ;;
     7391    3.*)
     7392a        COMPILER="g++-3.*"
     7393        ;;
     7394    *)
     7395        ;;
     7396    esac
    66397397    ;;
    66407398*)
     
    66517409#
    66527410#   Different edition modules:
    6653 #     network canvas table xml opengl sql
     7411#     gui network canvas table xml opengl sql
    66547412#
    66557413# Things that do not affect the Qt API/ABI:
     
    67467504# extract the operating system from the XPLATFORM
    67477505TARGET_OPERATING_SYSTEM=`echo $XPLATFORM | cut -f 2- -d/ | cut -f -1 -d-`
     7506case "$XPLATFORM" in
     7507symbian*)
     7508    QT_BUILD_KEY_SYSTEM_PART="Symbian"
     7509    ;;
     7510*)
     7511    QT_BUILD_KEY_SYSTEM_PART="$CFG_ARCH $TARGET_OPERATING_SYSTEM $COMPILER"
     7512    ;;
     7513esac
    67487514
    67497515# when cross-compiling, don't include build-host information (build key is target specific)
    6750 QT_BUILD_KEY="$CFG_USER_BUILD_KEY $CFG_ARCH $TARGET_OPERATING_SYSTEM $COMPILER $BUILD_OPTIONS"
     7516QT_BUILD_KEY="$CFG_USER_BUILD_KEY $QT_BUILD_KEY_SYSTEM_PART $BUILD_OPTIONS"
    67517517if [ -n "$QT_NAMESPACE" ]; then
    67527518    QT_BUILD_KEY="$QT_BUILD_KEY $QT_NAMESPACE"
     
    67727538    fi
    67737539fi
     7540
     7541# is this compiler compatible with some other "standard" build key
     7542QT_BUILD_KEY_COMPAT_COMPILER=
     7543if [ ! -z "$COMPAT_COMPILER" ]; then
     7544    QT_BUILD_KEY_COMPAT_COMPILER="$CFG_USER_BUILD_KEY $CFG_ARCH $TARGET_OPERATING_SYSTEM $COMPAT_COMPILER $BUILD_OPTIONS"
     7545    if [ -n "$QT_NAMESPACE" ]; then
     7546        QT_BUILD_KEY_COMPAT_COMPILER="$QT_BUILD_KEY_COMPAT_COMPILER $QT_NAMESPACE"
     7547    fi
     7548fi
     7549
    67747550# strip out leading/trailing/extra whitespace
    67757551QT_BUILD_KEY=`echo $QT_BUILD_KEY | sed -e "s,  *, ,g" -e "s,^  *,," -e "s,  *$,,"`
    67767552QT_BUILD_KEY_COMPAT=`echo $QT_BUILD_KEY_COMPAT | sed -e "s,  *, ,g" -e "s,^  *,," -e "s,  *$,,"`
     7553QT_BUILD_KEY_COMPAT_COMPILER=`echo $QT_BUILD_KEY_COMPAT_COMPILER | sed -e "s,  *, ,g" -e "s,^  *,," -e "s,  *$,,"`
    67777554
    67787555#-------------------------------------------------------------------------------
     
    67877564    tmpconfig="$outpath/src/corelib/global/qconfig.h.new"
    67887565    echo "#ifndef QT_BOOTSTRAPPED" >"$tmpconfig"
    6789     cat "$relpath/src/corelib/global/qconfig-$CFG_QCONFIG.h" >>"$tmpconfig"
     7566    if [ -f "$relpath/src/corelib/global/qconfig-$CFG_QCONFIG.h" ]; then
     7567        cat "$relpath/src/corelib/global/qconfig-$CFG_QCONFIG.h" >>"$tmpconfig"
     7568    elif [ -f `"$relpath/config.tests/unix/makeabs" "${CFG_QCONFIG}"` ]; then
     7569        cat `"$relpath/config.tests/unix/makeabs" "${CFG_QCONFIG}"` >>"$tmpconfig"
     7570    fi
    67907571    echo "#endif" >>"$tmpconfig"
    67917572    ;;
     
    68177598if [ -n "$QT_BUILD_KEY_COMPAT" ]; then
    68187599    echo "#define QT_BUILD_KEY_COMPAT \"$QT_BUILD_KEY_COMPAT\"" \
     7600        >> "$outpath/src/corelib/global/qconfig.h.new"
     7601fi
     7602if [ -n "$QT_BUILD_KEY_COMPAT_COMPILER" ]; then
     7603    echo "#define QT_BUILD_KEY_COMPAT2 \"$QT_BUILD_KEY_COMPAT_COMPILER\"" \
    68197604        >> "$outpath/src/corelib/global/qconfig.h.new"
    68207605fi
     
    68877672[ '!' -z "$LicenseKeyExt" ] && echo "#define QT_PRODUCT_LICENSEKEY \"$LicenseKeyExt\"" >>"$outpath/src/corelib/global/qconfig.h.new"
    68887673
    6889 if [ "$CFG_LARGEFILE" = "yes" ]; then
     7674if [ "$CFG_LARGEFILE" = "yes" ] && [ "$XPLATFORM_MINGW" != "yes" ]; then
    68907675    echo "#define QT_LARGEFILE_SUPPORT 64" >>"$outpath/src/corelib/global/qconfig.h.new"
    68917676fi
    68927677
    68937678# if both carbon and cocoa are specified, enable the autodetection code.
    6894 if [ "$CFG_MAC_COCOA" = "yes" -a "$CFG_MAC_CARBON" = "yes" ]; then
    6895     echo "#define AUTODETECT_COCOA 1" >>"$outpath/src/corelib/global/qconfig.h.new"
    6896 elif [ "$CFG_MAC_COCOA" = "yes" ]; then
     7679if [ "$PLATFORM_MAC" = "yes" -a "$CFG_MAC_COCOA" = "yes" -a "$CFG_MAC_CARBON" = "yes" ]; then
     7680    echo "#define QT_AUTODETECT_COCOA 1" >>"$outpath/src/corelib/global/qconfig.h.new"
     7681elif [ "$PLATFORM_MAC" = "yes" -a "$CFG_MAC_COCOA" = "yes" ]; then
    68977682    echo "#define QT_MAC_USE_COCOA 1" >>"$outpath/src/corelib/global/qconfig.h.new"
    68987683fi
     
    70007785[ "$CFG_MNG" != "yes" ]      && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_IMAGEFORMAT_MNG"
    70017786[ "$CFG_ZLIB" != "yes" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ZLIB"
     7787[ "$CFG_S60" != "yes" ]      && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_S60"
    70027788[ "$CFG_EXCEPTIONS" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_EXCEPTIONS"
    70037789[ "$CFG_IPV6" = "no" ]       && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_IPV6"
     
    70097795    [ "$CFG_GRAPHICS_SYSTEM" = "opengl" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_OPENGL"
    70107796    [ "$CFG_GRAPHICS_SYSTEM" = "openvg" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_OPENVG"
     7797    [ "$CFG_GRAPHICS_SYSTEM" = "runtime" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_RUNTIME"
    70117798fi
    70127799
     
    70387825[ "$CFG_MITSHM" = "no" ]    && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_MITSHM"
    70397826[ "$CFG_XSHAPE" = "no" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SHAPE"
     7827[ "$CFG_XVIDEO" = "no" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XVIDEO"
    70407828[ "$CFG_XSYNC" = "no" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XSYNC"
    70417829[ "$CFG_XINPUT" = "no" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XINPUT QT_NO_TABLET"
     
    70477835[ "$CFG_XINPUT" = "runtime" ]    && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XINPUT"
    70487836[ "$CFG_ALSA" = "no" ]           && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ALSA"
     7837[ "$CFG_PULSEAUDIO" = "no" ]          && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_PULSEAUDIO"
     7838[ "$CFG_COREWLAN" = "no" ]       && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_COREWLAN"
     7839[ "$CFG_ICD" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ICD"
    70497840
    70507841# sort QCONFIG_FLAGS for neatness if we can
     
    70527843QCONFIG_FLAGS=`echo $QCONFIG_FLAGS`
    70537844
     7845if echo $XPLATFORM | grep symbian >/dev/null
     7846then
     7847    # Enable Symbian DLLs and export rules.
     7848    # We cannot use Linux's default export rules since they export everything.
     7849    QCONFIG_FLAGS="$QCONFIG_FLAGS QT_DLL"
     7850    # Disable non-working features.
     7851    QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CONCURRENT QT_NO_QFUTURE QT_NO_CRASHHANDLER QT_NO_PRINTER QT_NO_SYSTEMTRAYICON"
     7852fi
     7853
    70547854if [ -n "$QCONFIG_FLAGS" ]; then
     7855cat >>"$outpath/src/corelib/global/qconfig.h.new" << EOF
     7856#ifndef QT_BOOTSTRAPPED
     7857
     7858EOF
    70557859    for cfg in $QCONFIG_FLAGS; do
    70567860        cfgd=`echo $cfg | sed 's/=.*$//'` # trim pushed 'Foo=Bar' defines
     
    70857889        fi
    70867890    done
     7891cat >>"$outpath/src/corelib/global/qconfig.h.new" << EOF
     7892#endif // QT_BOOTSTRAPPED
     7893
     7894EOF
    70877895fi
    70887896
     
    70907898cat >>"$outpath/src/corelib/global/qconfig.h.new" << EOF
    70917899#define QT_VISIBILITY_AVAILABLE
     7900
     7901EOF
     7902fi
     7903
     7904if [ -n "$QT_LIBINFIX" ]; then
     7905cat >>"$outpath/src/corelib/global/qconfig.h.new" << EOF
     7906#define QT_LIBINFIX "$QT_LIBINFIX"
     7907
     7908EOF
     7909fi
     7910
     7911if [ -n "$CFG_RUNTIME_SYSTEM" ]; then
     7912cat >>"$outpath/src/corelib/global/qconfig.h.new" << EOF
     7913#define QT_DEFAULT_RUNTIME_SYSTEM "$CFG_RUNTIME_SYSTEM"
    70927914
    70937915EOF
     
    71027924    chmod -w "$outpath/src/corelib/global/qconfig.h"
    71037925    for conf in "$outpath/include/QtCore/qconfig.h" "$outpath/include/Qt/qconfig.h"; do
    7104         if [ '!' -f "$conf" ]; then
     7926        if echo "$XPLATFORM" | grep "symbian-sbsv2" > /dev/null 2>&1 ; then
     7927            [ -e "$conf" ] && rm -rf "$conf"
     7928            cp -a "$outpath/src/corelib/global/qconfig.h" "$conf"
     7929        elif [ '!' -f "$conf" ]; then
    71057930            ln -s "$outpath/src/corelib/global/qconfig.h" "$conf"
    71067931        fi
    71077932    done
    71087933fi
    7109 
    71107934#-------------------------------------------------------------------------------
    71117935# save configuration into qconfig.pri
     
    71447968fi
    71457969
     7970if [ -z "$QT_CFLAGS_FPU" ]; then
     7971    if echo "$XPLATFORM" | grep "symbian-sbsv2" > /dev/null 2>&1; then
     7972        QT_CFLAGS_FPU=softvfp
     7973    fi
     7974fi
     7975
    71467976# Make the application arch follow the Qt arch for single arch builds.
    71477977# (for multiple-arch builds, set CONFIG manually in the application .pro file)
     
    71778007    echo "QT_GCC_PATCH_VERSION = $QT_GCC_PATCH_VERSION" >> "$QTCONFIG.tmp"
    71788008fi
     8009if [ -n "$QT_CFLAGS_FPU" ]; then
     8010    echo "#Qt for symbian FPU settings" >> "$QTCONFIG.tmp"
     8011    echo "MMP_RULES += \"ARMFPU $QT_CFLAGS_FPU\"" >> "$QTCONFIG.tmp"
     8012fi
     8013
    71798014# replace qconfig.pri if it differs from the newly created temp file
    71808015if cmp -s "$QTCONFIG.tmp" "$QTCONFIG"; then
     
    72108045
    72118046# Ensure we can link to uninistalled libraries
    7212 if linkerSupportsFlag -rpath-link "$outpath/lib"; then
    7213     echo "QMAKE_LFLAGS    += -Wl,-rpath-link,\$\$QT_BUILD_TREE/lib" >> "$CACHEFILE.tmp"
     8047if [ "$XPLATFORM_MINGW" != "yes" ] && linkerSupportsFlag -rpath-link "$outpath/lib"; then
     8048    echo "QMAKE_LFLAGS    = -Wl,-rpath-link,\$\$QT_BUILD_TREE/lib \$\$QMAKE_LFLAGS" >> "$CACHEFILE.tmp"
    72148049fi
    72158050
     
    72348069if [ -n "$QT_LFLAGS_ODBC" ]; then
    72358070    echo "QT_LFLAGS_ODBC   = $QT_LFLAGS_ODBC" >> "$CACHEFILE.tmp"
     8071fi
     8072if [ -n "$QT_LFLAGS_TDS" ]; then
     8073    echo "QT_LFLAGS_TDS   = $QT_LFLAGS_TDS" >> "$CACHEFILE.tmp"
    72368074fi
    72378075
     
    73348172esac
    73358173
    7336 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_DWARF2" = "no" ]  && [ "$CFG_WEBKIT" = "yes" ] && [ "$CFG_DEBUG_RELEASE" = "yes" ]; then
     8174if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_DWARF2" = "no" ]  && [ "$CFG_WEBKIT" != "no" ] && [ "$CFG_DEBUG_RELEASE" = "yes" ]; then
    73378175    cat <<EOF
    73388176        WARNING: DWARF2 debug symbols are not enabled. Linking webkit
     
    73838221    echo $ECHO_N "qmake vars .......... $ECHO_C"
    73848222    cat "$QMAKE_VARS_FILE" | tr '\n' ' '
    7385     echo "qmake switches ...... $QMAKE_SWITCHES"
    7386 fi
    7387 
    7388 [ "$CFG_INCREMENTAL" = "yes" ] && [ '!' -z "$INCREMENTAL" ] && echo "Incremental ......... $INCREMENTAL"
    7389 echo "Build ............... $CFG_BUILD_PARTS"
    7390 echo "Configuration ....... $QMAKE_CONFIG $QT_CONFIG"
     8223    echo "qmake switches ......... $QMAKE_SWITCHES"
     8224fi
     8225
     8226[ "$CFG_INCREMENTAL" = "yes" ] && [ '!' -z "$INCREMENTAL" ] && echo "Incremental ............ $INCREMENTAL"
     8227echo "Build .................. $CFG_BUILD_PARTS"
     8228echo "Configuration .......... $QMAKE_CONFIG $QT_CONFIG"
    73918229if [ "$CFG_DEBUG_RELEASE" = "yes" ]; then
    7392    echo "Debug ............... yes (combined)"
     8230   echo "Debug .................. yes (combined)"
    73938231   if [ "$CFG_DEBUG" = "yes" ]; then
    7394        echo "Default Link ........ debug"
     8232       echo "Default Link ........... debug"
    73958233   else
    7396        echo "Default Link ........ release"
     8234       echo "Default Link ........... release"
    73978235   fi
    73988236else
    7399    echo "Debug ............... $CFG_DEBUG"
    7400 fi
    7401 echo "Qt 3 compatibility .. $CFG_QT3SUPPORT"
    7402 [ "$CFG_DBUS" = "no" ]     && echo "QtDBus module ....... no"
    7403 [ "$CFG_DBUS" = "yes" ]    && echo "QtDBus module ....... yes (run-time)"
    7404 [ "$CFG_DBUS" = "linked" ] && echo "QtDBus module ....... yes (linked)"
    7405 echo "QtConcurrent code.... $CFG_CONCURRENT"
    7406 echo "QtScript module ..... $CFG_SCRIPT"
    7407 echo "QtScriptTools module  $CFG_SCRIPTTOOLS"
    7408 echo "QtXmlPatterns module  $CFG_XMLPATTERNS"
    7409 echo "Phonon module ....... $CFG_PHONON"
    7410 echo "Multimedia module ... $CFG_MULTIMEDIA"
    7411 echo "SVG module .......... $CFG_SVG"
    7412 echo "WebKit module ....... $CFG_WEBKIT"
    7413 if [ "$CFG_WEBKIT" = "yes" ]; then
     8237   echo "Debug .................. $CFG_DEBUG"
     8238fi
     8239echo "Qt 3 compatibility ..... $CFG_QT3SUPPORT"
     8240[ "$CFG_DBUS" = "no" ]     && echo "QtDBus module .......... no"
     8241[ "$CFG_DBUS" = "yes" ]    && echo "QtDBus module .......... yes (run-time)"
     8242[ "$CFG_DBUS" = "linked" ] && echo "QtDBus module .......... yes (linked)"
     8243echo "QtConcurrent code ...... $CFG_CONCURRENT"
     8244echo "QtGui module ........... $CFG_GUI"
     8245echo "QtScript module ........ $CFG_SCRIPT"
     8246echo "QtScriptTools module ... $CFG_SCRIPTTOOLS"
     8247echo "QtXmlPatterns module ... $CFG_XMLPATTERNS"
     8248echo "Phonon module .......... $CFG_PHONON"
     8249echo "Multimedia module ...... $CFG_MULTIMEDIA"
     8250echo "SVG module ............. $CFG_SVG"
     8251case "$CFG_WEBKIT" in
     8252    yes)   echo "WebKit module .......... yes" ;;
     8253    debug) echo "WebKit module .......... yes (debug)" ;;
     8254    no)    echo "WebKit module .......... no" ;;
     8255esac
     8256if [ "$CFG_WEBKIT" != "no" ]; then
    74148257    if [ "$CFG_JAVASCRIPTCORE_JIT" = "auto" ]; then
    7415         echo "JavaScriptCore JIT .. To be decided by JavaScriptCore"
    7416     else
    7417         echo "JavaScriptCore JIT .. $CFG_JAVASCRIPTCORE_JIT"
    7418     fi
    7419 fi
    7420 echo "Declarative module .. $CFG_DECLARATIVE"
    7421 echo "STL support ......... $CFG_STL"
    7422 echo "PCH support ......... $CFG_PRECOMPILE"
    7423 echo "MMX/3DNOW/SSE/SSE2..  ${CFG_MMX}/${CFG_3DNOW}/${CFG_SSE}/${CFG_SSE2}"
     8258        echo "JavaScriptCore JIT ..... To be decided by JavaScriptCore"
     8259    else
     8260        echo "JavaScriptCore JIT ..... $CFG_JAVASCRIPTCORE_JIT"
     8261    fi
     8262fi
     8263echo "Declarative module ..... $CFG_DECLARATIVE"
     8264echo "Declarative debugging ...$CFG_DECLARATIVE_DEBUG"
     8265echo "Support for S60 ........ $CFG_S60"
     8266echo "Symbian DEF files ...... $CFG_SYMBIAN_DEFFILES"
     8267echo "STL support ............ $CFG_STL"
     8268echo "PCH support ............ $CFG_PRECOMPILE"
     8269echo "MMX/3DNOW/SSE/SSE2/SSE3. ${CFG_MMX}/${CFG_3DNOW}/${CFG_SSE}/${CFG_SSE2}/${CFG_SSE3}"
     8270echo "SSSE3/SSE4.1/SSE4.2..... ${CFG_SSSE3}/${CFG_SSE4_1}/${CFG_SSE4_2}"
     8271echo "AVX..................... ${CFG_AVX}"
    74248272if [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]; then
    7425     echo "iWMMXt support ...... ${CFG_IWMMXT}"
    7426     echo "NEON support ........ ${CFG_NEON}"
    7427 fi
    7428 [ "${PLATFORM_QWS}" != "yes" ] && echo "Graphics System ..... $CFG_GRAPHICS_SYSTEM"
    7429 echo "IPv6 support ........ $CFG_IPV6"
    7430 echo "IPv6 ifname support . $CFG_IPV6IFNAME"
    7431 echo "getaddrinfo support . $CFG_GETADDRINFO"
    7432 echo "getifaddrs support .. $CFG_GETIFADDRS"
    7433 echo "Accessibility ....... $CFG_ACCESSIBILITY"
    7434 echo "NIS support ......... $CFG_NIS"
    7435 echo "CUPS support ........ $CFG_CUPS"
    7436 echo "Iconv support ....... $CFG_ICONV"
    7437 echo "Glib support ........ $CFG_GLIB"
    7438 echo "GStreamer support ... $CFG_GSTREAMER"
    7439 echo "Large File support .. $CFG_LARGEFILE"
    7440 echo "GIF support ......... $CFG_GIF"
     8273    echo "iWMMXt support ......... ${CFG_IWMMXT}"
     8274    echo "NEON support ........... ${CFG_NEON}"
     8275fi
     8276[ "${PLATFORM_QWS}" != "yes" ] && echo "Graphics System ........ $CFG_GRAPHICS_SYSTEM"
     8277echo "IPv6 support ........... $CFG_IPV6"
     8278echo "IPv6 ifname support .... $CFG_IPV6IFNAME"
     8279echo "getaddrinfo support .... $CFG_GETADDRINFO"
     8280echo "getifaddrs support ..... $CFG_GETIFADDRS"
     8281echo "Accessibility .......... $CFG_ACCESSIBILITY"
     8282echo "NIS support ............ $CFG_NIS"
     8283echo "CUPS support ........... $CFG_CUPS"
     8284echo "Iconv support .......... $CFG_ICONV"
     8285echo "Glib support ........... $CFG_GLIB"
     8286echo "GStreamer support ...... $CFG_GSTREAMER"
     8287echo "PulseAudio support ..... $CFG_PULSEAUDIO"
     8288echo "Large File support ..... $CFG_LARGEFILE"
     8289echo "GIF support ............ $CFG_GIF"
    74418290if [ "$CFG_TIFF" = "no" ]; then
    7442     echo "TIFF support ........ $CFG_TIFF"
     8291    echo "TIFF support ........... $CFG_TIFF"
    74438292else
    7444     echo "TIFF support ........ $CFG_TIFF ($CFG_LIBTIFF)"
     8293    echo "TIFF support ........... $CFG_TIFF ($CFG_LIBTIFF)"
    74458294fi
    74468295if [ "$CFG_JPEG" = "no" ]; then
    7447     echo "JPEG support ........ $CFG_JPEG"
     8296    echo "JPEG support ........... $CFG_JPEG"
    74488297else
    7449     echo "JPEG support ........ $CFG_JPEG ($CFG_LIBJPEG)"
     8298    echo "JPEG support ........... $CFG_JPEG ($CFG_LIBJPEG)"
    74508299fi
    74518300if [ "$CFG_PNG" = "no" ]; then
    7452     echo "PNG support ......... $CFG_PNG"
     8301    echo "PNG support ............ $CFG_PNG"
    74538302else
    7454     echo "PNG support ......... $CFG_PNG ($CFG_LIBPNG)"
     8303    echo "PNG support ............ $CFG_PNG ($CFG_LIBPNG)"
    74558304fi
    74568305if [ "$CFG_MNG" = "no" ]; then
    7457     echo "MNG support ......... $CFG_MNG"
     8306    echo "MNG support ............ $CFG_MNG"
    74588307else
    7459     echo "MNG support ......... $CFG_MNG ($CFG_LIBMNG)"
    7460 fi
    7461 echo "zlib support ........ $CFG_ZLIB"
    7462 echo "Session management .. $CFG_SM"
     8308    echo "MNG support ............ $CFG_MNG ($CFG_LIBMNG)"
     8309fi
     8310echo "zlib support ........... $CFG_ZLIB"
     8311echo "Session management ..... $CFG_SM"
    74638312if [ "$PLATFORM_QWS" = "yes" ]; then
    7464     echo "Embedded support .... $CFG_EMBEDDED"
     8313    echo "Embedded support ....... $CFG_EMBEDDED"
    74658314    if [ "$CFG_QWS_FREETYPE" = "auto" ]; then
    7466         echo "Freetype2 support ... $CFG_QWS_FREETYPE ($CFG_LIBFREETYPE)"
    7467     else
    7468         echo "Freetype2 support ... $CFG_QWS_FREETYPE"
     8315        echo "Freetype2 support ...... $CFG_QWS_FREETYPE ($CFG_LIBFREETYPE)"
     8316    else
     8317        echo "Freetype2 support ...... $CFG_QWS_FREETYPE"
    74698318    fi
    74708319    # Normalize the decoration output first
    74718320    CFG_GFX_ON=`echo ${CFG_GFX_ON}`
    74728321    CFG_GFX_PLUGIN=`echo ${CFG_GFX_PLUGIN}`
    7473     echo "Graphics (qt) ....... ${CFG_GFX_ON}"
    7474     echo "Graphics (plugin) ... ${CFG_GFX_PLUGIN}"
     8322    echo "Graphics (qt) .......... ${CFG_GFX_ON}"
     8323    echo "Graphics (plugin) ...... ${CFG_GFX_PLUGIN}"
    74758324    CFG_DECORATION_ON=`echo ${CFG_DECORATION_ON}`
    74768325    CFG_DECORATION_PLUGIN=`echo ${CFG_DECORATION_PLUGIN}`
    7477     echo "Decorations (qt) .... $CFG_DECORATION_ON"
    7478     echo "Decorations (plugin) $CFG_DECORATION_PLUGIN"
     8326    echo "Decorations (qt) ....... $CFG_DECORATION_ON"
     8327    echo "Decorations (plugin) ... $CFG_DECORATION_PLUGIN"
    74798328    CFG_KBD_ON=`echo ${CFG_KBD_ON}`
    74808329    CFG_KBD_PLUGIN=`echo ${CFG_KBD_PLUGIN}`
    7481     echo "Keyboard driver (qt). ${CFG_KBD_ON}"
    7482     echo "Keyboard driver (plugin) ${CFG_KBD_PLUGIN}"
     8330    echo "Keyboard driver (qt) ... ${CFG_KBD_ON}"
     8331    echo "Keyboard driver (plugin) .. ${CFG_KBD_PLUGIN}"
    74838332    CFG_MOUSE_ON=`echo ${CFG_MOUSE_ON}`
    74848333    CFG_MOUSE_PLUGIN=`echo ${CFG_MOUSE_PLUGIN}`
    7485     echo "Mouse driver (qt) ... $CFG_MOUSE_ON"
    7486     echo "Mouse driver (plugin) $CFG_MOUSE_PLUGIN"
     8334    echo "Mouse driver (qt) ...... $CFG_MOUSE_ON"
     8335    echo "Mouse driver (plugin) .. $CFG_MOUSE_PLUGIN"
    74878336fi
    74888337if [ "$CFG_OPENGL" = "desktop" ]; then
    7489     echo "OpenGL support ...... yes (Desktop OpenGL)"
     8338    echo "OpenGL support ......... yes (Desktop OpenGL)"
    74908339elif [ "$CFG_OPENGL" = "es1" ]; then
    7491     echo "OpenGL support ...... yes (OpenGL ES 1.x Common profile)"
    7492 elif [ "$CFG_OPENGL" = "es1cl" ]; then
    7493     echo "OpenGL support ...... yes (OpenGL ES 1.x Common Lite profile)"
     8340    echo "OpenGL support ......... yes (OpenGL ES 1.x Common profile)"
    74948341elif [ "$CFG_OPENGL" = "es2" ]; then
    7495     echo "OpenGL support ...... yes (OpenGL ES 2.x)"
     8342    echo "OpenGL support ......... yes (OpenGL ES 2.x)"
    74968343else
    7497     echo "OpenGL support ...... no"
     8344    echo "OpenGL support ......... no"
    74988345fi
    74998346if [ "$CFG_EGL" != "no" ]; then
    75008347    if [ "$CFG_EGL_GLES_INCLUDES" != "no" ]; then
    7501         echo "EGL support ......... yes <GLES/egl.h>"
    7502     else
    7503         echo "EGL support ......... yes <EGL/egl.h>"
     8348        echo "EGL support ............ yes <GLES/egl.h>"
     8349    else
     8350        echo "EGL support ............ yes <EGL/egl.h>"
    75048351    fi
    75058352fi
    75068353if [ "$CFG_OPENVG" ]; then
    75078354    if [ "$CFG_OPENVG_SHIVA" = "yes" ]; then
    7508         echo "OpenVG support ...... ShivaVG"
    7509     else
    7510         echo "OpenVG support ...... $CFG_OPENVG"
     8355        echo "OpenVG support ......... ShivaVG"
     8356    else
     8357        echo "OpenVG support ......... $CFG_OPENVG"
    75118358    fi
    75128359fi
    75138360if [ "$PLATFORM_X11" = "yes" ]; then
    7514     echo "NAS sound support ... $CFG_NAS"
    7515     echo "XShape support ...... $CFG_XSHAPE"
    7516     echo "XSync support ....... $CFG_XSYNC"
    7517     echo "Xinerama support .... $CFG_XINERAMA"
    7518     echo "Xcursor support ..... $CFG_XCURSOR"
    7519     echo "Xfixes support ...... $CFG_XFIXES"
    7520     echo "Xrandr support ...... $CFG_XRANDR"
    7521     echo "Xrender support ..... $CFG_XRENDER"
    7522     echo "Xi support .......... $CFG_XINPUT"
    7523     echo "MIT-SHM support ..... $CFG_MITSHM"
    7524     echo "FontConfig support .. $CFG_FONTCONFIG"
    7525     echo "XKB Support ......... $CFG_XKB"
    7526     echo "immodule support .... $CFG_IM"
    7527     echo "GTK theme support ... $CFG_QGTKSTYLE"
    7528 fi
    7529 [ "$CFG_SQL_mysql" != "no" ] && echo "MySQL support ....... $CFG_SQL_mysql"
    7530 [ "$CFG_SQL_psql" != "no" ] && echo "PostgreSQL support .. $CFG_SQL_psql"
    7531 [ "$CFG_SQL_odbc" != "no" ] && echo "ODBC support ........ $CFG_SQL_odbc"
    7532 [ "$CFG_SQL_oci" != "no" ] && echo "OCI support ......... $CFG_SQL_oci"
    7533 [ "$CFG_SQL_tds" != "no" ] && echo "TDS support ......... $CFG_SQL_tds"
    7534 [ "$CFG_SQL_db2" != "no" ] && echo "DB2 support ......... $CFG_SQL_db2"
    7535 [ "$CFG_SQL_ibase" != "no" ] && echo "InterBase support ... $CFG_SQL_ibase"
    7536 [ "$CFG_SQL_sqlite2" != "no" ] && echo "SQLite 2 support .... $CFG_SQL_sqlite2"
    7537 [ "$CFG_SQL_sqlite" != "no" ] && echo "SQLite support ...... $CFG_SQL_sqlite ($CFG_SQLITE)"
     8361    echo "NAS sound support ...... $CFG_NAS"
     8362    echo "XShape support ......... $CFG_XSHAPE"
     8363    echo "XVideo support ......... $CFG_XVIDEO"
     8364    echo "XSync support .......... $CFG_XSYNC"
     8365    echo "Xinerama support ....... $CFG_XINERAMA"
     8366    echo "Xcursor support ........ $CFG_XCURSOR"
     8367    echo "Xfixes support ......... $CFG_XFIXES"
     8368    echo "Xrandr support ......... $CFG_XRANDR"
     8369    echo "Xrender support ........ $CFG_XRENDER"
     8370    echo "Xi support ............. $CFG_XINPUT"
     8371    echo "MIT-SHM support ........ $CFG_MITSHM"
     8372    echo "FontConfig support ..... $CFG_FONTCONFIG"
     8373    echo "XKB Support ............ $CFG_XKB"
     8374    echo "immodule support ....... $CFG_IM"
     8375    echo "GTK theme support ...... $CFG_QGTKSTYLE"
     8376fi
     8377[ "$CFG_SQL_mysql" != "no" ] && echo "MySQL support .......... $CFG_SQL_mysql"
     8378[ "$CFG_SQL_psql" != "no" ] && echo "PostgreSQL support ..... $CFG_SQL_psql"
     8379[ "$CFG_SQL_odbc" != "no" ] && echo "ODBC support ........... $CFG_SQL_odbc"
     8380[ "$CFG_SQL_oci" != "no" ] && echo "OCI support ............ $CFG_SQL_oci"
     8381[ "$CFG_SQL_tds" != "no" ] && echo "TDS support ............ $CFG_SQL_tds"
     8382[ "$CFG_SQL_db2" != "no" ] && echo "DB2 support ............ $CFG_SQL_db2"
     8383[ "$CFG_SQL_ibase" != "no" ] && echo "InterBase support ...... $CFG_SQL_ibase"
     8384[ "$CFG_SQL_sqlite2" != "no" ] && echo "SQLite 2 support ....... $CFG_SQL_sqlite2"
     8385[ "$CFG_SQL_sqlite" != "no" ] && echo "SQLite support ......... $CFG_SQL_sqlite ($CFG_SQLITE)"
    75388386
    75398387OPENSSL_LINKAGE=""
     
    75438391    OPENSSL_LINKAGE="(linked)"
    75448392fi
    7545 echo "OpenSSL support ..... $CFG_OPENSSL $OPENSSL_LINKAGE"
    7546 echo "Alsa support ........ $CFG_ALSA"
     8393echo "OpenSSL support ........ $CFG_OPENSSL $OPENSSL_LINKAGE"
     8394echo "Alsa support ........... $CFG_ALSA"
     8395if [ "$PLATFORM_MAC" = "yes" ]; then
     8396    echo "CoreWlan support ....... $CFG_COREWLAN"
     8397fi
     8398echo "ICD support ............ $CFG_ICD"
    75478399echo
    75488400
    7549 [ "$CFG_PTMALLOC" != "no" ] && echo "Use ptmalloc ........ $CFG_PTMALLOC"
     8401[ "$CFG_PTMALLOC" != "no" ] && echo "Use ptmalloc ........... $CFG_PTMALLOC"
    75508402
    75518403# complain about not being able to use dynamic plugins if we are using a static build
     
    75628414    echo "library names through OPENSSL_LIBS."
    75638415    echo "For example:"
    7564     echo "    ./configure -openssl-linked OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto'"
     8416    echo "    OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure -openssl-linked"
    75658417    echo
    75668418fi
    75678419if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_FRAMEWORK" = "yes" ] && [ "$CFG_DEBUG" = "yes" ] && [ "$CFG_DEBUG_RELEASE" = "no" ]; then
    75688420    echo
    7569     echo "NOTE: Mac OS X frameworks implicitly build debug and release Qt libraries."
     8421    echo "Error: debug-only framework builds are not supported. Configure with -no-framework"
     8422    echo "if you want a pure debug build."
    75708423    echo
     8424    exit 1
    75718425fi
    75728426
     
    75818435
    75828436echo "Finding project files. Please wait..."
    7583 "$outpath/bin/qmake" -prl -r "${relpath}/projects.pro"
    7584 if [ -f "${relpath}/projects.pro" ]; then
    7585     mkfile="${outpath}/Makefile"
    7586     [ -f "$mkfile" ] && chmod +w "$mkfile"
    7587     QTDIR="$outpath" "$outpath/bin/qmake" -spec "$XQMAKESPEC" "${relpath}/projects.pro" -o "$mkfile"
     8437if [ "$CFG_NOPROCESS" != "yes" ]; then
     8438    "$outpath/bin/qmake" -prl -r "${relpath}/projects.pro"
     8439    if [ -f "${relpath}/projects.pro" ]; then
     8440        mkfile="${outpath}/Makefile"
     8441        [ -f "$mkfile" ] && chmod +w "$mkfile"
     8442        QTDIR="$outpath" "$outpath/bin/qmake" -spec "$XQMAKESPEC" "${relpath}/projects.pro" -o "$mkfile"
     8443    fi
    75888444fi
    75898445
     
    77148570    case "$part" in
    77158571    tools) PART_ROOTS="$PART_ROOTS tools" ;;
    7716     libs) PART_ROOTS="$PART_ROOTS src" ;;
    7717     translations) PART_ROOTS="$PART_ROOTS tools/linguist/lrelease translations" ;;
     8572    libs) PART_ROOTS="$PART_ROOTS src tools/linguist/lrelease" ;;
     8573    translations) PART_ROOTS="$PART_ROOTS translations" ;;
    77188574    examples) PART_ROOTS="$PART_ROOTS examples demos" ;;
    77198575    *) ;;
     
    77398595
    77408596        case $a in
    7741         *winmain/winmain.pro) continue ;;
    7742         *s60main/s60main.pro) continue ;;
     8597        *winmain/winmain.pro)
     8598            if [ "$CFG_NOPROCESS" = "yes" ] || [ "$XPLATFORM_MINGW" != "yes" ]; then
     8599                continue
     8600            fi
     8601            SPEC=$XQMAKESPEC ;;
     8602        *s60main/s60main.pro)
     8603            if [ "$CFG_NOPROCESS" = "yes" ] || ! echo "$XPLATFORM" | grep "symbian" >/dev/null; then
     8604                continue
     8605            fi;;
    77438606        *examples/activeqt/*) continue ;;
    77448607        */qmake/qmake.pro) continue ;;
    77458608        *tools/bootstrap*|*tools/moc*|*tools/rcc*|*tools/uic*|*linguist/lrelease*) SPEC=$QMAKESPEC ;;
    7746         *) SPEC=$XQMAKESPEC ;;
     8609        *) if [ "$CFG_NOPROCESS" = "yes" ]; then
     8610              continue
     8611           else
     8612              SPEC=$XQMAKESPEC
     8613           fi;;
    77478614        esac
    77488615        dir=`dirname "$a" | sed -e "s;$sepath;.;g"`
     
    77998666
    78008667#-------------------------------------------------------------------------------
    7801 # XShape is important, DnD in the Designer doens't work without it
    7802 #-------------------------------------------------------------------------------
    7803 if [ "$PLATFORM_X11" = "yes" ] && [ "$CFG_XSHAPE" = "no" ]; then
    7804     cat <<EOF
    7805 
    7806         NOTICE: Qt will not be built with XShape support.
    7807 
    7808         As a result, drag-and-drop in the Qt Designer will NOT
    7809         work. We recommend that you enable XShape support by passing
    7810         the -xshape switch to $0.
    7811 EOF
    7812 fi
    7813 
    7814 #-------------------------------------------------------------------------------
    78158668# check for platforms that we don't yet know about
    78168669#-------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.