config/companion_libs/mpc.in
author willy tarreau <w@1wt.eu>
Sun Jan 20 12:58:22 2013 +0000 (2013-01-20)
changeset 3169 9d0b37f08a10
parent 2957 3e2f2100a76d
child 3220 2685dfa9de14
permissions -rw-r--r--
arch: allow adding a suffix to the arch-part of a tuple

For some architectures, it is legit to have an alternate value in the
'architecture' part of the tuple. For example:
armv5te-*
armv7a8-*

Besides, some packages expect the tuple to reflect the arch variant
(eg. openMPI) to detect the variant's capabilities (eg. atomic
primitives).

This patch adds an option for the user to specify a suffix to be added
to the arch-part of the tuple.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Message-ID: <20130120225822.GS6838@1wt.eu>
Patch-Id: 213994
[yann.morin.1998@free.fr: make it a suffix, not an override]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
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@2319
     9
config MPC_V_0_9
yann@2319
    10
    bool
yann@2957
    11
    prompt "0.9"
yann@2319
    12
yann@1985
    13
config MPC_V_0_8_2
yann@1985
    14
    bool
yann@2957
    15
    prompt "0.8.2"
yann@2957
    16
yann@1985
    17
yann@1695
    18
config MPC_V_0_8_1
yann@1695
    19
    bool
yann@1783
    20
    prompt "0.8.1"
yann@1695
    21
yann@1534
    22
config MPC_V_0_7
yann@1534
    23
    bool
yann@1534
    24
    prompt "0.7"
yann@1534
    25
yann@1384
    26
endchoice
yann@1384
    27
yann@1384
    28
config MPC_VERSION
yann@1384
    29
    string
yann@1535
    30
# Don't remove next line
yann@1535
    31
# CT_INSERT_VERSION_STRING_BELOW
yann@2319
    32
    default "0.9" if MPC_V_0_9
yann@1985
    33
    default "0.8.2" if MPC_V_0_8_2
yann@1695
    34
    default "0.8.1" if MPC_V_0_8_1
yann@1534
    35
    default "0.7" if MPC_V_0_7