config/companion_libs/mpc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 08 23:26:54 2010 +0200 (2010-06-08)
changeset 1976 2d90ec981ba3
parent 1695 a86fcf9e4fcd
child 1985 f04a1f18c2bb
permissions -rw-r--r--
config: add support for a second part of the generated choices

Some components have configuration options that can depend on
generic options, so they should go below those.

uClibc for example:
- has its own options (wchar...)
- uses the generic options (threads...)
- if linuxthreads chosen, offers two impls

So we need to be able to split the components options in 2,
one part that is above the generic options, and one part that
ends up below the generic options.
     1 # MPC options
     2 
     3 choice
     4     bool
     5     prompt "MPC version"
     6 # Don't remove next line
     7 # CT_INSERT_VERSION_BELOW
     8 
     9 config MPC_V_0_8_1
    10     bool
    11     prompt "0.8.1"
    12 
    13 config MPC_V_0_7
    14     bool
    15     prompt "0.7"
    16 
    17 config MPC_V_0_6
    18     bool
    19     prompt "0.6 (OBSOLETE)"
    20     depends on OBSOLETE
    21 
    22 endchoice
    23 
    24 config MPC_VERSION
    25     string
    26 # Don't remove next line
    27 # CT_INSERT_VERSION_STRING_BELOW
    28     default "0.8.1" if MPC_V_0_8_1
    29     default "0.7" if MPC_V_0_7
    30     default "0.6" if MPC_V_0_6