config/companion_libs/mpc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jan 17 23:06:02 2010 +0100 (2010-01-17)
changeset 1740 c57458bb354d
parent 1615 50b25816f5bb
child 1783 dabf9572e240
permissions -rw-r--r--
configure: do not require hg when configuring in an hg clone

When configuring in an hg clone, we need hg to compute the version string.
It can happen that users do not have Mercurial (eg. if they got a snapshot
rather that they did a full clone). In this case, we can still run, of
course, so simply fill the version string with a sufficiently explicit
value, that does not require hg. The date is a good candidate.
yann@1384
     1
# MPC options
yann@1384
     2
yann@1384
     3
choice
yann@1384
     4
    bool
yann@1384
     5
    prompt "MPC version"
yann@1535
     6
# Don't remove next line
yann@1535
     7
# CT_INSERT_VERSION_BELOW
yann@1384
     8
yann@1695
     9
config MPC_V_0_8_1
yann@1695
    10
    bool
yann@1695
    11
    prompt "0.8.1 (EXPERIMENTAL)"
yann@1695
    12
    depends on EXPERIMENTAL
yann@1695
    13
yann@1534
    14
config MPC_V_0_7
yann@1534
    15
    bool
yann@1534
    16
    prompt "0.7"
yann@1534
    17
yann@1384
    18
config MPC_V_0_6
yann@1384
    19
    bool
yann@1615
    20
    prompt "0.6 (OBSOLETE)"
yann@1615
    21
    depends on OBSOLETE
yann@1384
    22
yann@1384
    23
endchoice
yann@1384
    24
yann@1384
    25
config MPC_VERSION
yann@1384
    26
    string
yann@1535
    27
# Don't remove next line
yann@1535
    28
# CT_INSERT_VERSION_STRING_BELOW
yann@1695
    29
    default "0.8.1" if MPC_V_0_8_1
yann@1534
    30
    default "0.7" if MPC_V_0_7
yann@1384
    31
    default "0.6" if MPC_V_0_6