Changeset 561 for trunk/configure
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/configure
r2 r561 1 1 #!/bin/sh 2 # 3 # Configures to build the Qt library 4 # 5 # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 6 # Contact: Qt Software Information (qt-info@nokia.com) 7 # 8 # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 9 # WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 10 # 2 ############################################################################# 3 ## 4 ## Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 5 ## All rights reserved. 6 ## Contact: Nokia Corporation (qt-info@nokia.com) 7 ## 8 ## This file is the build configuration utility of the Qt Toolkit. 9 ## 10 ## $QT_BEGIN_LICENSE:LGPL$ 11 ## Commercial Usage 12 ## Licensees holding valid Qt Commercial licenses may use this file in 13 ## accordance with the Qt Commercial License Agreement provided with the 14 ## Software or, alternatively, in accordance with the terms contained in 15 ## a written agreement between you and Nokia. 16 ## 17 ## GNU Lesser General Public License Usage 18 ## Alternatively, this file may be used under the terms of the GNU Lesser 19 ## General Public License version 2.1 as published by the Free Software 20 ## Foundation and appearing in the file LICENSE.LGPL included in the 21 ## packaging of this file. Please review the following information to 22 ## ensure the GNU Lesser General Public License version 2.1 requirements 23 ## will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 24 ## 25 ## In addition, as a special exception, Nokia gives you certain additional 26 ## rights. These rights are described in the Nokia Qt LGPL Exception 27 ## version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 28 ## 29 ## GNU General Public License Usage 30 ## Alternatively, this file may be used under the terms of the GNU 31 ## General Public License version 3.0 as published by the Free Software 32 ## Foundation and appearing in the file LICENSE.GPL included in the 33 ## packaging of this file. Please review the following information to 34 ## ensure the GNU General Public License version 3.0 requirements will be 35 ## met: http://www.gnu.org/copyleft/gpl.html. 36 ## 37 ## If you have questions regarding the use of this file, please contact 38 ## Nokia at qt-info@nokia.com. 39 ## $QT_END_LICENSE$ 40 ## 41 ############################################################################# 11 42 12 43 #------------------------------------------------------------------------------- … … 47 78 # utility functions 48 79 #------------------------------------------------------------------------------- 80 81 shellEscape() 82 { 83 echo "$@" | sed 's/ /\ /g' 84 } 49 85 50 86 # Adds a new qmake variable to the cache … … 71 107 } 72 108 109 # Helper function for getQMakeConf. It parses include statements in 110 # qmake.conf and prints out the expanded file 111 getQMakeConf1() 112 { 113 while read line; do case "$line" in 114 include*) 115 inc_file=`echo "$line" | sed -n -e "/^include.*(.*)/s/include.*(\(.*\)).*$/\1/p"` 116 current_dir=`dirname "$1"` 117 conf_file="$current_dir/$inc_file" 118 if [ ! -e "$conf_file" ]; then 119 echo "WARNING: Unable to find file $conf_file" >&2 120 continue 121 fi 122 getQMakeConf1 "$conf_file" 123 ;; 124 *) 125 echo "$line" 126 ;; 127 esac; done < "$1" 128 } 129 130 73 131 # relies on $QMAKESPEC being set correctly. parses include statements in 74 132 # qmake.conf and prints out the expanded file … … 79 137 tmpSPEC="$1" 80 138 fi 81 $AWK -v "QMAKESPEC=$tmpSPEC" ' 82 /^include\(.+\)$/{ 83 fname = QMAKESPEC "/" substr($0, 9, length($0) - 9) 84 while ((getline line < fname) > 0) 85 print line 86 close(fname) 87 next 139 getQMakeConf1 "$tmpSPEC/qmake.conf" 88 140 } 89 { print }' "$tmpSPEC/qmake.conf" 141 142 # relies on $TEST_COMPILER being set correctly 143 compilerSupportsFlag() 144 { 145 cat >conftest.cpp <<EOF 146 int main() { return 0; } 147 EOF 148 "$TEST_COMPILER" "$@" -o conftest.o conftest.cpp 149 ret=$? 150 rm -f conftest.cpp conftest.o 151 return $ret 152 } 153 154 # relies on $TEST_COMPILER being set correctly 155 linkerSupportsFlag() 156 { 157 lflags=-Wl 158 for flag 159 do 160 safe_flag=`shellEscape "$flag"` 161 lflags=$lflags,$safe_flag 162 done 163 compilerSupportsFlag "$lflags" >/dev/null 2>&1 90 164 } 91 165 … … 167 241 CFG_NOKIA=no 168 242 CFG_EMBEDDED=no 243 CFG_RTOS_ENABLED=yes 169 244 EditionString=Commercial 170 245 … … 203 278 fi 204 279 ;; 205 h|help|--help|-help)280 -h|help|--help|-help) 206 281 if [ "$VAL" = "yes" ]; then 207 282 OPT_HELP="$VAL" … … 280 355 COMMERCIAL_USER="yes" 281 356 break 282 el se [ "$commercial" = "o" ];357 elif [ "$commercial" = "o" ]; then 283 358 COMMERCIAL_USER="no" 284 359 break … … 303 378 # one of commercial editions 304 379 [ "$PLATFORM_MAC" = "maybe" ] && PLATFORM_MAC=yes 305 [ "$PLATFORM_QWS" = "maybe" ] && PLATFORM_QWS= yes380 [ "$PLATFORM_QWS" = "maybe" ] && PLATFORM_QWS=no 306 381 307 382 # read in the license file … … 312 387 echo "You are using an old license file." 313 388 echo 314 echo "Please install the license file supplied by Qt Software,"389 echo "Please install the license file supplied by Nokia," 315 390 echo "or install the Qt Open Source Edition if you intend to" 316 391 echo "develop free software." … … 345 420 fi 346 421 ProductCode=`echo $LicenseKeyExt | cut -f 1 -d - | cut -b 1` 347 PlatformCode=`echo $LicenseKeyExt | cut -f 2 -d - | cut -b 1`422 PlatformCode=`echo $LicenseKeyExt | cut -f 2 -d -` 348 423 LicenseTypeCode=`echo $LicenseKeyExt | cut -f 3 -d -` 349 424 LicenseFeatureCode=`echo $LicenseKeyExt | cut -f 4 -d - | cut -b 1` … … 372 447 Z4M|R4M|Q4M) 373 448 LicenseType="Evaluation" 449 QMakeVar add DEFINES QT_EVAL 374 450 case $ProductCode in 375 451 B) … … 388 464 # verify that we are licensed to use Qt on this platform 389 465 LICENSE_EXTENSION= 390 if [ "$PlatformCode" = "X" ]; then 391 # Qt All-OS 392 LICENSE_EXTENSION="-ALLOS" 393 elif [ "$PLATFORM_QWS" = "yes" ]; then 394 case $PlatformCode in 395 2|4|8|A|B|E|G|J|K|P|Q|S|U|V|W) 466 case "$PlatformCode" in 467 *L) 468 CFG_RTOS_ENABLED=yes 469 PlatformCode=`echo "$PlatformCode" | sed 'h;y/8NPQRTZ/UCWX9M7/;x;G;s/\(.\)....\(.\)./\1\2/'` 470 ;; 471 *) 472 CFG_RTOS_ENABLED=no 473 PlatformCode=`echo "$PlatformCode" | sed 's/.$//'` 474 ;; 475 esac 476 case "$PlatformCode,$PLATFORM_MAC,$PLATFORM_QWS" in 477 X9,* | XC,* | XU,* | XW,* | XM,*) 478 # Qt All-OS 479 LICENSE_EXTENSION="-ALLOS" 480 ;; 481 8M,* | KM,* | S9,* | SC,* | SU,* | SW,* | X9,* | XC,* | XU,* | XW,*) 396 482 # Qt for Embedded Linux 397 483 LICENSE_EXTENSION="-EMBEDDED" 398 484 ;; 485 6M,*,no | N7,*,no | N9,*,no | NX,*,no) 486 # Embedded no-deploy 487 LICENSE_EXTENSION="-EMBEDDED" 488 ;; 489 FM,*,no | LM,yes,* | ZM,no,no) 490 # Desktop 491 LICENSE_EXTENSION="-DESKTOP" 492 ;; 399 493 *) 494 Platform=Linux/X11 495 [ "$PLATFORM_MAC" = "yes" ] && Platform='Mac OS X' 496 [ "$PLATFORM_QWS" = "yes" ] && Platform='Embedded Linux' 400 497 echo 401 echo "You are not licensed for Qt for Embedded Linux."498 echo "You are not licensed for the $Platform platform." 402 499 echo 403 echo "Please contact sales@trolltech.com to upgrade your license"404 echo " to include Qt for Embedded Linux, or install the"405 echo " Qt Open Source Editionif you intend to develop free software."500 echo "Please contact qt-info@nokia.com to upgrade your license to" 501 echo "include the $Platform platform, or install the Qt Open Source Edition" 502 echo "if you intend to develop free software." 406 503 exit 1 407 504 ;; 408 esac 409 elif [ "$PLATFORM_MAC" = "yes" ]; then 410 case $PlatformCode in 411 2|4|5|7|9|B|C|E|F|G|L|M|U|W|Y) 412 # Qt/Mac 413 LICENSE_EXTENSION="-DESKTOP" 414 ;; 415 3|6|8|A|D|H|J|K|P|Q|S|V) 416 # Embedded no-deploy 417 LICENSE_EXTENSION="-EMBEDDED" 418 ;; 419 *) 420 echo 421 echo "You are not licensed for the Qt/Mac platform." 422 echo 423 echo "Please contact sales@trolltech.com to upgrade your license" 424 echo "to include the Qt/Mac platform." 425 exit 1 426 ;; 427 esac 428 else 429 case $PlatformCode in 430 2|3|4|5|7|D|E|F|J|M|Q|S|T|V|Z) 431 # Qt/X11 432 LICENSE_EXTENSION="-DESKTOP" 433 ;; 434 6|8|9|A|B|C|G|H|K|P|U|W) 435 # Embedded no-deploy 436 LICENSE_EXTENSION="-EMBEDDED" 437 ;; 438 *) 439 echo 440 echo "You are not licensed for the Qt/X11 platform." 441 echo 442 echo "Please contact sales@trolltech.com to upgrade your license to" 443 echo "include the Qt/X11 platform, or install the Qt Open Source Edition" 444 echo "if you intend to develop free software." 445 exit 1 446 ;; 447 esac 448 fi 505 esac 449 506 450 507 if test -r "$relpath/.LICENSE"; then … … 473 530 474 531 case "$LicenseFeatureCode" in 475 G|L)532 B|G|L|Y) 476 533 # US 477 534 case "$LicenseType" in … … 484 541 esac 485 542 ;; 486 2| 5)543 2|4|5|F) 487 544 # non-US 488 545 case "$LicenseType" in … … 500 557 exit 1 501 558 ;; 559 esac 560 case "$LicenseFeatureCode" in 561 4|B|F|Y) 562 CFG_RTOS_ENABLED=yes 563 ;; 564 2|5|G|L) 565 CFG_RTOS_ENABLED=no 566 ;; 502 567 esac 503 568 if [ '!' -f "$outpath/LICENSE" ]; then … … 543 608 QMakeVar add styles "cde mac motif plastique cleanlooks windows" 544 609 QMakeVar add decorations "default windows styled" 545 QMakeVar add gfx-drivers "linuxfb" 610 QMakeVar add mouse-drivers "pc" 611 if [ "$UNAME_SYSTEM" = "Linux" ] ; then 612 QMakeVar add gfx-drivers "linuxfb" 613 QMakeVar add mouse-drivers "linuxtp" 614 fi 546 615 QMakeVar add kbd-drivers "tty" 547 QMakeVar add mouse-drivers "pc linuxtp"548 616 549 617 if [ "$CFG_DEV" = "yes" ]; then … … 555 623 556 624 # the minimum version of libdbus-1 that we require: 557 MIN_DBUS_1_VERSION=0. 62625 MIN_DBUS_1_VERSION=0.93 558 626 559 627 # initalize internal variables … … 561 629 CFG_PROFILE=no 562 630 CFG_EXCEPTIONS=unspecified 631 CFG_SCRIPT=auto # (yes|no|auto) 563 632 CFG_SCRIPTTOOLS=auto # (yes|no|auto) 564 633 CFG_XMLPATTERNS=auto # (yes|no|auto) … … 571 640 CFG_SM=auto 572 641 CFG_XSHAPE=auto 642 CFG_XSYNC=auto 573 643 CFG_XINERAMA=runtime 574 644 CFG_XFIXES=runtime … … 589 659 CFG_MITSHM=auto 590 660 CFG_OPENGL=auto 661 CFG_OPENVG=no 662 CFG_OPENVG_LC_INCLUDES=no 663 CFG_OPENVG_SHIVA=no 664 CFG_OPENVG_ON_OPENGL=no 665 CFG_EGL=no 666 CFG_EGL_GLES_INCLUDES=no 591 667 CFG_SSE=auto 592 668 CFG_FONTCONFIG=auto … … 600 676 CFG_PHONON=auto 601 677 CFG_PHONON_BACKEND=yes 678 CFG_MULTIMEDIA=yes 679 CFG_AUDIO_BACKEND=yes 602 680 CFG_SVG=yes 681 CFG_DECLARATIVE=auto 603 682 CFG_WEBKIT=auto # (yes|no|auto) 604 605 CFG_GFX_AVAILABLE="linuxfb transformed qvfb vnc multiscreen" 683 CFG_JAVASCRIPTCORE_JIT=auto 684 685 CFG_GFX_AVAILABLE="linuxfb transformed qvfb vnc multiscreen directfb" 606 686 CFG_GFX_ON="linuxfb multiscreen" 607 687 CFG_GFX_PLUGIN_AVAILABLE= 608 688 CFG_GFX_PLUGIN= 609 689 CFG_GFX_OFF= 610 CFG_KBD_AVAILABLE="tty usb sl5000 yopy vr41xxqvfb"690 CFG_KBD_AVAILABLE="tty linuxinput qvfb" 611 691 CFG_KBD_ON="tty" #default, see QMakeVar above 612 CFG_MOUSE_AVAILABLE="pc bus linuxtp yopy vr41xxtslib qvfb"692 CFG_MOUSE_AVAILABLE="pc linuxtp linuxinput tslib qvfb" 613 693 CFG_MOUSE_ON="pc linuxtp" #default, see QMakeVar above 694 695 if [ -f "$relpath/src/gui/embedded/qscreenqnx_qws.cpp" ]; then 696 CFG_KBD_AVAILABLE="${CFG_KBD_AVAILABLE} qnx" 697 CFG_MOUSE_AVAILABLE="${CFG_MOUSE_AVAILABLE} qnx" 698 CFG_GFX_AVAILABLE="${CFG_GFX_AVAILABLE} qnx" 699 fi 614 700 615 701 CFG_ARCH= … … 642 728 CFG_PRECOMPILE=auto 643 729 CFG_SEPARATE_DEBUG_INFO=auto 730 CFG_SEPARATE_DEBUG_INFO_NOCOPY=no 644 731 CFG_REDUCE_EXPORTS=auto 645 732 CFG_MMX=auto … … 659 746 CFG_ARMFPA=auto 660 747 CFG_IWMMXT=no 748 CFG_NEON=auto 661 749 CFG_CLOCK_GETTIME=auto 662 750 CFG_CLOCK_MONOTONIC=auto … … 669 757 CFG_FRAMEWORK=auto 670 758 CFG_MAC_ARCHS= 759 MAC_CONFIG_TEST_COMMANDLINE= # used to make the configure tests run with the correct arch's and SDK settings 671 760 CFG_MAC_DWARF2=auto 672 761 CFG_MAC_XARCH=auto … … 693 782 CFG_SILENT=no 694 783 CFG_GRAPHICS_SYSTEM=default 784 CFG_ALSA=auto 695 785 696 786 # initalize variables used for installation … … 716 806 QT_CFLAGS_SQLITE= 717 807 QT_LFLAGS_SQLITE= 808 QT_LFLAGS_ODBC="-lodbc" 718 809 719 810 # flags for libdbus-1 … … 742 833 for a in "$relpath/src/plugins/sqldrivers/"*; do 743 834 if [ -d "$a" ]; then 744 base_a=`basename $a`835 base_a=`basename "$a"` 745 836 CFG_SQL_AVAILABLE="${CFG_SQL_AVAILABLE} ${base_a}" 746 837 eval "CFG_SQL_${base_a}=auto" … … 753 844 for a in "$relpath/src/plugins/decorations/"*; do 754 845 if [ -d "$a" ]; then 755 base_a=`basename $a`846 base_a=`basename "$a"` 756 847 CFG_DECORATION_PLUGIN_AVAILABLE="${CFG_DECORATION_PLUGIN_AVAILABLE} ${base_a}" 757 848 fi … … 763 854 for a in "$relpath/src/plugins/kbddrivers/"*; do 764 855 if [ -d "$a" ]; then 765 base_a=`basename $a`856 base_a=`basename "$a"` 766 857 CFG_KBD_PLUGIN_AVAILABLE="${CFG_KBD_PLUGIN_AVAILABLE} ${base_a}" 767 858 fi … … 773 864 for a in "$relpath/src/plugins/mousedrivers/"*; do 774 865 if [ -d "$a" ]; then 775 base_a=`basename $a`866 base_a=`basename "$a"` 776 867 CFG_MOUSE_PLUGIN_AVAILABLE="${CFG_MOUSE_PLUGIN_AVAILABLE} ${base_a}" 777 868 fi … … 783 874 for a in "$relpath/src/plugins/gfxdrivers/"*; do 784 875 if [ -d "$a" ]; then 785 base_a=`basename $a`876 base_a=`basename "$a"` 786 877 CFG_GFX_PLUGIN_AVAILABLE="${CFG_GFX_PLUGIN_AVAILABLE} ${base_a}" 787 878 fi … … 831 922 ;; 832 923 #Qt style yes options 833 -incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-x input|-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|-svg|-webkit|-scripttools|-rpath|-force-pkg-config)924 -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) 834 925 VAR=`echo $1 | sed "s,^-\(.*\),\1,"` 835 926 VAL=yes … … 837 928 #Qt style options that pass an argument 838 929 -qconfig) 839 if [ "$PLATFORM_QWS" = "yes" ]; then 840 CFG_QCONFIG="$VAL" 841 VAR=`echo $1 | sed "s,^-\(.*\),\1,"` 842 shift 843 VAL=$1 844 else 845 UNKNOWN_ARG=yes 846 fi 930 if [ "$PLATFORM_QWS" != "yes" ]; then 931 echo 932 echo "WARNING: -qconfig is only tested and supported on Qt for Embedded Linux." 933 echo 934 fi 935 CFG_QCONFIG="$VAL" 936 VAR=`echo $1 | sed "s,^-\(.*\),\1,"` 937 shift 938 VAL=$1 847 939 ;; 848 940 -prefix|-docdir|-headerdir|-plugindir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-demosdir|-depths|-make|-nomake|-platform|-xplatform|-buildkey|-sdk|-arch|-host-arch|-mysql_config) … … 878 970 -opengl) 879 971 VAR=opengl 972 # this option may or may not be followed by an argument 973 if [ -z "$2" ] || echo "$2" | grep '^-' >/dev/null 2>&1; then 974 VAL=yes 975 else 976 shift; 977 VAL=$1 978 fi 979 ;; 980 -openvg) 981 VAR=openvg 880 982 # this option may or may not be followed by an argument 881 983 if [ -z "$2" ] || echo "$2" | grep '^-' >/dev/null 2>&1; then … … 1130 1232 fi 1131 1233 ;; 1234 openvg) 1235 if [ "$VAL" = "auto" ] || [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then 1236 CFG_OPENVG="$VAL" 1237 else 1238 UNKNOWN_OPT=yes 1239 fi 1240 ;; 1132 1241 graphicssystem) 1133 1242 if [ "$PLATFORM_QWS" = "yes" ]; then … … 1140 1249 if [ "$VAL" = "opengl" ]; then 1141 1250 CFG_GRAPHICS_SYSTEM="opengl" 1251 elif [ "$VAL" = "openvg" ]; then 1252 CFG_GRAPHICS_SYSTEM="openvg" 1142 1253 elif [ "$VAL" = "raster" ]; then 1143 1254 CFG_GRAPHICS_SYSTEM="raster" … … 1147 1258 fi 1148 1259 ;; 1149 1260 1150 1261 qvfb) # left for commandline compatibility, not documented 1151 1262 if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then … … 1419 1530 fi 1420 1531 ;; 1532 xsync) 1533 if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then 1534 CFG_XSYNC="$VAL" 1535 else 1536 UNKNOWN_OPT=yes 1537 fi 1538 ;; 1421 1539 xinput) 1422 1540 if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ] || [ "$VAL" = "runtime" ]; then … … 1443 1561 if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then 1444 1562 CFG_SEPARATE_DEBUG_INFO="$VAL" 1563 elif [ "$VAL" = "nocopy" ] ; then 1564 CFG_SEPARATE_DEBUG_INFO="yes" 1565 CFG_SEPARATE_DEBUG_INFO_NOCOPY="yes" 1445 1566 else 1446 1567 UNKNOWN_OPT=yes … … 1485 1606 CFG_IWMMXT="yes" 1486 1607 ;; 1608 neon) 1609 if [ "$VAL" = "no" ]; then 1610 CFG_NEON="$VAL" 1611 else 1612 UNKNOWN_OPT=yes 1613 fi 1614 ;; 1487 1615 reduce-relocations) 1488 1616 if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then … … 1703 1831 fi 1704 1832 ;; 1833 script) 1834 if [ "$VAL" = "yes" ] || [ "$VAL" = "auto" ]; then 1835 CFG_SCRIPT="yes" 1836 else 1837 if [ "$VAL" = "no" ]; then 1838 CFG_SCRIPT="no" 1839 else 1840 UNKNOWN_OPT=yes 1841 fi 1842 fi 1843 ;; 1705 1844 scripttools) 1706 1845 if [ "$VAL" = "yes" ] || [ "$VAL" = "auto" ]; then … … 1724 1863 fi 1725 1864 fi 1865 ;; 1866 declarative) 1867 if [ "$VAL" = "yes" ]; then 1868 CFG_DECLARATIVE="yes" 1869 else 1870 if [ "$VAL" = "no" ]; then 1871 CFG_DECLARATIVE="no" 1872 else 1873 UNKNOWN_OPT=yes 1874 fi 1875 fi 1726 1876 ;; 1727 1877 webkit) … … 1734 1884 UNKNOWN_OPT=yes 1735 1885 fi 1886 fi 1887 ;; 1888 javascript-jit) 1889 if [ "$VAL" = "yes" ] || [ "$VAL" = "auto" ] || [ "$VAL" = "no" ]; then 1890 CFG_JAVASCRIPTCORE_JIT="$VAL" 1891 else 1892 UNKNOWN_OPT=yes 1736 1893 fi 1737 1894 ;; … … 1932 2089 fi 1933 2090 ;; 2091 multimedia) 2092 if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then 2093 CFG_MULTIMEDIA="$VAL" 2094 else 2095 UNKNOWN_OPT=yes 2096 fi 2097 ;; 2098 audio-backend) 2099 if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then 2100 CFG_AUDIO_BACKEND="$VAL" 2101 else 2102 UNKNOWN_OPT=yes 2103 fi 2104 ;; 1934 2105 *) 1935 2106 UNKNOWN_OPT=yes … … 1986 2157 done 1987 2158 2159 # find perl 2160 PERL="/usr/bin/perl" 2161 if "$WHICH" perl >/dev/null 2>&1 && ( perl /dev/null ) >/dev/null 2>&1; then 2162 PERL=`$WHICH perl` 2163 fi 2164 1988 2165 ### skip this if the user just needs help... 1989 2166 if [ "$OPT_HELP" != "yes" ]; then … … 2001 2178 fi 2002 2179 if [ "$OPT_SHADOW" = "yes" ]; then 2003 if [ -f "$relpath/.qmake.cache" -o -f "$relpath/src/corelib/global/qconfig.h" ]; then2180 if [ -f "$relpath/.qmake.cache" -o -f "$relpath/src/corelib/global/qconfig.h" -o -f "$relpath/src/corelib/global/qconfig.cpp" ]; then 2004 2181 echo >&2 "You cannot make a shadow build from a source tree containing a previous build." 2005 2182 echo >&2 "Cannot proceed." … … 2101 2278 fi 2102 2279 2103 # symlink files from src/gui/embedded neccessary to build qvfb2104 if [ "$CFG_DEV" = "yes" ]; then2105 for f in qvfbhdr.h qlock_p.h qlock.cpp qwssignalhandler_p.h qwssignalhandler.cpp; do2106 dest="${relpath}/tools/qvfb/${f}"2107 rm -f "$dest"2108 ln -s "${relpath}/src/gui/embedded/${f}" "${dest}"2109 done2110 fi2111 2112 2280 # symlink fonts to be able to run application from build directory 2113 2281 if [ "$PLATFORM_QWS" = "yes" ] && [ ! -e "${outpath}/lib/fonts" ]; then … … 2131 2299 for mk in gmake make; do 2132 2300 if "$WHICH" $mk >/dev/null 2>&1; then 2133 MAKE=` $WHICH$mk`2301 MAKE=`"$WHICH" $mk` 2134 2302 break 2135 2303 fi … … 2140 2308 exit 1 2141 2309 fi 2310 # export MAKE, we need it later in the config.tests 2311 export MAKE 2142 2312 fi 2143 2313 … … 2180 2350 *86_64) 2181 2351 PLATFORM=qws/linux-x86_64-g++ 2182 ;;2183 *ppc)2184 PLATFORM=qws/linux-ppc-g++2185 2352 ;; 2186 2353 *) … … 2201 2368 CFG_EMBEDDED=x86_64 2202 2369 ;; 2203 *ppc)2204 CFG_EMBEDDED=ppc2205 ;;2206 2370 *) 2207 2371 CFG_EMBEDDED=generic … … 2211 2375 fi 2212 2376 XPLATFORM="qws/linux-$CFG_EMBEDDED-g++" 2377 fi 2378 ;; 2379 QNX:*) 2380 [ -z "$PLATFORM" ] && PLATFORM=unsupported/qws/qnx-generic-g++ 2381 if [ -z "$XPLATFORM" ]; then 2382 [ "$CFG_EMBEDDED" = "auto" ] && CFG_EMBEDDED=generic 2383 XPLATFORM="unsupported/qws/qnx-$CFG_EMBEDDED-g++" 2213 2384 fi 2214 2385 ;; … … 2364 2535 PLATFORM=unixware-g++ 2365 2536 ;; 2537 QNX:*) 2538 PLATFORM=unsupported/qnx-g++ 2539 ;; 2366 2540 *) 2367 2541 if [ "$OPT_HELP" != "yes" ]; then … … 2478 2652 exit 1 2479 2653 fi 2654 fi 2655 2656 if [ "$CFG_RTOS_ENABLED" = "no" ]; then 2657 case `basename "$XPLATFORM"` in 2658 qnx-* | vxworks-*) 2659 echo "" 2660 echo "You are not licensed for Qt for `basename $XPLATFORM`." 2661 echo "" 2662 echo "Please contact qt-info@nokia.com to upgrade your license to" 2663 echo "include this platform, or install the Qt Open Source Edition" 2664 echo "if you intend to develop free software." 2665 exit 1 2666 ;; 2667 esac 2480 2668 fi 2481 2669 … … 2589 2777 CFG_HOST_ARCH=sparc 2590 2778 ;; 2779 QNX:*:*) 2780 case "$UNAME_MACHINE" in 2781 x86pc) 2782 if [ "$OPT_VERBOSE" = "yes" ]; then 2783 echo " QNX on Intel 80x86 (i386)" 2784 fi 2785 CFG_HOST_ARCH=i386 2786 ;; 2787 esac 2788 ;; 2591 2789 *:*:*) 2592 2790 if [ "$OPT_VERBOSE" = "yes" ]; then … … 2669 2867 fi 2670 2868 if [ -z "$PKG_CONFIG" ]; then 2671 PKG_CONFIG=` $WHICHpkg-config 2>/dev/null`2869 PKG_CONFIG=`"$WHICH" pkg-config 2>/dev/null` 2672 2870 fi 2673 2871 … … 2695 2893 fi 2696 2894 else 2895 echo >&2 "" 2896 echo >&2 "You have not explicitly asked to use pkg-config and are cross-compiling." 2897 echo >&2 "pkg-config will not be used to automatically query cflag/lib parameters for" 2898 echo >&2 "dependencies" 2899 echo >&2 "" 2697 2900 PKG_CONFIG="" 2698 2901 fi 2699 2902 fi 2700 2903 2701 # check -arch arguments for validity.2904 # process CFG_MAC_ARCHS 2702 2905 if [ "$PLATFORM_MAC" = "yes" ]; then 2703 ALLOWED="x86 ppc x86_64 ppc64" 2704 for i in $CFG_MAC_ARCHS 2906 # check -arch arguments for validity. 2907 ALLOWED="x86 ppc x86_64 ppc64 i386" 2908 # Save the list so we can re-write it using only valid values 2909 CFG_MAC_ARCHS_IN="$CFG_MAC_ARCHS" 2910 CFG_MAC_ARCHS= 2911 for i in $CFG_MAC_ARCHS_IN 2705 2912 do 2706 2913 if echo "$ALLOWED" | grep -w -v "$i" > /dev/null 2>&1; then 2707 echo "Unknown architecture: \"$i\". Supported architectures: x86 ppc x86_64 ppc64";2914 echo "Unknown architecture: \"$i\". Supported architectures: x86[i386] ppc x86_64 ppc64"; 2708 2915 exit 2; 2709 2916 fi 2917 if [ "$i" = "i386" -o "$i" = "x86" ]; then 2918 # These are synonymous values 2919 # CFG_MAC_ARCHS requires x86 while GCC requires i386 2920 CFG_MAC_ARCHS="$CFG_MAC_ARCHS x86" 2921 MAC_CONFIG_TEST_COMMANDLINE="$MAC_CONFIG_TEST_COMMANDLINE -arch i386" 2922 else 2923 CFG_MAC_ARCHS="$CFG_MAC_ARCHS $i" 2924 MAC_CONFIG_TEST_COMMANDLINE="$MAC_CONFIG_TEST_COMMANDLINE -arch $i" 2925 fi 2710 2926 done 2927 fi 2928 2929 # pass on $CFG_SDK to the configure tests. 2930 if [ '!' -z "$CFG_SDK" ]; then 2931 MAC_CONFIG_TEST_COMMANDLINE="$MAC_CONFIG_TEST_COMMANDLINE -sdk $CFG_SDK" 2711 2932 fi 2712 2933 … … 2728 2949 TEST_COMPILER="$CC" 2729 2950 [ -z "$TEST_COMPILER" ] && TEST_COMPILER=$QMAKE_CONF_COMPILER 2951 if [ -z "$TEST_COMPILER" ]; then 2952 echo "ERROR: Cannot set the compiler for the configuration tests" 2953 exit 1 2954 fi 2730 2955 2731 2956 # auto-detect precompiled header support … … 2746 2971 2747 2972 #auto-detect DWARF2 on the mac 2748 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_DWARF2" = ="auto" ]; then2973 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_DWARF2" = "auto" ]; then 2749 2974 if "$mactests/dwarf2.test" "$TEST_COMPILER" "$OPT_VERBOSE" "$mactests" ; then 2750 2975 CFG_MAC_DWARF2=no … … 2755 2980 2756 2981 # auto-detect support for -Xarch on the mac 2757 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_XARCH" = ="auto" ]; then2982 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_XARCH" = "auto" ]; then 2758 2983 if "$mactests/xarch.test" "$TEST_COMPILER" "$OPT_VERBOSE" "$mactests" ; then 2759 2984 CFG_MAC_XARCH=no … … 2840 3065 fi 2841 3066 3067 # Print a warning if configure was called with the 10.4u SDK option on Snow Leopard 3068 # with the default mkspec. The 10.4u SDK does not support gcc 4.2. 3069 if [ "$PLATFORM_MAC" = "yes" ] && [ '!' -z "$CFG_SDK" ]; then 3070 # get the darwin version. 10.0.0 and up means snow leopard. 3071 VERSION=`uname -r | tr '.' ' ' | awk '{print $1}'` 3072 if [ "$VERSION" -gt 9 ] && [ "$CFG_SDK" == "/Developer/SDKs/MacOSX10.4u.sdk/" ] && [ "$PLATFORM" == "macx-g++" ]; then 3073 echo 3074 echo "WARNING: The 10.4u SDK does not support gcc 4.2. Configure with -platform macx-g++40. " 3075 echo 3076 fi 3077 fi 3078 2842 3079 # x11 tests are done after qmake is built 2843 3080 … … 2869 3106 if [ -z "$QT_INSTALL_PREFIX" ]; then 2870 3107 if [ "$CFG_DEV" = "yes" ]; then 2871 QT_INSTALL_PREFIX="$outpath" # At Trolltech, we use sandboxed builds by default3108 QT_INSTALL_PREFIX="$outpath" # In Development, we use sandboxed builds by default 2872 3109 elif [ "$PLATFORM_QWS" = "yes" ]; then 2873 3110 QT_INSTALL_PREFIX="/usr/local/Trolltech/QtEmbedded-${QT_VERSION}" … … 3054 3291 [-no-libpng] [-qt-libpng] [-system-libpng] [-no-libmng] [-qt-libmng] 3055 3292 [-system-libmng] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg] [-make <part>] 3056 [-no -make <part>] [-R <string>] [-l <string>] [-no-rpath] [-rpath] [-continue]3293 [-nomake <part>] [-R <string>] [-l <string>] [-no-rpath] [-rpath] [-continue] 3057 3294 [-verbose] [-v] [-silent] [-no-nis] [-nis] [-no-cups] [-cups] [-no-iconv] 3058 3295 [-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus] [-dbus-linked] … … 3060 3297 [-qtnamespace <namespace>] [-qtlibinfix <infix>] [-separate-debug-info] [-armfpa] 3061 3298 [-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns] [-xmlpatterns] 3062 [-no- phonon] [-phonon] [-no-phonon-backend] [-phonon-backend]3063 [-no- openssl] [-openssl] [-openssl-linked]3064 [-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit] 3065 [-no-script tools] [-scripttools]3299 [-no-multimedia] [-multimedia] [-no-phonon] [-phonon] [-no-phonon-backend] [-phonon-backend] 3300 [-no-audio-backend] [-audio-backend] [-no-openssl] [-openssl] [-openssl-linked] 3301 [-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit] [-no-javascript-jit] [-javascript-jit] 3302 [-no-script] [-script] [-no-scripttools] [-scripttools] [-no-declarative] [-declarative] 3066 3303 3067 3304 [additional platform specific options (see below)] … … 3196 3433 is used and exceptions are enabled. 3197 3434 3435 -no-multimedia ..... Do not build the QtMultimedia module. 3436 + -multimedia ........ Build the QtMultimedia module. 3437 3438 -no-audio-backend .. Do not build the platform audio backend into QtMultimedia. 3439 + -audio-backend ..... Build the platform audio backend into QtMultimedia if available. 3440 3198 3441 -no-phonon ......... Do not build the Phonon module. 3199 3442 + -phonon ............ Build the Phonon module. … … 3209 3452 WebKit is built if a decent C++ compiler is used. 3210 3453 3454 -no-javascript-jit . Do not build the JavaScriptCore JIT compiler. 3455 + -javascript-jit .... Build the JavaScriptCore JIT compiler. 3456 3457 -no-script ......... Do not build the QtScript module. 3458 + -script ............ Build the QtScript module. 3459 3211 3460 -no-scripttools .... Do not build the QtScriptTools module. 3212 3461 + -scripttools ....... Build the QtScriptTools module. 3462 3463 + -no-declarative .....Do not build the declarative module. 3464 -declarative ....... Build the declarative module. 3213 3465 3214 3466 -platform target ... The operating system and compiler you are building … … 3453 3705 + -opengl <api> ...... Enable OpenGL support. 3454 3706 With no parameter, this will auto-detect the "best" 3455 OpenGL API to use. If desktop OpenGL is ava liable, it3707 OpenGL API to use. If desktop OpenGL is available, it 3456 3708 will be used. Use desktop, es1, es1cl or es2 for <api> 3457 3709 to force the use of the Desktop (OpenGL 1.x or 2.x), 3458 3710 OpenGL ES 1.x Common profile, 1.x Common Lite profile 3459 3711 or 2.x APIs instead. On X11, the EGL API will be used 3460 to manage GL contexts in the case of OpenGL ES. 3712 to manage GL contexts in the case of OpenGL ES 3713 3714 -no-openvg ........ Do not support OpenVG. 3715 + -openvg ........... Enable OpenVG support. 3716 Requires EGL support, typically supplied by an OpenGL 3717 or other graphics implementation. 3461 3718 3462 3719 $SMN -no-sm ............. Do not support X Session Management. … … 3466 3723 $SHY -xshape ............ Compile XShape support. 3467 3724 Requires X11/extensions/shape.h. 3725 3726 $SHN -no-xsync .......... Do not compile XSync support. 3727 $SHY -xsync ............. Compile XSync support. 3728 Requires X11/extensions/sync.h. 3468 3729 3469 3730 $XAN -no-xinerama ....... Do not compile Xinerama (multihead) support. … … 3564 3825 Example values for <arch>: arm mips x86 generic 3565 3826 3566 -armfpa ............. Target platform isuses the ARM-FPA floating point format.3827 -armfpa ............. Target platform uses the ARM-FPA floating point format. 3567 3828 -no-armfpa .......... Target platform does not use the ARM-FPA floating point format. 3568 3829 … … 3637 3898 (available on some XScale CPUs). 3638 3899 3900 -no-neon ........... Do not compile with use of NEON instructions. 3639 3901 EOF 3640 3902 fi … … 3668 3930 Platform="Qt for Embedded Linux" 3669 3931 elif [ "$PLATFORM_MAC" = "yes" ]; then 3670 Platform="Qt /Mac"3932 Platform="Qt for Mac OS X" 3671 3933 else 3672 3934 PLATFORM_X11=yes 3673 Platform="Qt /X11"3935 Platform="Qt for Linux/X11" 3674 3936 fi 3675 3937 … … 3685 3947 while true; do 3686 3948 echo "You are licensed to use this software under the terms of" 3687 echo "the GNU General Public License (GPL) versions 3."3688 echo "You are also licensed to use this software under the terms of"3689 3949 echo "the Lesser GNU General Public License (LGPL) versions 2.1." 3950 if [ -f "$relpath/LICENSE.GPL3" ]; then 3951 echo "You are also licensed to use this software under the terms of" 3952 echo "the GNU General Public License (GPL) versions 3." 3953 affix="either" 3954 else 3955 affix="the" 3956 fi 3690 3957 echo 3691 affix="either"3692 3958 if [ "$OPT_CONFIRM_LICENSE" = "yes" ]; then 3693 3959 echo "You have already accepted the terms of the $LicenseType license." 3694 3960 acceptance=yes 3695 3961 else 3696 echo "Type '3' to view the GNU General Public License version 3." 3962 if [ -f "$relpath/LICENSE.GPL3" ]; then 3963 echo "Type '3' to view the GNU General Public License version 3." 3964 fi 3697 3965 echo "Type 'L' to view the Lesser GNU General Public License version 2.1." 3698 3966 echo "Type 'yes' to accept this license offer." … … 3707 3975 fi 3708 3976 echo 3709 if [ "$acceptance" = "yes" ] ; then3977 if [ "$acceptance" = "yes" ] || [ "$acceptance" = "y" ]; then 3710 3978 break 3711 3979 elif [ "$acceptance" = "no" ]; then … … 3767 4035 echo 3768 4036 echo " You are no longer licensed to use this version of Qt." 3769 echo " Please contact sales@trolltech.com to renew your support"4037 echo " Please contact qt-info@nokia.com to renew your support" 3770 4038 echo " and upgrades for this license." 3771 4039 echo … … 3785 4053 echo " Qt releases." 3786 4054 echo 3787 echo " Please contact sales@trolltech.com to renew your"4055 echo " Please contact qt-info@nokia.com to renew your" 3788 4056 echo " support and upgrades for this license." 3789 4057 echo … … 3800 4068 echo 3801 4069 echo " You are no longer licensed to use this software. Please" 3802 echo " contact sales@trolltech.com to purchase license, or install"4070 echo " contact qt-info@nokia.com to purchase license, or install" 3803 4071 echo " the Qt Open Source Edition if you intend to develop free" 3804 4072 echo " software." … … 3875 4143 DEMOS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_demopath=$QT_INSTALL_DEMOS"` 3876 4144 4145 TODAY=`date +%Y-%m-%d` 3877 4146 cat > "$outpath/src/corelib/global/qconfig.cpp.new" <<EOF 3878 4147 /* License Info */ 3879 4148 static const char qt_configure_licensee_str [256 + 12] = "$LICENSE_USER_STR"; 3880 4149 static const char qt_configure_licensed_products_str [256 + 12] = "$LICENSE_PRODUCTS_STR"; 4150 4151 /* Installation date */ 4152 static const char qt_configure_installation [12+11] = "qt_instdate=$TODAY"; 3881 4153 EOF 4154 3882 4155 3883 4156 if [ ! -z "$QT_HOST_PREFIX" ]; then … … 3962 4235 3963 4236 # ----------------------------------------------------------------------------- 4237 if [ "$LicenseType" = "Evaluation" ]; then 4238 EVALKEY=`"$relpath/config.tests/unix/padstring" 524 "qt_qevalkey=$LicenseKeyExt"` 4239 elif echo "$D_FLAGS" | grep QT_EVAL >/dev/null 2>&1; then 4240 EVALKEY=`"$relpath/config.tests/unix/padstring" 524 "qt_qevalkey="` 4241 fi 4242 4243 if [ -n "$EVALKEY" ]; then 4244 rm -f "$outpath/src/corelib/global/qconfig_eval.cpp" 4245 cat > "$outpath/src/corelib/global/qconfig_eval.cpp" <<EOF 4246 /* Evaluation license key */ 4247 static const char qt_eval_key_data [512 + 12] = "$EVALKEY"; 4248 EOF 4249 chmod -w "$outpath/src/corelib/global/qconfig_eval.cpp" 4250 fi 4251 4252 4253 # ----------------------------------------------------------------------------- 3964 4254 # build qmake 3965 4255 # ----------------------------------------------------------------------------- … … 3971 4261 if [ "$OPT_SHADOW" = "yes" ]; then 3972 4262 "$outpath/bin/syncqt" $SYNCQT_OPTS 3973 elif [ "$CFG_DEV" = "yes" ] ; then4263 elif [ "$CFG_DEV" = "yes" ] || [ ! -d $relpath/include ]; then 3974 4264 QTDIR="$relpath" perl "$outpath/bin/syncqt" $SYNCQT_OPTS 3975 4265 fi … … 4056 4346 [ -f "$in_mkfile" ] || continue 4057 4347 4058 echo "########################################################################" > $mkfile4059 echo "## This file was autogenerated by configure, all changes will be lost ##" >> $mkfile4060 echo "########################################################################" >> $mkfile4348 echo "########################################################################" > "$mkfile" 4349 echo "## This file was autogenerated by configure, all changes will be lost ##" >> "$mkfile" 4350 echo "########################################################################" >> "$mkfile" 4061 4351 EXTRA_OBJS= 4062 4352 EXTRA_SRCS= … … 4069 4359 fi 4070 4360 4071 [ -n "$CC" ] && echo "CC = $CC" >> $mkfile4072 [ -n "$CXX" ] && echo "CXX = $CXX" >> $mkfile4361 [ -n "$CC" ] && echo "CC = $CC" >> "$mkfile" 4362 [ -n "$CXX" ] && echo "CXX = $CXX" >> "$mkfile" 4073 4363 if [ "$CFG_SILENT" = "yes" ]; then 4074 4364 [ -z "$CC" ] && setBootstrapVariable QMAKE_CC 's,QMAKE_CC.*=,CC=\@,' … … 4105 4395 fi 4106 4396 if [ "$PLATFORM_MAC" = "yes" ]; then 4107 if [ "$PLATFORM" = "macx-icc" ]; then 4108 echo "export MACOSX_DEPLOYMENT_TARGET = 10.4" >>"$mkfile" 4109 else 4110 echo "export MACOSX_DEPLOYMENT_TARGET = 10.3" >>"$mkfile" 4111 fi 4397 echo "export MACOSX_DEPLOYMENT_TARGET = 10.4" >> "$mkfile" 4112 4398 echo "CARBON_LFLAGS =-framework ApplicationServices" >>"$mkfile" 4113 4399 echo "CARBON_CFLAGS =-fconstant-cfstrings" >>"$mkfile" … … 4117 4403 EXTRA_OBJS="qsettings_mac.o qcore_mac.o" 4118 4404 EXTRA_SRCS="\"$relpath/src/corelib/io/qsettings_mac.cpp\" \"$relpath/src/corelib/kernel/qcore_mac.cpp\"" 4119 if echo "$CFG_MAC_ARCHS" | grep x86 > /dev/null 2>&1; then 4405 if echo "$CFG_MAC_ARCHS" | grep x86 > /dev/null 2>&1; then # matches both x86 and x86_64 4120 4406 X86_CFLAGS="-arch i386" 4121 4407 X86_LFLAGS="-arch i386" … … 4124 4410 EXTRA_LFLAGS="$EXTRA_LFLAGS $X86_LFLAGS" 4125 4411 fi 4126 if echo "$CFG_MAC_ARCHS" | grep ppc > /dev/null 2>&1; then 4412 if echo "$CFG_MAC_ARCHS" | grep ppc > /dev/null 2>&1; then # matches both ppc and ppc64 4127 4413 PPC_CFLAGS="-arch ppc" 4128 4414 PPC_LFLAGS="-arch ppc" … … 4152 4438 adjrelpath=`echo "$relpath" | sed 's/ /\\\\\\\\ /g'` 4153 4439 adjoutpath=`echo "$outpath" | sed 's/ /\\\\\\\\ /g'` 4440 adjqmakespec=`echo "$QMAKESPEC" | sed 's/ /\\\\\\\\ /g'` 4154 4441 sed -e "s,@SOURCE_PATH@,$adjrelpath,g" -e "s,@BUILD_PATH@,$adjoutpath,g" \ 4155 4442 -e "s,@QMAKE_CFLAGS@,$EXTRA_CFLAGS,g" -e "s,@QMAKE_LFLAGS@,$EXTRA_LFLAGS,g" \ … … 4158 4445 -e "s,@QT_INSTALL_DATA@,\$(INSTALL_ROOT)$QMAKE_DATA_DIR,g" \ 4159 4446 -e "s,@QMAKE_QTOBJS@,$EXTRA_OBJS,g" -e "s,@QMAKE_QTSRCS@,$EXTRA_SRCS,g" \ 4160 -e "s,@QMAKESPEC@,$ QMAKESPEC,g" "$in_mkfile" >>"$mkfile"4447 -e "s,@QMAKESPEC@,$adjqmakespec,g" "$in_mkfile" >>"$mkfile" 4161 4448 4162 4449 if "$WHICH" makedepend >/dev/null 2>&1 && grep 'depend:' "$mkfile" >/dev/null 2>&1; then 4163 4450 (cd "$outpath/qmake" && "$MAKE" -f "$mkfile" depend) >/dev/null 2>&1 4164 sed "s,^.*/\([^/]*.o\):,\1:,g" "$mkfile" >"${mkfile}.tmp" 4165 mv "${mkfile}.tmp" "${mkfile}" 4451 sed "s,^.*/\([^/]*.o\):,\1:,g" "$mkfile" >"$mkfile.tmp" 4452 sed "s,$outpath,$adjoutpath,g" "$mkfile.tmp" >"$mkfile" 4453 rm "$mkfile.tmp" 4166 4454 fi 4167 4455 done … … 4223 4511 # check iWMMXt support 4224 4512 if [ "$CFG_IWMMXT" = "yes" ]; then 4225 if ! "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/iwmmxt "iwmmxt" $L_FLAGS $I_FLAGS $l_FLAGS "-mcpu=iwmmxt"; then 4513 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/iwmmxt "iwmmxt" $L_FLAGS $I_FLAGS $l_FLAGS "-mcpu=iwmmxt" 4514 if [ $? != "0" ]; then 4226 4515 echo "The iWMMXt functionality test failed!" 4227 4516 echo " Please make sure your compiler supports iWMMXt intrinsics!" 4228 4517 exit 1 4518 fi 4519 fi 4520 4521 # detect neon support 4522 if ([ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]) && [ "${CFG_NEON}" = "auto" ]; then 4523 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 4524 CFG_NEON=yes 4525 else 4526 CFG_NEON=no 4229 4527 fi 4230 4528 fi … … 4245 4543 fi 4246 4544 if [ "$CFG_ZLIB" = "auto" ]; then 4247 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/zlib "zlib" $L_FLAGS $I_FLAGS $l_FLAGS ; then4545 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/zlib "zlib" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4248 4546 CFG_ZLIB=system 4249 4547 else … … 4262 4560 # detect jpeg 4263 4561 if [ "$CFG_LIBJPEG" = "auto" ]; then 4264 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/libjpeg "libjpeg" $L_FLAGS $I_FLAGS $l_FLAGS ; then4562 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/libjpeg "libjpeg" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4265 4563 CFG_LIBJPEG=system 4266 4564 else … … 4289 4587 # detect tiff 4290 4588 if [ "$CFG_LIBTIFF" = "auto" ]; then 4291 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/libtiff "libtiff" $L_FLAGS $I_FLAGS $l_FLAGS ; then4589 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/libtiff "libtiff" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4292 4590 CFG_LIBTIFF=system 4293 4591 else … … 4306 4604 # detect mng 4307 4605 if [ "$CFG_LIBMNG" = "auto" ]; then 4308 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/libmng "libmng" $L_FLAGS $I_FLAGS $l_FLAGS ; then4606 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/libmng "libmng" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4309 4607 CFG_LIBMNG=system 4310 4608 else … … 4315 4613 # detect png 4316 4614 if [ "$CFG_LIBPNG" = "auto" ]; then 4317 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/libpng "libpng" $L_FLAGS $I_FLAGS $l_FLAGS ; then4615 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/libpng "libpng" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4318 4616 CFG_LIBPNG=system 4319 4617 else … … 4332 4630 mysql) 4333 4631 if [ "$CFG_SQL_mysql" != "no" ]; then 4334 [ -z "$CFG_MYSQL_CONFIG" ] && CFG_MYSQL_CONFIG=` $WHICHmysql_config`4632 [ -z "$CFG_MYSQL_CONFIG" ] && CFG_MYSQL_CONFIG=`"$WHICH" mysql_config` 4335 4633 if [ -x "$CFG_MYSQL_CONFIG" ]; then 4336 4634 QT_CFLAGS_MYSQL=`$CFG_MYSQL_CONFIG --include 2>/dev/null` … … 4354 4652 fi 4355 4653 else 4356 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/mysql_r "MySQL (thread-safe)" $QT_LFLAGS_MYSQL_R $L_FLAGS $QT_CFLAGS_MYSQL $I_FLAGS $l_FLAGS ; then4654 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/mysql_r "MySQL (thread-safe)" $QT_LFLAGS_MYSQL_R $L_FLAGS $QT_CFLAGS_MYSQL $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4357 4655 QMakeVar add CONFIG use_libmysqlclient_r 4358 4656 if [ "$CFG_SQL_mysql" = "auto" ]; then … … 4360 4658 fi 4361 4659 QT_LFLAGS_MYSQL="$QT_LFLAGS_MYSQL_R" 4362 elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/mysql "MySQL (thread-unsafe)" $QT_LFLAGS_MYSQL $L_FLAGS $QT_CFLAGS_MYSQL $I_FLAGS $l_FLAGS ; then4660 elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/mysql "MySQL (thread-unsafe)" $QT_LFLAGS_MYSQL $L_FLAGS $QT_CFLAGS_MYSQL $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4363 4661 if [ "$CFG_SQL_mysql" = "auto" ]; then 4364 4662 CFG_SQL_mysql=plugin … … 4389 4687 [ -z "$QT_CFLAGS_PSQL" ] || QT_CFLAGS_PSQL="-I$QT_CFLAGS_PSQL" 4390 4688 [ -z "$QT_LFLAGS_PSQL" ] || QT_LFLAGS_PSQL="-L$QT_LFLAGS_PSQL" 4391 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 ; then4689 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 4392 4690 if [ "$CFG_SQL_psql" = "auto" ]; then 4393 4691 CFG_SQL_psql=plugin … … 4410 4708 odbc) 4411 4709 if [ "$CFG_SQL_odbc" != "no" ]; then 4412 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/odbc "ODBC" $L_FLAGS $I_FLAGS $l_FLAGS; then4710 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 4413 4711 if [ "$CFG_SQL_odbc" = "auto" ]; then 4414 4712 CFG_SQL_odbc=plugin 4415 4713 fi 4416 4714 else 4417 if [ "$CFG_SQL_odbc" != "auto" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then 4418 echo "ODBC support cannot be enabled due to functionality tests!" 4419 echo " Turn on verbose messaging (-v) to $0 to see the final report." 4420 echo " If you believe this message is in error you may use the continue" 4421 echo " switch (-continue) to $0 to continue." 4422 exit 101 4715 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/iodbc "iODBC" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4716 QT_LFLAGS_ODBC="-liodbc" 4717 if [ "$CFG_SQL_odbc" = "auto" ]; then 4718 CFG_SQL_odbc=plugin 4719 fi 4423 4720 else 4424 CFG_SQL_odbc=no 4721 if [ "$CFG_SQL_odbc" != "auto" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then 4722 echo "ODBC support cannot be enabled due to functionality tests!" 4723 echo " Turn on verbose messaging (-v) to $0 to see the final report." 4724 echo " If you believe this message is in error you may use the continue" 4725 echo " switch (-continue) to $0 to continue." 4726 exit 101 4727 else 4728 CFG_SQL_odbc=no 4729 fi 4425 4730 fi 4426 4731 fi … … 4429 4734 oci) 4430 4735 if [ "$CFG_SQL_oci" != "no" ]; then 4431 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/oci "OCI" $L_FLAGS $I_FLAGS $l_FLAGS ; then4736 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/oci "OCI" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4432 4737 if [ "$CFG_SQL_oci" = "auto" ]; then 4433 4738 CFG_SQL_oci=plugin … … 4448 4753 tds) 4449 4754 if [ "$CFG_SQL_tds" != "no" ]; then 4450 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/tds "TDS" $L_FLAGS $I_FLAGS $l_FLAGS ; then4755 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 4451 4756 if [ "$CFG_SQL_tds" = "auto" ]; then 4452 4757 CFG_SQL_tds=plugin … … 4467 4772 db2) 4468 4773 if [ "$CFG_SQL_db2" != "no" ]; then 4469 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/db2 "DB2" $L_FLAGS $I_FLAGS $l_FLAGS ; then4774 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/db2 "DB2" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4470 4775 if [ "$CFG_SQL_db2" = "auto" ]; then 4471 4776 CFG_SQL_db2=plugin … … 4486 4791 ibase) 4487 4792 if [ "$CFG_SQL_ibase" != "no" ]; then 4488 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/ibase "InterBase" $L_FLAGS $I_FLAGS $l_FLAGS ; then4793 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/ibase "InterBase" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4489 4794 if [ "$CFG_SQL_ibase" = "auto" ]; then 4490 4795 CFG_SQL_ibase=plugin … … 4505 4810 sqlite2) 4506 4811 if [ "$CFG_SQL_sqlite2" != "no" ]; then 4507 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/sqlite2 "SQLite2" $L_FLAGS $I_FLAGS $l_FLAGS ; then4812 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/sqlite2 "SQLite2" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4508 4813 if [ "$CFG_SQL_sqlite2" = "auto" ]; then 4509 4814 CFG_SQL_sqlite2=plugin … … 4530 4835 QT_LFLAGS_SQLITE=`$PKG_CONFIG --libs sqlite3 2>/dev/null` 4531 4836 fi 4532 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/sqlite "SQLite" $QT_LFLAGS_SQLITE $L_FLAGS $QT_CFLAGS_SQLITE $I_FLAGS $l_FLAGS ; then4837 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/sqlite "SQLite" $QT_LFLAGS_SQLITE $L_FLAGS $QT_CFLAGS_SQLITE $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4533 4838 if [ "$CFG_SQL_sqlite" = "auto" ]; then 4534 4839 CFG_SQL_sqlite=plugin … … 4567 4872 # auto-detect NIS support 4568 4873 if [ "$CFG_NIS" != "no" ]; then 4569 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/nis "NIS" $L_FLAGS $I_FLAGS $l_FLAGS ; then4874 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/nis "NIS" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4570 4875 CFG_NIS=yes 4571 4876 else … … 4584 4889 # auto-detect CUPS support 4585 4890 if [ "$CFG_CUPS" != "no" ]; then 4586 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/cups "Cups" $L_FLAGS $I_FLAGS $l_FLAGS ; then4891 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/cups "Cups" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then 4587 4892 CFG_CUPS=yes 4588 4893 else … … 4603 4908 if [ "$PLATFORM_QWS" = "yes" ]; then 4604 4909 CFG_ICONV=no 4605 elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" "$OPT_VERBOSE" "$relpath" "$outpath" "config.tests/unix/iconv" "POSIX iconv" $L_FLAGS $I_FLAGS $l_FLAGS ; then4910 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 4606 4911 CFG_ICONV=yes 4607 elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" "$OPT_VERBOSE" "$relpath" "$outpath" "config.tests/unix/gnu-libiconv" "GNU libiconv" $L_FLAGS $I_FLAGS $l_FLAGS ; then4912 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 4608 4913 CFG_ICONV=gnu 4609 4914 else … … 4626 4931 QT_LIBS_DBUS=`$PKG_CONFIG --libs dbus-1 2>/dev/null` 4627 4932 fi 4628 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/dbus "D-Bus" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_DBUS $QT_LIBS_DBUS ; then4933 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/dbus "D-Bus" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_DBUS $QT_LIBS_DBUS $MAC_CONFIG_TEST_COMMANDLINE; then 4629 4934 [ "$CFG_DBUS" = "auto" ] && CFG_DBUS=yes 4630 4935 QMakeVar set QT_CFLAGS_DBUS "$QT_CFLAGS_DBUS" … … 4653 4958 4654 4959 if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ]; then 4960 4961 # detect EGL support 4962 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 4963 # EGL specified by QMAKE_*_EGL, included with <EGL/egl.h> 4964 CFG_EGL=yes 4965 CFG_EGL_GLES_INCLUDES=no 4966 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 4967 # EGL specified by QMAKE_*_EGL, included with <GLES/egl.h> 4968 CFG_EGL=yes 4969 CFG_EGL_GLES_INCLUDES=yes 4970 fi 4971 if ( [ "$CFG_OPENGL" = "es1" ] || [ "$CFG_OPENGL" = "es1cl" ] || [ "$CFG_OPENGL" = "es2" ] ) && [ "$CFG_EGL" != "yes" ]; then 4972 echo "The EGL functionality test failed!" 4973 echo " EGL is required for OpenGL ES to manage contexts & surfaces." 4974 echo " You might need to modify the include and library search paths by editing" 4975 echo " QMAKE_INCDIR_EGL, QMAKE_LIBDIR_EGL and QMAKE_LIBS_EGL in" 4976 echo " ${XQMAKESPEC}." 4977 exit 1 4978 fi 4979 4980 4655 4981 # auto-detect Glib support 4656 4982 if [ "$CFG_GLIB" != "no" ]; then … … 4659 4985 QT_LIBS_GLIB=`$PKG_CONFIG --libs glib-2.0 gthread-2.0 2>/dev/null` 4660 4986 fi 4661 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/glib "Glib" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_GLIB $QT_LIBS_GLIB $X11TESTS_FLAGS ; then4987 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/glib "Glib" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_GLIB $QT_LIBS_GLIB $X11TESTS_FLAGS ; then 4662 4988 CFG_GLIB=yes 4663 4989 QMakeVar set QT_CFLAGS_GLIB "$QT_CFLAGS_GLIB" … … 4735 5061 4736 5062 # Check we actually have X11 :-) 4737 if ! "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xlib "XLib" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then 5063 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xlib "XLib" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS 5064 if [ $? != "0" ]; then 4738 5065 echo "Basic XLib functionality test failed!" 4739 5066 echo " You might need to modify the include and library search paths by editing" … … 4766 5093 # HP-UX have buggy glx headers; check if we really need to define the GLXFBConfig struct. 4767 5094 if [ "$CFG_OPENGL" = "desktop" ]; then 4768 if ! "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/glxfbconfig "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then 5095 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/glxfbconfig "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS 5096 if [ $? != "0" ]; then 4769 5097 QMakeVar add DEFINES QT_DEFINE_GLXFBCONFIG_STRUCT 4770 5098 fi … … 4776 5104 elif [ "$CFG_OPENGL" = "es1cl" ]; then 4777 5105 # OpenGL ES 1.x common lite 4778 if ! "$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 5106 "$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 5107 if [ $? != "0" ]; then 4779 5108 echo "The OpenGL ES 1.x Common Lite Profile functionality test failed!" 4780 5109 echo " You might need to modify the include and library search paths by editing" 4781 4782 5110 echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in" 5111 echo " ${XQMAKESPEC}." 4783 5112 exit 1 4784 5113 fi 4785 5114 elif [ "$CFG_OPENGL" = "es1" ]; then 4786 5115 # OpenGL ES 1.x 4787 if ! "$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 5116 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS 5117 if [ $? != "0" ]; then 4788 5118 echo "The OpenGL ES 1.x functionality test failed!" 4789 5119 echo " You might need to modify the include and library search paths by editing" 4790 4791 5120 echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in" 5121 echo " ${XQMAKESPEC}." 4792 5122 exit 1 4793 5123 fi 4794 5124 elif [ "$CFG_OPENGL" = "es2" ]; then 4795 5125 #OpenGL ES 2.x 4796 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 5126 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS 5127 if [ $? != "0" ]; then 4797 5128 echo "The OpenGL ES 2.0 functionality test failed!" 4798 5129 echo " You might need to modify the include and library search paths by editing" 4799 4800 5130 echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in" 5131 echo " ${XQMAKESPEC}." 4801 5132 exit 1 4802 5133 fi 4803 5134 elif [ "$CFG_OPENGL" = "desktop" ]; then 4804 5135 # Desktop OpenGL support 4805 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 5136 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/opengl "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS 5137 if [ $? != "0" ]; then 4806 5138 echo "The OpenGL functionality test failed!" 4807 5139 echo " You might need to modify the include and library search paths by editing" 4808 4809 5140 echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in" 5141 echo " ${XQMAKESPEC}." 4810 5142 exit 1 4811 5143 fi … … 4813 5145 hpux*) 4814 5146 # HP-UX have buggy glx headers; check if we really need to define the GLXFBConfig struct. 4815 if ! "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/glxfbconfig "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then 5147 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/glxfbconfig "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS 5148 if [ $? != "0" ]; then 4816 5149 QMakeVar add DEFINES QT_DEFINE_GLXFBCONFIG_STRUCT 4817 5150 fi … … 4921 5254 # auto-detect FontConfig support 4922 5255 if [ "$CFG_FONTCONFIG" != "no" ]; then 4923 if [ -n "$PKG_CONFIG" ] && $PKG_CONFIG --exists fontconfig 2>/dev/null; then4924 QT_CFLAGS_FONTCONFIG=`$PKG_CONFIG --cflags fontconfig 2>/dev/null`4925 QT_LIBS_FONTCONFIG=`$PKG_CONFIG --libs fontconfig 2>/dev/null`5256 if [ -n "$PKG_CONFIG" ] && $PKG_CONFIG --exists fontconfig --exists freetype2 2>/dev/null; then 5257 QT_CFLAGS_FONTCONFIG=`$PKG_CONFIG --cflags fontconfig --cflags freetype2 2>/dev/null` 5258 QT_LIBS_FONTCONFIG=`$PKG_CONFIG --libs fontconfig --libs freetype2 2>/dev/null` 4926 5259 else 4927 5260 QT_CFLAGS_FONTCONFIG= … … 4976 5309 else 4977 5310 CFG_XSHAPE=no 5311 fi 5312 fi 5313 fi 5314 5315 # auto-detect XSync support 5316 if [ "$CFG_XSYNC" != "no" ]; then 5317 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xsync "XSync" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then 5318 CFG_XSYNC=yes 5319 else 5320 if [ "$CFG_XSYNC" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then 5321 echo "XSync support cannot be enabled due to functionality tests!" 5322 echo " Turn on verbose messaging (-v) to $0 to see the final report." 5323 echo " If you believe this message is in error you may use the continue" 5324 echo " switch (-continue) to $0 to continue." 5325 exit 101 5326 else 5327 CFG_XSYNC=no 4978 5328 fi 4979 5329 fi … … 5088 5438 elif [ "$CFG_OPENGL" = "es1" ]; then 5089 5439 # OpenGL ES 1.x 5090 if ! "$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 5440 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS 5441 if [ $? != "0" ]; then 5091 5442 echo "The OpenGL ES 1.x functionality test failed!" 5092 5443 echo " You might need to modify the include and library search paths by editing" … … 5097 5448 elif [ "$CFG_OPENGL" = "es2" ]; then 5098 5449 #OpenGL ES 2.x 5099 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 5450 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS 5451 if [ $? != "0" ]; then 5100 5452 echo "The OpenGL ES 2.0 functionality test failed!" 5101 5453 echo " You might need to modify the include and library search paths by editing" … … 5113 5465 for screen in ${CFG_GFX_ON} ${CFG_GFX_PLUGIN}; do 5114 5466 if [ "${screen}" = "ahi" ] && [ "${CFG_CONFIGURE_EXIT_ON_ERROR}" = "yes" ]; then 5115 if ! "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/qws/ahi "Ahi" $L_FLAGS $I_FLAGS $l_FLAGS; then 5467 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/qws/ahi "Ahi" $L_FLAGS $I_FLAGS $l_FLAGS 5468 if [ $? != "0" ]; then 5116 5469 echo "The Ahi screen driver functionality test failed!" 5117 5470 echo " You might need to modify the include and library search paths by editing" … … 5123 5476 5124 5477 if [ "${screen}" = "svgalib" ] && [ "${CFG_CONFIGURE_EXIT_ON_ERROR}" = "yes" ]; then 5125 if ! "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/qws/svgalib "SVGAlib" $L_FLAGS $I_FLAGS $l_FLAGS; then 5478 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/qws/svgalib "SVGAlib" $L_FLAGS $I_FLAGS $l_FLAGS 5479 if [ $? != "0" ]; then 5126 5480 echo "The SVGAlib screen driver functionality test failed!" 5127 5481 echo " You might need to modify the include and library search paths by editing" … … 5148 5502 QMakeVar set QT_LIBS_DIRECTFB "$QT_LIBS_DIRECTFB" 5149 5503 fi 5150 5151 if ! "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/qws/directfb "DirectFB" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_DIRECTFB $QT_LIBS_DIRECTFB; then 5504 if [ "$CFG_QT3SUPPORT" = "yes" ]; then 5505 QMakeVar set QT_DEFINES_DIRECTFB "QT3_SUPPORT" 5506 fi 5507 5508 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/qws/directfb "DirectFB" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_DIRECTFB $QT_LIBS_DIRECTFB 5509 if [ $? != "0" ]; then 5152 5510 echo "The DirectFB screen driver functionality test failed!" 5153 5511 echo " You might need to modify the include and library search paths by editing" … … 5163 5521 for mouse in ${CFG_MOUSE_ON} ${CFG_MOUSE_PLUGIN}; do 5164 5522 if [ "${mouse}" = "tslib" ] && [ "${CFG_CONFIGURE_EXIT_ON_ERROR}" = "yes" ]; then 5165 if ! "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/tslib "tslib" $L_FLAGS $I_FLAGS $l_FLAGS; then 5523 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/tslib "tslib" $L_FLAGS $I_FLAGS $l_FLAGS 5524 if [ $? != "0" ]; then 5166 5525 echo "The tslib functionality test failed!" 5167 5526 echo " You might need to modify the include and library search paths by editing" … … 5176 5535 5177 5536 # sound 5178 if ! "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/qws/sound "sound" $L_FLAGS $I_FLAGS $l_FLAGS; then 5537 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/qws/sound "sound" $L_FLAGS $I_FLAGS $l_FLAGS 5538 if [ $? != "0" ]; then 5179 5539 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SOUND" 5180 5540 fi … … 5186 5546 [ "x$PLATFORM_MAC" = "xyes" ] && CFG_LIBFREETYPE=no 5187 5547 if [ "$CFG_LIBFREETYPE" = "auto" ]; then 5188 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/freetype "FreeType" $L_FLAGS $I_FLAGS $l_FLAGS ; then5548 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 5189 5549 CFG_LIBFREETYPE=system 5190 5550 else … … 5303 5663 # find if the platform supports IPv6 5304 5664 if [ "$CFG_IPV6" != "no" ]; then 5305 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/ipv6 "IPv6" $L_FLAGS $I_FLAGS $l_FLAGS ; then5665 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 5306 5666 CFG_IPV6=yes 5307 5667 else … … 5434 5794 # detect OpenSSL 5435 5795 if [ "$CFG_OPENSSL" != "no" ]; then 5436 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/openssl "OpenSSL" $L_FLAGS $I_FLAGS $l_FLAGS ; then5796 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 5437 5797 if [ "$CFG_OPENSSL" = "auto" ]; then 5438 5798 CFG_OPENSSL=yes … … 5451 5811 fi 5452 5812 5813 # detect OpenVG support 5814 if [ "$CFG_OPENVG" != "no" ]; then 5815 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 5816 if [ "$CFG_OPENVG" = "auto" ]; then 5817 CFG_OPENVG=yes 5818 fi 5819 elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG openvg_on_opengl" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/openvg" "OpenVG" $L_FLAGS $I_FLAGS $l_FLAGS $CONFIG_ARG; then 5820 if [ "$CFG_OPENVG" = "auto" ]; then 5821 CFG_OPENVG=yes 5822 fi 5823 CFG_OPENVG_ON_OPENGL=yes 5824 elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG lower_case_includes" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/openvg" "OpenVG (lc includes)" $L_FLAGS $I_FLAGS $l_FLAGS $CONFIG_ARG; then 5825 if [ "$CFG_OPENVG" = "auto" ]; then 5826 CFG_OPENVG=yes 5827 fi 5828 CFG_OPENVG_LC_INCLUDES=yes 5829 elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG openvg_on_opengl lower_case_includes" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/openvg" "OpenVG (lc includes)" $L_FLAGS $I_FLAGS $l_FLAGS $CONFIG_ARG; then 5830 if [ "$CFG_OPENVG" = "auto" ]; then 5831 CFG_OPENVG=yes 5832 fi 5833 CFG_OPENVG_LC_INCLUDES=yes 5834 CFG_OPENVG_ON_OPENGL=yes 5835 else 5836 if [ "$CFG_OPENVG" != "auto" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then 5837 echo "$CFG_OPENVG was specified for OpenVG but cannot be enabled due to functionality tests!" 5838 echo " Turn on verbose messaging (-v) to $0 to see the final report." 5839 echo " If you believe this message is in error you may use the continue" 5840 echo " switch (-continue) to $0 to continue." 5841 exit 101 5842 else 5843 CFG_OPENVG=no 5844 fi 5845 fi 5846 if [ "$CFG_OPENVG" = "yes" ] && "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/shivavg" "ShivaVG" $L_FLAGS $I_FLAGS $l_FLAGS $CONFIG_ARG; then 5847 CFG_OPENVG_SHIVA=yes 5848 fi 5849 fi 5850 5851 # if openvg is disabled and the user specified graphicssystem vg, disable it... 5852 if [ "$CFG_GRAPHICS_SYSTEM" = "openvg" ] && [ "$CFG_OPENVG" = "no" ]; then 5853 echo "OpenVG Graphics System is disabled due to missing OpenVG support..." 5854 CFG_GRAPHICS_SYSTEM=default 5855 fi 5856 5453 5857 if [ "$CFG_PTMALLOC" != "no" ]; then 5454 5858 # build ptmalloc, copy .a file to lib/ … … 5458 5862 5459 5863 QMakeVar add QMAKE_LFLAGS "$outpath/lib/libptmalloc3.a" 5864 fi 5865 5866 if [ "$CFG_ALSA" = "auto" ]; then 5867 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/alsa "alsa" $L_FLAGS $I_FLAGS $l_FLAGS; then 5868 CFG_ALSA=yes 5869 else 5870 CFG_ALSA=no 5871 fi 5872 fi 5873 5874 if [ -f "$relpath/src/declarative/declarative.pro" ]; then 5875 if [ "$CFG_DECLARATIVE" = "auto" ]; then 5876 CFG_DECLARATIVE=yes 5877 fi 5878 else 5879 if [ "$CFG_DECLARATIVE" = "auto" ] || [ "$CFG_DECLARATIVE" = "no" ]; then 5880 CFG_DECLARATIVE=no 5881 else 5882 echo "Error: Unable to locate the qt-declarative package. Refer to the documentation on how to build the package." 5883 exit 1 5884 fi 5885 fi 5886 5887 if [ "$CFG_JAVASCRIPTCORE_JIT" = "yes" ] || [ "$CFG_JAVASCRIPTCORE_JIT" = "auto" ]; then 5888 if [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]; then 5889 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/javascriptcore-jit "javascriptcore-jit" $L_FLAGS $I_FLAGS $l_FLAGS 5890 if [ $? != "0" ]; then 5891 CFG_JAVASCRIPTCORE_JIT=no 5892 fi 5893 fi 5894 fi 5895 5896 if [ "$CFG_JAVASCRIPTCORE_JIT" = "yes" ]; then 5897 QMakeVar set JAVASCRIPTCORE_JIT yes 5898 elif [ "$CFG_JAVASCRIPTCORE_JIT" = "no" ]; then 5899 QMakeVar set JAVASCRIPTCORE_JIT no 5460 5900 fi 5461 5901 … … 5503 5943 fi 5504 5944 5505 # Set the default arch. Select 32-bit/carbon if nothing else has 5506 # been specified on the configure line. 5507 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_ARCHS" == "" ]; then 5945 # Set the default arch. 5946 # Carbon builds: 32 bit x86/ppc. 5947 # For "-cocoa" builds on snow leopard : compiler default (64-bit). 5948 # For "-cocoa" builds on leopard : compiler default (32-bit). 5949 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_ARCHS" = "" ]; then 5508 5950 source "$mactests/defaultarch.test" "$TEST_COMPILER" "$OPT_VERBOSE" "$mactests" 5509 5951 5510 if [ "$QT_MAC_DEFUALT_ARCH" == "x86_64" ]; then 5511 CFG_MAC_ARCHS=" x86" 5512 elif [ "$QT_MAC_DEFUALT_ARCH" == "ppc64" ]; then 5513 CFG_MAC_ARCHS=" ppc" 5514 else 5515 CFG_MAC_ARCHS=" $QT_MAC_DEFUALT_ARCH" 5516 fi 5517 5518 [ "$OPT_VERBOSE" == "yes" ] && echo "Setting Mac architechture to$CFG_MAC_ARCHS." 5952 if [ "$CFG_MAC_COCOA" != "yes" ]; then 5953 if [ "$QT_MAC_DEFAULT_ARCH" = "x86_64" ]; then 5954 CFG_MAC_ARCHS=" x86" 5955 elif [ "$QT_MAC_DEFAULT_ARCH" = "ppc64" ]; then 5956 CFG_MAC_ARCHS=" ppc" 5957 else 5958 CFG_MAC_ARCHS=" $QT_MAC_DEFAULT_ARCH" 5959 fi 5960 else 5961 CFG_MAC_ARCHS=" $QT_MAC_DEFAULT_ARCH" 5962 fi 5963 5964 [ "$OPT_VERBOSE" = "yes" ] && echo "Setting Mac architechture to$CFG_MAC_ARCHS." 5519 5965 fi 5520 5966 … … 5540 5986 fi; 5541 5987 5542 # set the global Mac deployment target. This is overridden on an arch-by-arch basis 5988 # set the global Mac deployment target. This is overridden on an arch-by-arch basis 5543 5989 # in some cases, see code further down 5544 5990 case "$PLATFORM,$CFG_MAC_COCOA" in … … 5546 5992 # Cocoa 5547 5993 QMakeVar set QMAKE_MACOSX_DEPLOYMENT_TARGET 10.5 5548 CFG_QT3SUPPORT="no"5549 ;;5550 macx-icc,*)5551 # Intel CC, Carbon5552 QMakeVar set QMAKE_MACOSX_DEPLOYMENT_TARGET 10.45553 5994 ;; 5554 5995 macx*,no) 5555 5996 # gcc, Carbon 5556 QMakeVar set QMAKE_MACOSX_DEPLOYMENT_TARGET 10. 35997 QMakeVar set QMAKE_MACOSX_DEPLOYMENT_TARGET 10.4 5557 5998 ;; 5999 esac 6000 6001 # disable Qt 3 support on VxWorks 6002 case "$XPLATFORM" in 6003 unsupported/vxworks*) 6004 CFG_QT3SUPPORT="no" 6005 ;; 5558 6006 esac 5559 6007 … … 5578 6026 else 5579 6027 QT_CONFIG="$QT_CONFIG accessibility" 6028 fi 6029 6030 # enable egl 6031 if [ "$CFG_EGL" = "no" ]; then 6032 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_EGL" 6033 else 6034 QT_CONFIG="$QT_CONFIG egl" 6035 if [ "$CFG_EGL_GLES_INCLUDES" = "yes" ]; then 6036 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GLES_EGL" 6037 fi 6038 fi 6039 6040 # enable openvg 6041 if [ "$CFG_OPENVG" = "no" ]; then 6042 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_OPENVG" 6043 else 6044 QT_CONFIG="$QT_CONFIG openvg" 6045 if [ "$CFG_OPENVG_LC_INCLUDES" = "yes" ]; then 6046 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_LOWER_CASE_VG_INCLUDES" 6047 fi 6048 if [ "$CFG_OPENVG_ON_OPENGL" = "yes" ]; then 6049 QT_CONFIG="$QT_CONFIG openvg_on_opengl" 6050 fi 6051 if [ "$CFG_OPENVG_SHIVA" = "yes" ]; then 6052 QT_CONFIG="$QT_CONFIG shivavg" 6053 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_SHIVAVG" 6054 fi 5580 6055 fi 5581 6056 … … 5660 6135 QMAKE_CONFIG="$QMAKE_CONFIG separate_debug_info" 5661 6136 fi 6137 if [ "$CFG_SEPARATE_DEBUG_INFO_NOCOPY" = "yes" ] ; then 6138 QMAKE_CONFIG="$QMAKE_CONFIG separate_debug_info_nocopy" 6139 fi 5662 6140 [ "$CFG_MMX" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG mmx" 5663 6141 [ "$CFG_3DNOW" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG 3dnow" … … 5665 6143 [ "$CFG_SSE2" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse2" 5666 6144 [ "$CFG_IWMMXT" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG iwmmxt" 6145 [ "$CFG_NEON" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG neon" 5667 6146 [ "$PLATFORM_MAC" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG $CFG_MAC_ARCHS" 5668 6147 if [ "$CFG_IPV6" = "yes" ]; then … … 5690 6169 QT_CONFIG="$QT_CONFIG inotify" 5691 6170 fi 5692 if [ "$CFG_LIBJPEG" = "system" ]; then 6171 if [ "$CFG_LIBJPEG" = "no" ]; then 6172 CFG_JPEG="no" 6173 elif [ "$CFG_LIBJPEG" = "system" ]; then 5693 6174 QT_CONFIG="$QT_CONFIG system-jpeg" 5694 6175 fi … … 5698 6179 QT_CONFIG="$QT_CONFIG jpeg" 5699 6180 fi 5700 if [ "$CFG_LIBMNG" = "system" ]; then 6181 if [ "$CFG_LIBMNG" = "no" ]; then 6182 CFG_MNG="no" 6183 elif [ "$CFG_LIBMNG" = "system" ]; then 5701 6184 QT_CONFIG="$QT_CONFIG system-mng" 5702 6185 fi … … 5722 6205 QT_CONFIG="$QT_CONFIG gif" 5723 6206 fi 5724 if [ "$CFG_LIBTIFF" = "system" ]; then 6207 if [ "$CFG_LIBTIFF" = "no" ]; then 6208 CFG_TIFF="no" 6209 elif [ "$CFG_LIBTIFF" = "system" ]; then 5725 6210 QT_CONFIG="$QT_CONFIG system-tiff" 5726 6211 fi … … 5769 6254 QT_CONFIG="$QT_CONFIG xshape" 5770 6255 fi 6256 if [ "$CFG_XSYNC" = "yes" ]; then 6257 QT_CONFIG="$QT_CONFIG xsync" 6258 fi 5771 6259 if [ "$CFG_XINERAMA" = "yes" ]; then 5772 6260 QT_CONFIG="$QT_CONFIG xinerama" … … 5861 6349 fi 5862 6350 6351 if [ "$CFG_ALSA" = "yes" ]; then 6352 QT_CONFIG="$QT_CONFIG alsa" 6353 fi 6354 5863 6355 # 5864 6356 # Some Qt modules are too advanced in C++ for some old compilers … … 5870 6362 canBuildQtXmlPatterns="yes" 5871 6363 canBuildWebKit="$HAVE_STL" 6364 canBuildQtConcurrent="yes" 5872 6365 5873 6366 # WebKit requires stdint.h … … 5896 6389 esac 5897 6390 ;; 6391 unsupported/vxworks-*-g++*) 6392 canBuildWebKit="no" 6393 ;; 6394 unsupported/vxworks-*-dcc*) 6395 canBuildWebKit="no" 6396 canBuildQtXmlPatterns="no" 6397 ;; 5898 6398 *-g++*) 5899 6399 # Check gcc's version … … 5901 6401 4*|3.4*) 5902 6402 ;; 5903 5904 5905 6403 3.3*) 6404 canBuildWebKit="no" 6405 ;; 5906 6406 *) 5907 6407 canBuildWebKit="no" … … 5911 6411 ;; 5912 6412 solaris-cc*) 5913 # Check the compiler version 5914 case `${QMAKE_CONF_COMPILER} -V 2>&1 | awk '{print $4}'` in 5915 *) 5916 canBuildWebKit="no" 5917 canBuildQtXmlPatterns="no" 5918 ;; 5919 esac 5920 ;; 6413 # Check the compiler version 6414 case `${QMAKE_CONF_COMPILER} -V 2>&1 | awk '{print $4}'` in 6415 5.[012345678]) 6416 canBuildWebKit="no" 6417 canBuildQtXmlPatterns="no" 6418 canBuildQtConcurrent="no" 6419 ;; 6420 5.9) 6421 canBuildWebKit="no" 6422 canBuildQtConcurrent="no" 6423 ;; 6424 esac 6425 ;; 5921 6426 hpux-acc*) 5922 6427 canBuildWebKit="no" 5923 6428 canBuildQtXmlPatterns="no" 6429 canBuildQtConcurrent="no" 5924 6430 ;; 5925 6431 hpuxi-acc*) … … 5927 6433 ;; 5928 6434 aix-xlc*) 5929 canBuildWebKit="no" 5930 canBuildQtXmlPatterns="no" 5931 ;; 6435 # Get the xlC version 6436 cat > xlcver.c <<EOF 6437 #include <stdio.h> 6438 int main() 6439 { 6440 printf("%d.%d\n", __xlC__ >> 8, __xlC__ & 0xFF); 6441 return 0; 6442 } 6443 EOF 6444 xlcver= 6445 if ${QMAKE_CONF_COMPILER} -o xlcver xlcver.c >/dev/null 2>/dev/null; then 6446 xlcver=`./xlcver 2>/dev/null` 6447 rm -f ./xlcver 6448 fi 6449 if [ "$OPT_VERBOSE" = "yes" ]; then 6450 if [ -n "$xlcver" ]; then 6451 echo Found IBM xlC version: $xlcver. 6452 else 6453 echo Could not determine IBM xlC version, assuming oldest supported. 6454 fi 6455 fi 6456 6457 case "$xlcver" in 6458 [123456].*) 6459 canBuildWebKit="no" 6460 canBuildQtXmlPatterns="no" 6461 canBuildQtConcurrent="no" 6462 ;; 6463 *) 6464 canBuildWebKit="no" 6465 canBuildQtConcurrent="no" 6466 ;; 6467 esac 6468 ;; 5932 6469 irix-cc*) 5933 6470 canBuildWebKit="no" 6471 canBuildQtConcurrent="no" 5934 6472 ;; 5935 6473 esac 6474 6475 CFG_CONCURRENT="yes" 6476 if [ "$canBuildQtConcurrent" = "no" ]; then 6477 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CONCURRENT" 6478 CFG_CONCURRENT="no" 6479 fi 5936 6480 5937 6481 if [ "$CFG_XMLPATTERNS" = "yes" -a "$CFG_EXCEPTIONS" = "no" ]; then … … 5950 6494 fi 5951 6495 6496 if [ "$CFG_MULTIMEDIA" = "no" ]; then 6497 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_MULTIMEDIA" 6498 else 6499 QT_CONFIG="$QT_CONFIG multimedia" 6500 fi 6501 6502 if [ "$CFG_AUDIO_BACKEND" = "yes" ]; then 6503 QT_CONFIG="$QT_CONFIG audio-backend" 6504 fi 6505 5952 6506 if [ "$CFG_SVG" = "yes" ]; then 5953 6507 QT_CONFIG="$QT_CONFIG svg" 5954 6508 else 5955 6509 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SVG" 6510 fi 6511 6512 if [ "$CFG_DECLARATIVE" = "yes" ]; then 6513 QT_CONFIG="$QT_CONFIG declarative" 6514 else 6515 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_DECLARATIVE" 5956 6516 fi 5957 6517 … … 5969 6529 fi 5970 6530 5971 if [ "$CFG_SCRIPTTOOLS" = "auto" ]; then 6531 if [ "$CFG_SCRIPT" = "auto" ]; then 6532 CFG_SCRIPT="yes" 6533 fi 6534 6535 if [ "$CFG_SCRIPT" = "yes" ]; then 6536 QT_CONFIG="$QT_CONFIG script" 6537 else 6538 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SCRIPT" 6539 fi 6540 6541 if [ "$CFG_SCRIPTTOOLS" = "yes" -a "$CFG_SCRIPT" = "no" ]; then 6542 echo "QtScriptTools was requested, but it can't be built due to QtScript being disabled." 6543 exit 1 6544 fi 6545 if [ "$CFG_SCRIPTTOOLS" = "auto" -a "$CFG_SCRIPT" != "no" ]; then 5972 6546 CFG_SCRIPTTOOLS="yes" 6547 elif [ "$CFG_SCRIPT" = "no" ]; then 6548 CFG_SCRIPTTOOLS="no" 5973 6549 fi 5974 6550 5975 6551 if [ "$CFG_SCRIPTTOOLS" = "yes" ]; then 5976 6552 QT_CONFIG="$QT_CONFIG scripttools" 5977 CFG_SCRIPTTOOLS="yes"5978 6553 else 5979 6554 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SCRIPTTOOLS" … … 6002 6577 fi 6003 6578 6004 # On Mac, set the minimum deployment target using Xarch when that is supported (10.5 and up). 6005 # On 10.4 the deployment version is set to 10.3 globally using the QMAKE_MACOSX_DEPLOYMENT_TARGET env. variable 6006 # "-cocoa" on the command line means Cocoa is used in 32-bit mode also, in this case fall back on 6007 # QMAKE_MACOSX_DEPLOYMENT_TARGET which will be set to 10.5. 6579 # On Mac, set the minimum deployment target for the different architechtures 6580 # using the Xarch compiler option when supported (10.5 and up). On 10.4 the 6581 # deployment version is set to 10.4 globally using the QMAKE_MACOSX_DEPLOYMENT_TARGET 6582 # env. variable. "-cocoa" on the command line means Cocoa is used in 32-bit mode also, 6583 # in this case fall back on QMAKE_MACOSX_DEPLOYMENT_TARGET which will be set to 10.5. 6008 6584 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_XARCH" != "no" ] && [ "$COMMANDLINE_MAC_COCOA" != "yes" ]; then 6009 6585 if echo "$CFG_MAC_ARCHS" | grep '\<x86\>' > /dev/null 2>&1; then … … 6014 6590 fi 6015 6591 if echo "$CFG_MAC_ARCHS" | grep '\<ppc\>' > /dev/null 2>&1; then 6016 QMakeVar add QMAKE_CFLAGS "-Xarch_ppc -mmacosx-version-min=10. 3"6017 QMakeVar add QMAKE_CXXFLAGS "-Xarch_ppc -mmacosx-version-min=10. 3"6018 QMakeVar add QMAKE_LFLAGS "-Xarch_ppc -mmacosx-version-min=10. 3"6019 QMakeVar add QMAKE_OBJECTIVE_CFLAGS_PPC "-arch ppc -Xarch_ppc -mmacosx-version-min=10. 3"6592 QMakeVar add QMAKE_CFLAGS "-Xarch_ppc -mmacosx-version-min=10.4" 6593 QMakeVar add QMAKE_CXXFLAGS "-Xarch_ppc -mmacosx-version-min=10.4" 6594 QMakeVar add QMAKE_LFLAGS "-Xarch_ppc -mmacosx-version-min=10.4" 6595 QMakeVar add QMAKE_OBJECTIVE_CFLAGS_PPC "-arch ppc -Xarch_ppc -mmacosx-version-min=10.4" 6020 6596 fi 6021 6597 if echo "$CFG_MAC_ARCHS" | grep '\<x86_64\>' > /dev/null 2>&1; then … … 6087 6663 # network canvas table xml opengl sql 6088 6664 # 6089 # Options:6665 # Things that do not affect the Qt API/ABI: 6090 6666 # stl 6091 #6092 # Things that do not affect the Qt API/ABI:6093 6667 # system-jpeg no-jpeg jpeg 6094 6668 # system-mng no-mng mng … … 6100 6674 # dll staticlib 6101 6675 # 6102 # internal6103 6676 # nocrosscompiler 6104 6677 # GNUmake … … 6112 6685 # Embedded: embedded freetype 6113 6686 # 6114 ALL_OPTIONS= "stl"6687 ALL_OPTIONS= 6115 6688 BUILD_CONFIG= 6116 6689 BUILD_OPTIONS= … … 6124 6697 # and is the one that we will use for tagging plugins 6125 6698 BUILD_CONFIG="$config_option" 6126 ;;6127 6128 stl)6129 # these config options affect the Qt API/ABI. they should influence6130 # the generation of the buildkey, so we don't skip them6131 SKIP="no"6132 6699 ;; 6133 6700 … … 6451 7018 [ "$CFG_GRAPHICS_SYSTEM" = "raster" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_RASTER" 6452 7019 [ "$CFG_GRAPHICS_SYSTEM" = "opengl" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_OPENGL" 7020 [ "$CFG_GRAPHICS_SYSTEM" = "openvg" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_OPENVG" 6453 7021 fi 6454 7022 … … 6480 7048 [ "$CFG_MITSHM" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_MITSHM" 6481 7049 [ "$CFG_XSHAPE" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SHAPE" 7050 [ "$CFG_XSYNC" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XSYNC" 6482 7051 [ "$CFG_XINPUT" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XINPUT QT_NO_TABLET" 6483 7052 … … 6487 7056 [ "$CFG_XRANDR" = "runtime" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XRANDR" 6488 7057 [ "$CFG_XINPUT" = "runtime" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XINPUT" 7058 [ "$CFG_ALSA" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ALSA" 6489 7059 6490 7060 # sort QCONFIG_FLAGS for neatness if we can … … 6580 7150 QT_CONFIG="$QT_CONFIG $CFG_MAC_ARCHS" 6581 7151 fi 7152 if [ "$CFG_DEV" = "yes" ]; then 7153 QT_CONFIG="$QT_CONFIG private_tests" 7154 fi 6582 7155 6583 7156 # Make the application arch follow the Qt arch for single arch builds. … … 6646 7219 EOF 6647 7220 7221 # Ensure we can link to uninistalled libraries 7222 if linkerSupportsFlag -rpath-link "$outpath/lib"; then 7223 echo "QMAKE_LFLAGS += -Wl,-rpath-link,\$\$QT_BUILD_TREE/lib" >> "$CACHEFILE.tmp" 7224 fi 7225 6648 7226 if [ -n "$QT_CFLAGS_PSQL" ]; then 6649 7227 echo "QT_CFLAGS_PSQL = $QT_CFLAGS_PSQL" >> "$CACHEFILE.tmp" … … 6663 7241 if [ -n "$QT_LFLAGS_SQLITE" ]; then 6664 7242 echo "QT_LFLAGS_SQLITE = $QT_LFLAGS_SQLITE" >> "$CACHEFILE.tmp" 7243 fi 7244 if [ -n "$QT_LFLAGS_ODBC" ]; then 7245 echo "QT_LFLAGS_ODBC = $QT_LFLAGS_ODBC" >> "$CACHEFILE.tmp" 6665 7246 fi 6666 7247 … … 6763 7344 esac 6764 7345 6765 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_DWARF2" = = "no" ] && [ "$CFG_WEBKIT" = "yes" ] && [ "$CFG_DEBUG_RELEASE" == "yes" ]; then7346 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_DWARF2" = "no" ] && [ "$CFG_WEBKIT" = "yes" ] && [ "$CFG_DEBUG_RELEASE" = "yes" ]; then 6766 7347 cat <<EOF 6767 7348 WARNING: DWARF2 debug symbols are not enabled. Linking webkit … … 6836 7417 [ "$CFG_DBUS" = "yes" ] && echo "QtDBus module ....... yes (run-time)" 6837 7418 [ "$CFG_DBUS" = "linked" ] && echo "QtDBus module ....... yes (linked)" 7419 echo "QtConcurrent code.... $CFG_CONCURRENT" 7420 echo "QtScript module ..... $CFG_SCRIPT" 6838 7421 echo "QtScriptTools module $CFG_SCRIPTTOOLS" 6839 7422 echo "QtXmlPatterns module $CFG_XMLPATTERNS" 6840 7423 echo "Phonon module ....... $CFG_PHONON" 7424 echo "Multimedia module ... $CFG_MULTIMEDIA" 6841 7425 echo "SVG module .......... $CFG_SVG" 6842 7426 echo "WebKit module ....... $CFG_WEBKIT" 7427 if [ "$CFG_WEBKIT" = "yes" ]; then 7428 if [ "$CFG_JAVASCRIPTCORE_JIT" = "auto" ]; then 7429 echo "JavaScriptCore JIT .. To be decided by JavaScriptCore" 7430 else 7431 echo "JavaScriptCore JIT .. $CFG_JAVASCRIPTCORE_JIT" 7432 fi 7433 fi 7434 echo "Declarative module .. $CFG_DECLARATIVE" 6843 7435 echo "STL support ......... $CFG_STL" 6844 7436 echo "PCH support ......... $CFG_PRECOMPILE" 6845 7437 echo "MMX/3DNOW/SSE/SSE2.. ${CFG_MMX}/${CFG_3DNOW}/${CFG_SSE}/${CFG_SSE2}" 6846 if [ "$ {CFG_ARCH}" = "arm" ]; then7438 if [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]; then 6847 7439 echo "iWMMXt support ...... ${CFG_IWMMXT}" 7440 echo "NEON support ........ ${CFG_NEON}" 6848 7441 fi 6849 7442 [ "${PLATFORM_QWS}" != "yes" ] && echo "Graphics System ..... $CFG_GRAPHICS_SYSTEM" … … 6918 7511 echo "OpenGL support ...... no" 6919 7512 fi 7513 if [ "$CFG_EGL" != "no" ]; then 7514 if [ "$CFG_EGL_GLES_INCLUDES" != "no" ]; then 7515 echo "EGL support ......... yes <GLES/egl.h>" 7516 else 7517 echo "EGL support ......... yes <EGL/egl.h>" 7518 fi 7519 fi 7520 if [ "$CFG_OPENVG" ]; then 7521 if [ "$CFG_OPENVG_SHIVA" = "yes" ]; then 7522 echo "OpenVG support ...... ShivaVG" 7523 else 7524 echo "OpenVG support ...... $CFG_OPENVG" 7525 fi 7526 fi 6920 7527 if [ "$PLATFORM_X11" = "yes" ]; then 6921 7528 echo "NAS sound support ... $CFG_NAS" 6922 7529 echo "XShape support ...... $CFG_XSHAPE" 7530 echo "XSync support ....... $CFG_XSYNC" 6923 7531 echo "Xinerama support .... $CFG_XINERAMA" 6924 7532 echo "Xcursor support ..... $CFG_XCURSOR" … … 6974 7582 echo 6975 7583 fi 7584 echo "alsa support ........ $CFG_ALSA" 6976 7585 echo 6977 7586 … … 7018 7627 FNR == 1 { 7019 7628 if ( input_file ) { 7020 if ( ! target_file )7021 target_file = third7022 print input_file >target_file7629 if ( ! target_file ) 7630 target_file = third 7631 print input_file >target_file 7023 7632 } 7024 7633 … … 7031 7640 /^(TARGET.*=)/ { 7032 7641 if ( \$3 == "moc" || \$3 ~ /^Qt/ ) { 7033 target_file = first 7642 target_file = first 7643 matched_target = 1 7644 } else if ( \$3 == "lrelease" || \$3 == "qm_phony_target" ) { 7645 target_file = second 7034 7646 matched_target = 1 7035 7647 } … … 7038 7650 matched_target == 0 && /^(TEMPLATE.*=)/ { 7039 7651 if ( \$3 == "subdirs" ) 7040 target_file = second7652 target_file = second 7041 7653 else if ( \$3 == "lib" ) 7042 template_lib = 17043 else 7044 target_file = third7654 template_lib = 1 7655 else 7656 target_file = third 7045 7657 } 7046 7658 … … 7049 7661 target_file = third 7050 7662 else 7051 target_file = second7663 target_file = second 7052 7664 } 7053 7665 7054 7666 END { 7055 7667 if ( input_file ) { 7056 if ( ! target_file )7057 target_file = third7058 print input_file >>target_file7668 if ( ! target_file ) 7669 target_file = third 7670 print input_file >>target_file 7059 7671 } 7060 7672 } … … 7117 7729 tools) PART_ROOTS="$PART_ROOTS tools" ;; 7118 7730 libs) PART_ROOTS="$PART_ROOTS src" ;; 7731 translations) PART_ROOTS="$PART_ROOTS tools/linguist/lrelease translations" ;; 7119 7732 examples) PART_ROOTS="$PART_ROOTS examples demos" ;; 7120 7733 *) ;; … … 7141 7754 case $a in 7142 7755 *winmain/winmain.pro) continue ;; 7756 *s60main/s60main.pro) continue ;; 7757 *examples/activeqt/*) continue ;; 7143 7758 */qmake/qmake.pro) continue ;; 7144 *tools/bootstrap*|*tools/moc*|*tools/rcc*|*tools/uic* ) SPEC=$QMAKESPEC ;;7759 *tools/bootstrap*|*tools/moc*|*tools/rcc*|*tools/uic*|*linguist/lrelease*) SPEC=$QMAKESPEC ;; 7145 7760 *) SPEC=$XQMAKESPEC ;; 7146 7761 esac 7147 dir=`dirname $a| sed -e "s;$sepath;.;g"`7762 dir=`dirname "$a" | sed -e "s;$sepath;.;g"` 7148 7763 test -d "$dir" || mkdir -p "$dir" 7149 7764 OUTDIR="$outpath/$dir" … … 7288 7903 fi 7289 7904 7290 MAKE=`basename $MAKE`7905 MAKE=`basename "$MAKE"` 7291 7906 echo 7292 7907 echo Qt is now configured for building. Just run \'$MAKE\'.
Note:
See TracChangeset
for help on using the changeset viewer.