Changeset 587


Ignore:
Timestamp:
Feb 21, 2010, 6:48:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

configure.cmd: Make sure that all "auto" options that haven't been auto-detected or explicitly specified get the "yes" values and gather it into a single place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/configure.cmd

    r586 r587  
    644644
    645645    G.CFG_ACCESSIBILITY = "no"
     646    G.CFG_PHONON = "no"
    646647    G.CFG_MULTIMEDIA = "no"
    647648    G.CFG_IPV6 = "no"
    648649    G.CFG_NIS = "no"
     650    G.CFG_DBUS = "no"
     651    G.CFG_OPENSSL = "no"
     652    G.CFG_QGTKSTYLE = "no"
     653    G.CFG_LARGEFILE = "no"
     654    G.CFG_PRECOMPILE = "no" /* GCC 4.4.2 crashes with PCH */
    649655
    650656    /*--------------------------------------------------------------------------
     
    911917     * structure similar to ./configure */
    912918
    913     /* enable all image formats and ZLIB by default */
    914     if (G.CFG_GIF == "auto")    then G.CFG_GIF = "yes"
    915     if (G.CFG_TIFF == "auto")   then G.CFG_TIFF = "yes"
    916     if (G.CFG_PNG == "auto")    then G.CFG_PNG = "yes"
    917     if (G.CFG_JPEG == "auto")   then G.CFG_JPEG = "yes"
    918     if (G.CFG_MNG == "auto")    then G.CFG_MNG = "yes"
    919     if (G.CFG_ZLIB == "auto")   then G.CFG_ZLIB = "yes"
    920 
    921     if (G.CFG_QGTKSTYLE == "auto")  then G.CFG_QGTKSTYLE = "no"
    922     if (G.CFG_OPENSSL == "auto")    then G.CFG_OPENSSL = "no"
    923     if (G.CFG_DBUS == "auto")       then G.CFG_DBUS = "no"
    924 
    925     if (G.CFG_GRAPHICS_SYSTEM == "default") then G.CFG_GRAPHICS_SYSTEM = "raster"
    926 
    927919    /* auto-detect SQL-modules support */
    928920    do i = 1 to words(G.CFG_SQL_AVAILABLE)
     
    958950    end
    959951
     952    if (G.CFG_WEBKIT == "auto") then
     953        G.CFG_WEBKIT = "no" /* WebKit seems to require G++ >= 3.4.x */
     954
    960955    /*--------------------------------------------------------------------------
    961956     ask for all that hasn't been auto-detected or specified in the arguments
    962957    --------------------------------------------------------------------------*/
    963958
    964     /* nothing so far */
     959    /* We don't ask anything so far. Just apply "yes" to "auto" options */
     960
     961    /* enable all image formats and ZLIB by default */
     962    if (G.CFG_GIF == "auto")    then G.CFG_GIF = "yes"
     963    if (G.CFG_TIFF == "auto")   then G.CFG_TIFF = "yes"
     964    if (G.CFG_PNG == "auto")    then G.CFG_PNG = "yes"
     965    if (G.CFG_JPEG == "auto")   then G.CFG_JPEG = "yes"
     966    if (G.CFG_MNG == "auto")    then G.CFG_MNG = "yes"
     967    if (G.CFG_ZLIB == "auto")   then G.CFG_ZLIB = "yes"
     968
     969    if (G.CFG_GRAPHICS_SYSTEM == "default") then G.CFG_GRAPHICS_SYSTEM = "raster"
     970
     971    if (G.CFG_SM == "auto")             then G.CFG_SM = "yes"
     972    if (G.CFG_STL == "auto")            then G.CFG_STL = "yes"
     973    if (G.CFG_CONCURRENT == "auto")     then G.CFG_CONCURRENT = "yes"
     974    if (G.CFG_PHONON == "auto")         then G.CFG_PHONON = "yes"
     975    if (G.CFG_MULTIMEDIA == "auto")     then G.CFG_MULTIMEDIA = "yes"
     976    if (G.CFG_DECLARATIVE == "auto")    then G.CFG_DECLARATIVE = "yes"
     977    if (G.CFG_SCRIPT == "auto")         then G.CFG_SCRIPT = "yes"
     978    if (G.CFG_SCRIPTTOOLS == "auto")    then G.CFG_SCRIPTTOOLS = "yes"
     979    if (G.CFG_QGTKSTYLE == "auto")      then G.CFG_QGTKSTYLE = "yes"
     980    if (G.CFG_OPENSSL == "auto")        then G.CFG_OPENSSL = "yes"
     981    if (G.CFG_DBUS == "auto")           then G.CFG_DBUS = "yes"
    965982
    966983    /*--------------------------------------------------------------------------
     
    968985    --------------------------------------------------------------------------*/
    969986
    970     /* enable Qt 3 support functionality */
    971987    if (G.CFG_QT3SUPPORT == "yes") then
    972988        G.QT_CONFIG = Join(G.QT_CONFIG, "qt3support")
    973989
    974     /* enable Phonon */
    975990    if (G.CFG_PHONON == "yes") then do
    976991        G.QT_CONFIG = Join(G.QT_CONFIG, "phonon")
     
    981996        G.QCONFIG_FLAGS = Join(G.QCONFIG_FLAGS, "QT_NO_PHONON")
    982997
    983     /* disable accessibility */
    984998    if (G.CFG_ACCESSIBILITY == "no") then
    985999        G.QCONFIG_FLAGS = Join(G.QCONFIG_FLAGS, "QT_NO_ACCESSIBILITY")
     
    9871001        G.QT_CONFIG = Join(G.QT_CONFIG, "accessibility")
    9881002
    989     /* disable opengl */
    9901003    if (G.CFG_OPENGL == "yes") then
    9911004        G.QT_CONFIG = Join(G.QT_CONFIG, "opengl")
     
    11611174        G.CFG_EXCEPTIONS = "no"
    11621175
    1163     if (G.CFG_CONCURRENT == "auto") then
    1164         G.CFG_CONCURRENT = "yes"
    1165 
    11661176    if (G.CFG_CONCURRENT == "no") then
    11671177        G.QCONFIG_FLAGS = Join(G.QCONFIG_FLAGS, "QT_NO_CONCURRENT")
     
    11731183    end
    11741184    if (G.CFG_XMLPATTERNS == "auto" & G.CFG_EXCEPTIONS \== "no") then
    1175         G.CFG_XMLPATTERNS = "yes" /* QtXmlPatterns is fine for GCC 3.3.x */
     1185        G.CFG_XMLPATTERNS = "yes"
    11761186    else if (G.CFG_EXCEPTIONS == "no") then
    11771187        G.CFG_XMLPATTERNS = "no"
     
    11811191        G.QCONFIG_FLAGS = Join(G.QCONFIG_FLAGS, "QT_NO_XMLPATTERNS")
    11821192
    1183     if (G.CFG_MULTIMEDIA == "auto") then
    1184         G.CFG_MULTIMEDIA == "yes"
    1185 
    11861193    if (G.CFG_MULTIMEDIA == "no") then
    11871194        G.QCONFIG_FLAGS = Join(G.QCONFIG_FLAGS, "QT_NO_MULTIMEDIA")
     
    11971204        G.QCONFIG_FLAGS = Join(G.QCONFIG_FLAGS, "QT_NO_SVG")
    11981205
    1199     if (G.CFG_DECLARATIVE == "auto") then
    1200         G.CFG_DECLARATIVE = "yes"
    1201 
    12021206    if (G.CFG_DECLARATIVE == "yes") then
    12031207        G.QT_CONFIG = Join(G.QT_CONFIG, "declarative")
    12041208    else
    12051209        G.QCONFIG_FLAGS = Join(G.QCONFIG_FLAGS, "QT_NO_DECLARATIVE")
    1206 
    1207     if (G.CFG_WEBKIT == "auto") then
    1208         G.CFG_WEBKIT = "no" /* WebKit seems to require G++ >= 3.4.x */
    12091210
    12101211    if (G.CFG_WEBKIT == "yes") then
     
    12171218    end
    12181219
    1219     if (G.CFG_SCRIPT == "auto") then
    1220         G.CFG_SCRIPT = "yes"
    1221 
    12221220    if (G.CFG_SCRIPT == "yes") then
    12231221        G.QT_CONFIG = Join(G.QT_CONFIG, "script")
    12241222    else
    12251223        G.QCONFIG_FLAGS = Join(G.QCONFIG_FLAGS, "QT_NO_SCRIPT")
    1226 
    1227     if (G.CFG_SCRIPTTOOLS == "auto") then
    1228         G.CFG_SCRIPTTOOLS = "yes"
    12291224
    12301225    if (G.CFG_SCRIPTTOOLS == "yes") then
     
    14781473    if (G.CFG_OPENSSL == "linked") then
    14791474        G.QCONFIG_FLAGS = Join(G.QCONFIG_FLAGS, "QT_LINKED_OPENSSL")
     1475*/
    14801476
    14811477    if (G.CFG_SM == "no") then
    14821478        G.QCONFIG_FLAGS = Join(G.QCONFIG_FLAGS, "QT_NO_SESSIONMANAGER")
    1483 */
    14841479
    14851480    /* do primitive sorting (the list is not so big so it should be fine) */
Note: See TracChangeset for help on using the changeset viewer.