configure
changeset 37 758a864f9613
parent 33 3e2da88830cd
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   792 OPT_FAST=auto
   792 OPT_FAST=auto
   793 OPT_VERBOSE=no
   793 OPT_VERBOSE=no
   794 OPT_HELP=
   794 OPT_HELP=
   795 CFG_SILENT=no
   795 CFG_SILENT=no
   796 CFG_GRAPHICS_SYSTEM=default
   796 CFG_GRAPHICS_SYSTEM=default
       
   797 CFG_RUNTIME_SYSTEM=
   797 CFG_ALSA=auto
   798 CFG_ALSA=auto
   798 CFG_PULSEAUDIO=auto
   799 CFG_PULSEAUDIO=auto
   799 CFG_COREWLAN=auto
   800 CFG_COREWLAN=auto
   800 CFG_ICD=auto
   801 CFG_ICD=auto
   801 CFG_NOPROCESS=no
   802 CFG_NOPROCESS=no
   822 QT_LFLAGS_MYSQL=
   823 QT_LFLAGS_MYSQL=
   823 QT_LFLAGS_MYSQL_R=
   824 QT_LFLAGS_MYSQL_R=
   824 QT_CFLAGS_SQLITE=
   825 QT_CFLAGS_SQLITE=
   825 QT_LFLAGS_SQLITE=
   826 QT_LFLAGS_SQLITE=
   826 QT_LFLAGS_ODBC="-lodbc"
   827 QT_LFLAGS_ODBC="-lodbc"
       
   828 QT_LFLAGS_TDS=
   827 
   829 
   828 # flags for libdbus-1
   830 # flags for libdbus-1
   829 QT_CFLAGS_DBUS=
   831 QT_CFLAGS_DBUS=
   830 QT_LIBS_DBUS=
   832 QT_LIBS_DBUS=
   831 
   833 
   835 
   837 
   836 # flags for GStreamer (X11 only)
   838 # flags for GStreamer (X11 only)
   837 QT_CFLAGS_GSTREAMER=
   839 QT_CFLAGS_GSTREAMER=
   838 QT_LIBS_GSTREAMER=
   840 QT_LIBS_GSTREAMER=
   839 
   841 
   840 # flags for icd (Maemo Internet Connection Daemon)
   842 # flags for libconnsettings0 (used for Maemo ICD bearer management plugin)
   841 QT_CFLAGS_ICD=
   843 QT_CFLAGS_CONNSETTINGS=
   842 QT_LIBS_ICD=
   844 QT_LIBS_CONNSETTINGS=
   843 
   845 
   844 #-------------------------------------------------------------------------------
   846 #-------------------------------------------------------------------------------
   845 # check SQL drivers, mouse drivers and decorations available in this package
   847 # check SQL drivers, mouse drivers and decorations available in this package
   846 #-------------------------------------------------------------------------------
   848 #-------------------------------------------------------------------------------
   847 
   849 
  1035     -graphicssystem)
  1037     -graphicssystem)
  1036 	VAR="graphicssystem"
  1038 	VAR="graphicssystem"
  1037 	shift
  1039 	shift
  1038 	VAL=$1
  1040 	VAL=$1
  1039 	;;
  1041 	;;
       
  1042     -runtimegraphicssystem)
       
  1043 	VAR="runtimegraphicssystem"
       
  1044 	shift
       
  1045 	VAL=$1
       
  1046 	;;
  1040     -qtlibinfix)
  1047     -qtlibinfix)
  1041         VAR="qtlibinfix"
  1048         VAR="qtlibinfix"
  1042         shift
  1049         shift
  1043         VAL="$1"
  1050         VAL="$1"
  1044         ;;
  1051         ;;
  1279                 CFG_GRAPHICS_SYSTEM="opengl"
  1286                 CFG_GRAPHICS_SYSTEM="opengl"
  1280             elif [ "$VAL" = "openvg" ]; then
  1287             elif [ "$VAL" = "openvg" ]; then
  1281                 CFG_GRAPHICS_SYSTEM="openvg"
  1288                 CFG_GRAPHICS_SYSTEM="openvg"
  1282             elif [ "$VAL" = "raster" ]; then
  1289             elif [ "$VAL" = "raster" ]; then
  1283                 CFG_GRAPHICS_SYSTEM="raster"
  1290                 CFG_GRAPHICS_SYSTEM="raster"
       
  1291             elif [ "$VAL" = "runtime" ]; then
       
  1292                 CFG_GRAPHICS_SYSTEM="runtime"
  1284             else
  1293             else
  1285                 UNKNOWN_OPT=yes
  1294                 UNKNOWN_OPT=yes
  1286             fi
  1295             fi
       
  1296         fi
       
  1297 	;;
       
  1298     runtimegraphicssystem)
       
  1299         if  [ "$VAL" != "runtime" ]; then
       
  1300             CFG_RUNTIME_SYSTEM="$VAL"
  1287         fi
  1301         fi
  1288 	;;
  1302 	;;
  1289 
  1303 
  1290     qvfb) # left for commandline compatibility, not documented
  1304     qvfb) # left for commandline compatibility, not documented
  1291         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  1305         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  2086         if [ "$OPT" = "plugin" ] || [ "$OPT" = "qt" ]; then
  2100         if [ "$OPT" = "plugin" ] || [ "$OPT" = "qt" ]; then
  2087             if [ "$OPT" = "plugin" ]; then
  2101             if [ "$OPT" = "plugin" ]; then
  2088                 [ "$VAR" = "decoration" ] && QMakeVar del "${VAR}s" "$VAL"
  2102                 [ "$VAR" = "decoration" ] && QMakeVar del "${VAR}s" "$VAL"
  2089                 [ "$VAR" = "decoration" ] && CFG_DECORATION_ON=`echo "${CFG_DECORATION_ON} " | sed "s,${VAL} ,,g"` && CFG_DECORATION_PLUGIN="$CFG_DECORATION_PLUGIN ${VAL}"
  2103                 [ "$VAR" = "decoration" ] && CFG_DECORATION_ON=`echo "${CFG_DECORATION_ON} " | sed "s,${VAL} ,,g"` && CFG_DECORATION_PLUGIN="$CFG_DECORATION_PLUGIN ${VAL}"
  2090                 [ "$VAR" = "kbd" ] && QMakeVar del "${VAR}s" "$VAL"
  2104                 [ "$VAR" = "kbd" ] && QMakeVar del "${VAR}s" "$VAL"
  2091                 [ "$VAR" = "kbd" ] && CFG_KBD_ON=`echo "${CFG_MOUSE_ON} " | sed "s,${VAL} ,,g"` && CFG_KBD_PLUGIN="$CFG_KBD_PLUGIN ${VAL}"
  2105                 [ "$VAR" = "kbd" ] && CFG_KBD_ON=`echo "${CFG_KBD_ON} " | sed "s,${VAL} ,,g"` && CFG_KBD_PLUGIN="$CFG_KBD_PLUGIN ${VAL}"
  2092                 [ "$VAR" = "mouse" ] && QMakeVar del "${VAR}s" "$VAL"
  2106                 [ "$VAR" = "mouse" ] && QMakeVar del "${VAR}s" "$VAL"
  2093                 [ "$VAR" = "mouse" ] && CFG_MOUSE_ON=`echo "${CFG_MOUSE_ON} " | sed "s,${VAL} ,,g"` && CFG_MOUSE_PLUGIN="$CFG_MOUSE_PLUGIN ${VAL}"
  2107                 [ "$VAR" = "mouse" ] && CFG_MOUSE_ON=`echo "${CFG_MOUSE_ON} " | sed "s,${VAL} ,,g"` && CFG_MOUSE_PLUGIN="$CFG_MOUSE_PLUGIN ${VAL}"
  2094                 [ "$VAR" = "gfx" ] && QMakeVar del "${VAR}s" "$VAL"
  2108                 [ "$VAR" = "gfx" ] && QMakeVar del "${VAR}s" "$VAL"
  2095                 [ "$VAR" = "gfx" ] && CFG_GFX_ON=`echo "${CFG_GFX_ON} " | sed "s,${VAL} ,,g"` && CFG_GFX_PLUGIN="${CFG_GFX_PLUGIN} ${VAL}"
  2109                 [ "$VAR" = "gfx" ] && CFG_GFX_ON=`echo "${CFG_GFX_ON} " | sed "s,${VAL} ,,g"` && CFG_GFX_PLUGIN="${CFG_GFX_PLUGIN} ${VAL}"
  2096                 VAR="${VAR}-${OPT}"
  2110                 VAR="${VAR}-${OPT}"
  2319     echo
  2333     echo
  2320 fi
  2334 fi
  2321 
  2335 
  2322 # detect build style
  2336 # detect build style
  2323 if [ "$CFG_DEBUG" = "auto" ]; then
  2337 if [ "$CFG_DEBUG" = "auto" ]; then
  2324     if [ "$PLATFORM_MAC" = "yes" ]; then
  2338     if [ "$PLATFORM_MAC" = "yes" -o "$XPLATFORM_MINGW" = "yes" ]; then
  2325         CFG_DEBUG_RELEASE=yes
  2339         CFG_DEBUG_RELEASE=yes
  2326         CFG_DEBUG=yes
  2340         CFG_DEBUG=yes
  2327     elif [ "$CFG_DEV" = "yes" ]; then
  2341     elif [ "$CFG_DEV" = "yes" ]; then
  2328         CFG_DEBUG_RELEASE=no
  2342         CFG_DEBUG_RELEASE=no
  2329         CFG_DEBUG=yes
  2343         CFG_DEBUG=yes
  2398         fi
  2412         fi
  2399     done
  2413     done
  2400 
  2414 
  2401     # symlink the mkspecs directory
  2415     # symlink the mkspecs directory
  2402     mkdir -p "$outpath/mkspecs"
  2416     mkdir -p "$outpath/mkspecs"
  2403     rm -f "$outpath"/mkspecs/*
  2417     rm -rf "$outpath"/mkspecs/*
  2404     ln -s "$relpath"/mkspecs/* "$outpath/mkspecs"
  2418     ln -s "$relpath"/mkspecs/* "$outpath/mkspecs"
  2405     rm -f "$outpath/mkspecs/default"
  2419     rm -f "$outpath/mkspecs/default"
       
  2420 
       
  2421     ShadowMkspecs()
       
  2422     {
       
  2423         rm -rf "$outpath/mkspecs/$1"
       
  2424         if [ "$UNAME_SYSTEM" = "Linux" ]; then
       
  2425             # This works with GNU coreutils, and is needed for ScratchBox
       
  2426             cp -rs "$relpath/mkspecs/$1" "$outpath/mkspecs/$1"
       
  2427         else
       
  2428             # A simple "cp -rs" doesn't work on Mac. :(
       
  2429             find "$relpath/mkspecs/$1" -type d | sed "s,^$relpath,$outpath," | xargs mkdir -p
       
  2430             find "$relpath/mkspecs/$1" -type f | sed "s,^$relpath/,," | xargs -n 1 -I % ln -s "$relpath/%" "$outpath/%"
       
  2431         fi
       
  2432     }
       
  2433 
       
  2434     # Special case for mkspecs/features directory.
       
  2435     # To be able to place .prf files into a shadow build directory,
       
  2436     # we're creating links for files only. The directory structure is reproduced.
       
  2437     ShadowMkspecs features
       
  2438 
       
  2439     # The modules dir is special, too.
       
  2440     ShadowMkspecs modules
  2406 
  2441 
  2407     # symlink the doc directory
  2442     # symlink the doc directory
  2408     rm -rf "$outpath/doc"
  2443     rm -rf "$outpath/doc"
  2409     ln -s "$relpath/doc" "$outpath/doc"
  2444     ln -s "$relpath/doc" "$outpath/doc"
  2410 
  2445 
  3673  +  -script ............ Build the QtScript module.
  3708  +  -script ............ Build the QtScript module.
  3674 
  3709 
  3675     -no-scripttools .... Do not build the QtScriptTools module.
  3710     -no-scripttools .... Do not build the QtScriptTools module.
  3676  +  -scripttools ....... Build the QtScriptTools module.
  3711  +  -scripttools ....... Build the QtScriptTools module.
  3677 
  3712 
  3678  +  -no-declarative .....Do not build the declarative module.
  3713     -no-declarative .....Do not build the declarative module.
  3679     -declarative ....... Build the declarative module.
  3714  +  -declarative ....... Build the declarative module.
  3680 
  3715 
  3681     -platform target ... The operating system and compiler you are building
  3716     -platform target ... The operating system and compiler you are building
  3682                          on ($PLATFORM).
  3717                          on ($PLATFORM).
  3683 
  3718 
  3684                          See the README file for a list of supported
  3719                          See the README file for a list of supported
  3687 if [ "${PLATFORM_QWS}" != "yes" ]; then
  3722 if [ "${PLATFORM_QWS}" != "yes" ]; then
  3688 cat << EOF
  3723 cat << EOF
  3689     -graphicssystem <sys> Sets an alternate graphics system. Available options are:
  3724     -graphicssystem <sys> Sets an alternate graphics system. Available options are:
  3690                            raster - Software rasterizer
  3725                            raster - Software rasterizer
  3691                            opengl - Rendering via OpenGL, Experimental!
  3726                            opengl - Rendering via OpenGL, Experimental!
       
  3727                            openvg - Rendering via OpenVG, Experimental!
       
  3728 
  3692 EOF
  3729 EOF
  3693 fi
  3730 fi
  3694 cat << EOF
  3731 cat << EOF
  3695 
  3732 
  3696     -no-mmx ............ Do not compile with use of MMX instructions.
  3733     -no-mmx ............ Do not compile with use of MMX instructions.
  4875     if test ! -d "$EPOCROOT/epoc32"; then
  4912     if test ! -d "$EPOCROOT/epoc32"; then
  4876         echo "Could not find the 'epoc32' dir in your EPOCROOT."
  4913         echo "Could not find the 'epoc32' dir in your EPOCROOT."
  4877         exit 1
  4914         exit 1
  4878     fi
  4915     fi
  4879 
  4916 
  4880     # the main commands needed to compile;
       
  4881     (cd config.tests/symbian
       
  4882         mkdir -p rcomp
       
  4883         cd rcomp
       
  4884         rm -f rcomp_test.rsg
       
  4885         touch rcomp_test.rpp rcomp_test.rsc rcomp_test.rss
       
  4886         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
       
  4887         if test ! -f rcomp_test.rsg; then
       
  4888             echo "Finding a working rcomp in your PATH failed."
       
  4889             echo "Fatal error. Make sure you have the epoc tools working and in your PATH";
       
  4890             exit 1;
       
  4891         fi
       
  4892     )
       
  4893 
       
  4894     # compile a simple main that uses printf
       
  4895     if ! echo $XPLATFORM | grep symbian-sbsv2 > /dev/null; then
  4917     if ! echo $XPLATFORM | grep symbian-sbsv2 > /dev/null; then
  4896         # Raptor does not support configure tests.
  4918         # Raptor does not support configure tests.
       
  4919 
       
  4920         # the main commands needed to compile;
       
  4921         (cd config.tests/symbian
       
  4922             mkdir -p rcomp
       
  4923             cd rcomp
       
  4924             rm -f rcomp_test.rsg
       
  4925             touch rcomp_test.rpp rcomp_test.rsc rcomp_test.rss
       
  4926             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
       
  4927             if test ! -f rcomp_test.rsg; then
       
  4928                 echo "Finding a working rcomp in your PATH failed."
       
  4929                 echo "Fatal error. Make sure you have the epoc tools working and in your PATH";
       
  4930                 exit 1;
       
  4931             fi
       
  4932         )
       
  4933 
       
  4934         # compile a simple main that uses printf
  4897         if ! "$symbiantests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/symbian/simple "simple" $L_FLAGS $I_FLAGS $l_FLAGS
  4935         if ! "$symbiantests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/symbian/simple "simple" $L_FLAGS $I_FLAGS $l_FLAGS
  4898         then
  4936         then
  4899             echo "Testing your compiler failed. Could not compile a simple application."
  4937             echo "Testing your compiler failed. Could not compile a simple application."
  4900             echo "Fatal error; Rerun configure with -verbose to get more details."
  4938             echo "Fatal error; Rerun configure with -verbose to get more details."
  4901             exit 1;
  4939             exit 1;
  5145                 fi
  5183                 fi
  5146             fi
  5184             fi
  5147             ;;
  5185             ;;
  5148         tds)
  5186         tds)
  5149             if [ "$CFG_SQL_tds" != "no" ]; then
  5187             if [ "$CFG_SQL_tds" != "no" ]; then
  5150                 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
  5188                 [ -z "$SYBASE" ] || QT_LFLAGS_TDS="-L$SYBASE/lib"
       
  5189                 [ -z "$SYBASE_LIBS" ] || QT_LFLAGS_TDS="$QT_LFLAGS_TDS $SYBASE_LIBS"
       
  5190                 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
  5151                     if [ "$CFG_SQL_tds" = "auto" ]; then
  5191                     if [ "$CFG_SQL_tds" = "auto" ]; then
  5152                         CFG_SQL_tds=plugin
  5192                         CFG_SQL_tds=plugin
  5153                     fi
  5193                     fi
  5154                 else
  5194                 else
  5155                     if [ "$CFG_SQL_tds" != "auto" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
  5195                     if [ "$CFG_SQL_tds" != "auto" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
  5414             echo " You might need to either enable the GUI or disable Phonon"
  5454             echo " You might need to either enable the GUI or disable Phonon"
  5415             exit 1
  5455             exit 1
  5416         fi
  5456         fi
  5417     fi
  5457     fi
  5418 
  5458 
  5419     # Auto-detect GStreamer support (needed for both Phonon & QtMultimedia)
  5459     # Auto-detect GStreamer support (needed for Phonon)
  5420     if [ "$CFG_PHONON" != "no" ]; then
  5460     if [ "$CFG_PHONON" != "no" ]; then
  5421         if [ "$CFG_GLIB" = "yes" -a "$CFG_GSTREAMER" != "no" ]; then
  5461         if [ "$CFG_GLIB" = "yes" -a "$CFG_GSTREAMER" != "no" ]; then
  5422             if [ -n "$PKG_CONFIG" ]; then
  5462             if [ -n "$PKG_CONFIG" ]; then
  5423                 QT_CFLAGS_GSTREAMER=`$PKG_CONFIG --cflags gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`
  5463                 QT_CFLAGS_GSTREAMER=`$PKG_CONFIG --cflags gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`
  5424                 QT_LIBS_GSTREAMER=`$PKG_CONFIG --libs gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`
  5464                 QT_LIBS_GSTREAMER=`$PKG_CONFIG --libs gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`
  5465         fi
  5505         fi
  5466     fi
  5506     fi
  5467 
  5507 
  5468     # auto-detect icd support
  5508     # auto-detect icd support
  5469     if [ "$CFG_GLIB" = "yes" -a "$CFG_ICD" != "no" ]; then
  5509     if [ "$CFG_GLIB" = "yes" -a "$CFG_ICD" != "no" ]; then
  5470         # ICD support has a cyclic dependency on Qt.
       
  5471         if [ -n "$PKG_CONFIG" ]; then
  5510         if [ -n "$PKG_CONFIG" ]; then
  5472             QT_CFLAGS_ICD=`$PKG_CONFIG --cflags osso-ic conninet 2>/dev/null`
  5511             QT_CFLAGS_CONNSETTINGS=`$PKG_CONFIG --cflags connsettings 2>/dev/null`
  5473             QT_LIBS_ICD=`$PKG_CONFIG --libs osso-ic conninet 2>/dev/null`
  5512             QT_LIBS_CONNSETTINGS=`$PKG_CONFIG --libs connsettings 2>/dev/null`
  5474             QT_CFLAGS_QTNETWORK=`$PKG_CONFIG --cflags QtNetwork 2>/dev/null`
  5513         fi
  5475             QT_LIBS_QTNETWORK=`$PKG_CONFIG --libs QtNetwork 2>/dev/null`
  5514         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
  5476         else
       
  5477             QT_CFLAGS_QTNETWORK=
       
  5478             QT_LIBS_QTNETWORK=
       
  5479         fi
       
  5480         if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/icd "ICD" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_ICD $QT_LIBS_ICD $QT_CFLAGS_QTNETWORK $QT_LIBS_QTNETWORK; then
       
  5481             [ "$CFG_ICD" = "auto" ] && CFG_ICD=yes
  5515             [ "$CFG_ICD" = "auto" ] && CFG_ICD=yes
  5482             # remove system Qt includes and libraries
  5516             QMakeVar set QT_CFLAGS_CONNSETTINGS "$QT_CFLAGS_CONNSETTINGS"
  5483             QT_CFLAGS_ICD_TRIMMED=
  5517             QMakeVar set QT_LIBS_CONNSETTINGS "$QT_LIBS_CONNSETTINGS"
  5484             for i in $QT_CFLAGS_ICD; do
       
  5485                 case $i in
       
  5486                     *qt*)
       
  5487                         ;;
       
  5488                     *)
       
  5489                         QT_CFLAGS_ICD_TRIMMED="$QT_CFLAGS_ICD_TRIMMED $i"
       
  5490                         ;;
       
  5491                 esac
       
  5492             done
       
  5493             QT_LIBS_ICD_TRIMMED=
       
  5494             for i in $QT_LIBS_ICD; do
       
  5495                 case $i in
       
  5496                     *qt*|-lQt*)
       
  5497                         ;;
       
  5498                     *)
       
  5499                         QT_LIBS_ICD_TRIMMED="$QT_LIBS_ICD_TRIMMED $i"
       
  5500                         ;;
       
  5501                 esac
       
  5502             done
       
  5503 
       
  5504             QMakeVar set QT_CFLAGS_ICD "$QT_CFLAGS_ICD_TRIMMED"
       
  5505             QMakeVar set QT_LIBS_ICD "$QT_LIBS_ICD_TRIMMED"
       
  5506         else
  5518         else
  5507             if [ "$CFG_ICD" = "auto" ]; then
  5519             if [ "$CFG_ICD" = "auto" ]; then
  5508                 CFG_ICD=no
  5520                 CFG_ICD=no
  5509             elif [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
  5521             elif [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
  5510                 # CFG_ICD is "yes"
  5522                 # CFG_ICD is "yes"
  5511 
  5523 
  5512                 echo "The ICD Bearer Management plugin cannot be enabled because osso-ic or conninet was not found."
  5524                 echo "The ICD Bearer Management plugin cannot be enabled because connsettings was not found."
  5513                 echo " Turn on verbose messaging (-v) to $0 to see the final report."
  5525                 echo " Turn on verbose messaging (-v) to $0 to see the final report."
  5514                 echo " If you believe this message is in error you may use the continue"
  5526                 echo " If you believe this message is in error you may use the continue"
  5515                 echo " switch (-continue) to $0 to continue."
  5527                 echo " switch (-continue) to $0 to continue."
  5516                 exit 101
  5528                 exit 101
  5517             fi
  5529             fi
  6239     fi
  6251     fi
  6240 fi
  6252 fi
  6241 
  6253 
  6242 # find if the platform supports IPv6
  6254 # find if the platform supports IPv6
  6243 if [ "$CFG_IPV6" != "no" ]; then
  6255 if [ "$CFG_IPV6" != "no" ]; then
  6244     if [ "$XPLATFORM" = "symbian-sbsv2" ]; then
  6256     #
  6245         #IPV6 should always be enabled for Symbian release
  6257     # We accidently enabled IPv6 for Qt Symbian in 4.6.x. However the underlying OpenC does not fully support IPV6.
  6246         CFG_IPV6=yes
  6258     # Therefore for 4.7.1 and following we disable it until OpenC either supports it or we have the native Qt
       
  6259     # symbian socket engine.
       
  6260     #
       
  6261     if echo "$XPLATFORM" | grep symbian > /dev/null; then
       
  6262         CFG_IPV6=no
  6247     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
  6263     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
  6248         CFG_IPV6=yes
  6264         CFG_IPV6=yes
  6249     else
  6265     else
  6250         if [ "$CFG_IPV6" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
  6266         if [ "$CFG_IPV6" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
  6251             echo "IPv6 support cannot be enabled due to functionality tests!"
  6267             echo "IPv6 support cannot be enabled due to functionality tests!"
  6420 
  6436 
  6421 # if openvg is disabled and the user specified graphicssystem vg, disable it...
  6437 # if openvg is disabled and the user specified graphicssystem vg, disable it...
  6422 if [ "$CFG_GRAPHICS_SYSTEM" = "openvg" ] && [ "$CFG_OPENVG" = "no" ]; then
  6438 if [ "$CFG_GRAPHICS_SYSTEM" = "openvg" ] && [ "$CFG_OPENVG" = "no" ]; then
  6423     echo "OpenVG Graphics System is disabled due to missing OpenVG support..."
  6439     echo "OpenVG Graphics System is disabled due to missing OpenVG support..."
  6424     CFG_GRAPHICS_SYSTEM=default
  6440     CFG_GRAPHICS_SYSTEM=default
       
  6441 fi
       
  6442 
       
  6443 if [ -n "$CFG_RUNTIME_SYSTEM" -a "$CFG_GRAPHICS_SYSTEM" != "runtime" ] || [ "$CFG_RUNTIME_SYSTEM" = "runtime" ]; then
       
  6444     echo "Argument to -runtimegraphicssystem is invalid so ignoring..."
       
  6445     CFG_RUNTIME_SYSTEM=
  6425 fi
  6446 fi
  6426 
  6447 
  6427 if [ "$CFG_PTMALLOC" != "no" ]; then
  6448 if [ "$CFG_PTMALLOC" != "no" ]; then
  6428     # build ptmalloc, copy .a file to lib/
  6449     # build ptmalloc, copy .a file to lib/
  6429     echo "Building ptmalloc. Please wait..."
  6450     echo "Building ptmalloc. Please wait..."
  6713     QMAKE_OUTDIR="${QMAKE_OUTDIR}-emb-$CFG_EMBEDDED"
  6734     QMAKE_OUTDIR="${QMAKE_OUTDIR}-emb-$CFG_EMBEDDED"
  6714     QMAKE_CONFIG="$QMAKE_CONFIG embedded"
  6735     QMAKE_CONFIG="$QMAKE_CONFIG embedded"
  6715     QT_CONFIG="$QT_CONFIG embedded"
  6736     QT_CONFIG="$QT_CONFIG embedded"
  6716     rm -f "src/.moc/$QMAKE_OUTDIR/allmoc.cpp" # needs remaking if config changes
  6737     rm -f "src/.moc/$QMAKE_OUTDIR/allmoc.cpp" # needs remaking if config changes
  6717 fi
  6738 fi
  6718 QMakeVar set PRECOMPILED_DIR ".pch/$QMAKE_OUTDIR"
  6739 if [ "$XPLATFORM_MINGW" != "yes" ]; then
       
  6740     # Do not set this here for Windows. Let qmake do it so
       
  6741     # debug and release precompiled headers are kept separate.
       
  6742     QMakeVar set PRECOMPILED_DIR ".pch/$QMAKE_OUTDIR"
       
  6743 fi
  6719 QMakeVar set OBJECTS_DIR ".obj/$QMAKE_OUTDIR"
  6744 QMakeVar set OBJECTS_DIR ".obj/$QMAKE_OUTDIR"
  6720 QMakeVar set MOC_DIR ".moc/$QMAKE_OUTDIR"
  6745 QMakeVar set MOC_DIR ".moc/$QMAKE_OUTDIR"
  6721 QMakeVar set RCC_DIR ".rcc/$QMAKE_OUTDIR"
  6746 QMakeVar set RCC_DIR ".rcc/$QMAKE_OUTDIR"
  6722 QMakeVar set UI_DIR ".uic/$QMAKE_OUTDIR"
  6747 QMakeVar set UI_DIR ".uic/$QMAKE_OUTDIR"
  6723 if [ "$CFG_LARGEFILE" = "yes" ] && [ "$XPLATFORM_MINGW" != "yes" ]; then
  6748 if [ "$CFG_LARGEFILE" = "yes" ] && [ "$XPLATFORM_MINGW" != "yes" ]; then
  6969 fi
  6994 fi
  6970 
  6995 
  6971 # turn off exceptions for the compilers that support it
  6996 # turn off exceptions for the compilers that support it
  6972 if [ "$PLATFORM_QWS" = "yes" ]; then
  6997 if [ "$PLATFORM_QWS" = "yes" ]; then
  6973     COMPILER=`echo $XPLATFORM | cut -f 3- -d-`
  6998     COMPILER=`echo $XPLATFORM | cut -f 3- -d-`
       
  6999 elif [ "$XPLATFORM" != "$PLATFORM" ]; then
       
  7000     COMPILER=`echo $XPLATFORM | cut -f 2- -d-`
  6974 else
  7001 else
  6975     COMPILER=`echo $PLATFORM | cut -f 2- -d-`
  7002     COMPILER=`echo $PLATFORM | cut -f 2- -d-`
  6976 fi
  7003 fi
  6977 if [ "$CFG_EXCEPTIONS" = "unspecified" -a "$PLATFORM_QWS" = "yes" ]; then
  7004 if [ "$CFG_EXCEPTIONS" = "unspecified" -a "$PLATFORM_QWS" = "yes" ]; then
  6978     CFG_EXCEPTIONS=no
  7005     CFG_EXCEPTIONS=no
  7192 if [ "$CFG_WEBKIT" = "auto" ]; then
  7219 if [ "$CFG_WEBKIT" = "auto" ]; then
  7193     CFG_WEBKIT="$canBuildWebKit"
  7220     CFG_WEBKIT="$canBuildWebKit"
  7194 fi
  7221 fi
  7195 
  7222 
  7196 if [ "$CFG_WEBKIT" = "yes" ]; then
  7223 if [ "$CFG_WEBKIT" = "yes" ]; then
  7197     QT_CONFIG="$QT_CONFIG webkit"
  7224     # This include takes care of adding "webkit" to QT_CONFIG.
       
  7225     cp -f "$relpath/src/3rdparty/webkit/WebKit/qt/qt_webkit_version.pri" "$outpath/mkspecs/modules/qt_webkit_version.pri"
  7198     # The reason we set CFG_WEBKIT, is such that the printed overview of what will be enabled, shows correctly.
  7226     # The reason we set CFG_WEBKIT, is such that the printed overview of what will be enabled, shows correctly.
  7199     CFG_WEBKIT="yes"
  7227     CFG_WEBKIT="yes"
  7200 else
  7228 else
  7201     CFG_WEBKIT="no"
  7229     CFG_WEBKIT="no"
  7202     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_WEBKIT"
  7230     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_WEBKIT"
  7306 # generate QT_BUILD_KEY
  7334 # generate QT_BUILD_KEY
  7307 #-------------------------------------------------------------------------------
  7335 #-------------------------------------------------------------------------------
  7308 
  7336 
  7309 # some compilers generate binary incompatible code between different versions,
  7337 # some compilers generate binary incompatible code between different versions,
  7310 # so we need to generate a build key that is different between these compilers
  7338 # so we need to generate a build key that is different between these compilers
       
  7339 COMPAT_COMPILER=
  7311 case "$COMPILER" in
  7340 case "$COMPILER" in
  7312 g++*)
  7341 g++*)
  7313     # GNU C++
  7342     # GNU C++
  7314     COMPILER_VERSION=`${QMAKE_CONF_COMPILER} -dumpversion 2>/dev/null`
  7343     COMPILER_VERSION=`${QMAKE_CONF_COMPILER} -dumpversion 2>/dev/null`
  7315 
  7344 
  7338         ;;
  7367         ;;
  7339     *)
  7368     *)
  7340         ;;
  7369         ;;
  7341     esac
  7370     esac
  7342     [ '!' -z "$COMPILER_VERSION" ] && COMPILER="g++-${COMPILER_VERSION}"
  7371     [ '!' -z "$COMPILER_VERSION" ] && COMPILER="g++-${COMPILER_VERSION}"
       
  7372     ;;
       
  7373 icc*)
       
  7374     # The Intel CC compiler on Unix systems matches the ABI of the g++
       
  7375     # that is found on PATH
       
  7376     COMPILER="icc"
       
  7377     COMPAT_COMPILER="g++-4"
       
  7378     case "`g++ -dumpversion` 2>/dev/null" in
       
  7379     2.95.*)
       
  7380         COMPAT_COMPILER="g++-2.95.*"
       
  7381         ;;
       
  7382     3.*)
       
  7383         COMPAT_COMPILER="g++-3.*"
       
  7384         ;;
       
  7385     *)
       
  7386         ;;
       
  7387     esac
  7343     ;;
  7388     ;;
  7344 *)
  7389 *)
  7345     #
  7390     #
  7346     ;;
  7391     ;;
  7347 esac
  7392 esac
  7447 rm -f .options
  7492 rm -f .options
  7448 
  7493 
  7449 BUILD_OPTIONS="$BUILD_CONFIG $BUILD_OPTIONS"
  7494 BUILD_OPTIONS="$BUILD_CONFIG $BUILD_OPTIONS"
  7450 # extract the operating system from the XPLATFORM
  7495 # extract the operating system from the XPLATFORM
  7451 TARGET_OPERATING_SYSTEM=`echo $XPLATFORM | cut -f 2- -d/ | cut -f -1 -d-`
  7496 TARGET_OPERATING_SYSTEM=`echo $XPLATFORM | cut -f 2- -d/ | cut -f -1 -d-`
       
  7497 case "$XPLATFORM" in
       
  7498 symbian*)
       
  7499     QT_BUILD_KEY_SYSTEM_PART="Symbian"
       
  7500     ;;
       
  7501 *)
       
  7502     QT_BUILD_KEY_SYSTEM_PART="$CFG_ARCH $TARGET_OPERATING_SYSTEM $COMPILER"
       
  7503     ;;
       
  7504 esac
  7452 
  7505 
  7453 # when cross-compiling, don't include build-host information (build key is target specific)
  7506 # when cross-compiling, don't include build-host information (build key is target specific)
  7454 QT_BUILD_KEY="$CFG_USER_BUILD_KEY $CFG_ARCH $TARGET_OPERATING_SYSTEM $COMPILER $BUILD_OPTIONS"
  7507 QT_BUILD_KEY="$CFG_USER_BUILD_KEY $QT_BUILD_KEY_SYSTEM_PART $BUILD_OPTIONS"
  7455 if [ -n "$QT_NAMESPACE" ]; then
  7508 if [ -n "$QT_NAMESPACE" ]; then
  7456     QT_BUILD_KEY="$QT_BUILD_KEY $QT_NAMESPACE"
  7509     QT_BUILD_KEY="$QT_BUILD_KEY $QT_NAMESPACE"
  7457 fi
  7510 fi
  7458 MAC_NEED_TWO_BUILD_KEYS="no"
  7511 MAC_NEED_TWO_BUILD_KEYS="no"
  7459 if [ "$PLATFORM_MAC" = "yes" -a "$CFG_MAC_COCOA" = "yes" ]; then
  7512 if [ "$PLATFORM_MAC" = "yes" -a "$CFG_MAC_COCOA" = "yes" ]; then
  7473     QT_BUILD_KEY_COMPAT="$CFG_USER_BUILD_KEY $UNAME_MACHINE $UNAME_SYSTEM $COMPILER $BUILD_OPTIONS"
  7526     QT_BUILD_KEY_COMPAT="$CFG_USER_BUILD_KEY $UNAME_MACHINE $UNAME_SYSTEM $COMPILER $BUILD_OPTIONS"
  7474     if [ -n "$QT_NAMESPACE" ]; then
  7527     if [ -n "$QT_NAMESPACE" ]; then
  7475         QT_BUILD_KEY_COMPAT="$QT_BUILD_KEY_COMPAT $QT_NAMESPACE"
  7528         QT_BUILD_KEY_COMPAT="$QT_BUILD_KEY_COMPAT $QT_NAMESPACE"
  7476     fi
  7529     fi
  7477 fi
  7530 fi
       
  7531 
       
  7532 # is this compiler compatible with some other "standard" build key
       
  7533 QT_BUILD_KEY_COMPAT_COMPILER=
       
  7534 if [ ! -z "$COMPAT_COMPILER" ]; then
       
  7535     QT_BUILD_KEY_COMPAT_COMPILER="$CFG_USER_BUILD_KEY $CFG_ARCH $TARGET_OPERATING_SYSTEM $COMPAT_COMPILER $BUILD_OPTIONS"
       
  7536     if [ -n "$QT_NAMESPACE" ]; then
       
  7537         QT_BUILD_KEY_COMPAT_COMPILER="$QT_BUILD_KEY_COMPAT_COMPILER $QT_NAMESPACE"
       
  7538     fi
       
  7539 fi
       
  7540 
  7478 # strip out leading/trailing/extra whitespace
  7541 # strip out leading/trailing/extra whitespace
  7479 QT_BUILD_KEY=`echo $QT_BUILD_KEY | sed -e "s,  *, ,g" -e "s,^  *,," -e "s,  *$,,"`
  7542 QT_BUILD_KEY=`echo $QT_BUILD_KEY | sed -e "s,  *, ,g" -e "s,^  *,," -e "s,  *$,,"`
  7480 QT_BUILD_KEY_COMPAT=`echo $QT_BUILD_KEY_COMPAT | sed -e "s,  *, ,g" -e "s,^  *,," -e "s,  *$,,"`
  7543 QT_BUILD_KEY_COMPAT=`echo $QT_BUILD_KEY_COMPAT | sed -e "s,  *, ,g" -e "s,^  *,," -e "s,  *$,,"`
       
  7544 QT_BUILD_KEY_COMPAT_COMPILER=`echo $QT_BUILD_KEY_COMPAT_COMPILER | sed -e "s,  *, ,g" -e "s,^  *,," -e "s,  *$,,"`
  7481 
  7545 
  7482 #-------------------------------------------------------------------------------
  7546 #-------------------------------------------------------------------------------
  7483 # part of configuration information goes into qconfig.h
  7547 # part of configuration information goes into qconfig.h
  7484 #-------------------------------------------------------------------------------
  7548 #-------------------------------------------------------------------------------
  7485 
  7549 
  7522 EOF
  7586 EOF
  7523 fi
  7587 fi
  7524 
  7588 
  7525 if [ -n "$QT_BUILD_KEY_COMPAT" ]; then
  7589 if [ -n "$QT_BUILD_KEY_COMPAT" ]; then
  7526     echo "#define QT_BUILD_KEY_COMPAT \"$QT_BUILD_KEY_COMPAT\"" \
  7590     echo "#define QT_BUILD_KEY_COMPAT \"$QT_BUILD_KEY_COMPAT\"" \
       
  7591         >> "$outpath/src/corelib/global/qconfig.h.new"
       
  7592 fi
       
  7593 if [ -n "$QT_BUILD_KEY_COMPAT_COMPILER" ]; then
       
  7594     echo "#define QT_BUILD_KEY_COMPAT2 \"$QT_BUILD_KEY_COMPAT_COMPILER\"" \
  7527         >> "$outpath/src/corelib/global/qconfig.h.new"
  7595         >> "$outpath/src/corelib/global/qconfig.h.new"
  7528 fi
  7596 fi
  7529 echo "" >>"$outpath/src/corelib/global/qconfig.h.new"
  7597 echo "" >>"$outpath/src/corelib/global/qconfig.h.new"
  7530 
  7598 
  7531 echo "#ifdef QT_BOOTSTRAPPED" >>"$outpath/src/corelib/global/qconfig.h.new"
  7599 echo "#ifdef QT_BOOTSTRAPPED" >>"$outpath/src/corelib/global/qconfig.h.new"
  7715 
  7783 
  7716 if [ "$PLATFORM_QWS" != "yes" ]; then
  7784 if [ "$PLATFORM_QWS" != "yes" ]; then
  7717     [ "$CFG_GRAPHICS_SYSTEM" = "raster" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_RASTER"
  7785     [ "$CFG_GRAPHICS_SYSTEM" = "raster" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_RASTER"
  7718     [ "$CFG_GRAPHICS_SYSTEM" = "opengl" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_OPENGL"
  7786     [ "$CFG_GRAPHICS_SYSTEM" = "opengl" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_OPENGL"
  7719     [ "$CFG_GRAPHICS_SYSTEM" = "openvg" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_OPENVG"
  7787     [ "$CFG_GRAPHICS_SYSTEM" = "openvg" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_OPENVG"
       
  7788     [ "$CFG_GRAPHICS_SYSTEM" = "runtime" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_GRAPHICSSYSTEM_RUNTIME"
  7720 fi
  7789 fi
  7721 
  7790 
  7722 # X11/Unix/Mac only configs
  7791 # X11/Unix/Mac only configs
  7723 [ "$CFG_CUPS" = "no" ]       && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CUPS"
  7792 [ "$CFG_CUPS" = "no" ]       && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CUPS"
  7724 [ "$CFG_ICONV" = "no" ]      && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ICONV"
  7793 [ "$CFG_ICONV" = "no" ]      && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ICONV"
  7828 #define QT_LIBINFIX "$QT_LIBINFIX"
  7897 #define QT_LIBINFIX "$QT_LIBINFIX"
  7829 
  7898 
  7830 EOF
  7899 EOF
  7831 fi
  7900 fi
  7832 
  7901 
       
  7902 if [ -n "$CFG_RUNTIME_SYSTEM" ]; then
       
  7903 cat >>"$outpath/src/corelib/global/qconfig.h.new" << EOF
       
  7904 #define QT_DEFAULT_RUNTIME_SYSTEM "$CFG_RUNTIME_SYSTEM"
       
  7905 
       
  7906 EOF
       
  7907 fi
       
  7908 
  7833 # avoid unecessary rebuilds by copying only if qconfig.h has changed
  7909 # avoid unecessary rebuilds by copying only if qconfig.h has changed
  7834 if cmp -s "$outpath/src/corelib/global/qconfig.h" "$outpath/src/corelib/global/qconfig.h.new"; then
  7910 if cmp -s "$outpath/src/corelib/global/qconfig.h" "$outpath/src/corelib/global/qconfig.h.new"; then
  7835     rm -f "$outpath/src/corelib/global/qconfig.h.new"
  7911     rm -f "$outpath/src/corelib/global/qconfig.h.new"
  7836 else
  7912 else
  7837     [ -f "$outpath/src/corelib/global/qconfig.h" ] && chmod +w "$outpath/src/corelib/global/qconfig.h"
  7913     [ -f "$outpath/src/corelib/global/qconfig.h" ] && chmod +w "$outpath/src/corelib/global/qconfig.h"
  7904 #namespaces
  7980 #namespaces
  7905 QT_LIBINFIX = $QT_LIBINFIX
  7981 QT_LIBINFIX = $QT_LIBINFIX
  7906 QT_NAMESPACE = $QT_NAMESPACE
  7982 QT_NAMESPACE = $QT_NAMESPACE
  7907 QT_NAMESPACE_MAC_CRC = $QT_NAMESPACE_MAC_CRC
  7983 QT_NAMESPACE_MAC_CRC = $QT_NAMESPACE_MAC_CRC
  7908 
  7984 
  7909 #modules
       
  7910 for(mod,\$\$list(\$\$files(\$\$[QMAKE_MKSPECS]/modules/qt_*.pri))):include(\$\$mod)
       
  7911 
       
  7912 EOF
  7985 EOF
  7913 if [ "$CFG_RPATH" = "yes" ]; then
  7986 if [ "$CFG_RPATH" = "yes" ]; then
  7914     echo "QMAKE_RPATHDIR += \"$QT_INSTALL_LIBS\"" >> "$QTCONFIG.tmp"
  7987     echo "QMAKE_RPATHDIR += \"$QT_INSTALL_LIBS\"" >> "$QTCONFIG.tmp"
  7915 fi
  7988 fi
  7916 if [ -n "$QT_GCC_MAJOR_VERSION" ]; then
  7989 if [ -n "$QT_GCC_MAJOR_VERSION" ]; then
  7977 if [ -n "$QT_LFLAGS_SQLITE" ]; then
  8050 if [ -n "$QT_LFLAGS_SQLITE" ]; then
  7978     echo "QT_LFLAGS_SQLITE   = $QT_LFLAGS_SQLITE" >> "$CACHEFILE.tmp"
  8051     echo "QT_LFLAGS_SQLITE   = $QT_LFLAGS_SQLITE" >> "$CACHEFILE.tmp"
  7979 fi
  8052 fi
  7980 if [ -n "$QT_LFLAGS_ODBC" ]; then
  8053 if [ -n "$QT_LFLAGS_ODBC" ]; then
  7981     echo "QT_LFLAGS_ODBC   = $QT_LFLAGS_ODBC" >> "$CACHEFILE.tmp"
  8054     echo "QT_LFLAGS_ODBC   = $QT_LFLAGS_ODBC" >> "$CACHEFILE.tmp"
       
  8055 fi
       
  8056 if [ -n "$QT_LFLAGS_TDS" ]; then
       
  8057     echo "QT_LFLAGS_TDS   = $QT_LFLAGS_TDS" >> "$CACHEFILE.tmp"
  7982 fi
  8058 fi
  7983 
  8059 
  7984 if [ "$QT_EDITION" != "QT_EDITION_OPENSOURCE" ]; then
  8060 if [ "$QT_EDITION" != "QT_EDITION_OPENSOURCE" ]; then
  7985     echo "DEFINES *= QT_EDITION=QT_EDITION_DESKTOP" >> "$CACHEFILE.tmp"
  8061     echo "DEFINES *= QT_EDITION=QT_EDITION_DESKTOP" >> "$CACHEFILE.tmp"
  7986 fi
  8062 fi