config/debug/duma.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Dec 22 18:21:51 2008 +0000 (2008-12-22)
changeset 1105 3ba2a43353df
parent 850 ef8549b58b6f
child 1436 3cfa075e88b3
permissions -rw-r--r--
Rationalise ./configure
- borrow a lot of ideas from Michael ABBOTT ( http://sourceware.org/ml/crossgcc/2008-12/msg00030.html )
- should be conforming to POSIX 1003.1-2008, non compliance due to bashsims is to be considered a bug
- as a result, it now works with dash
- make a little easier to read in some places
- enforce 4-space indentation
- get rid of futile 'return $?'
- quote all variables assignments
- save and restore IFS prior to and after using alternate values
- simplify the TOOLS_TO_CHECK listing

What's left:
- provide a mean to actually _compare_ version numbers
- change the TOOLS_TO_CHECK pattern style to be able to use '|' in regexp

/trunk/configure | 243 127 116 0 ++++++++++++++++++++++++++++++++------------------------------
1 file changed, 127 insertions(+), 116 deletions(-)
     1 # D.U.M.A. - Detect Unintended Memory Access - Memory checker
     2 
     3 config DEBUG_duma
     4     help
     5       D.U.M.A. - Detect Unintended Memory Access
     6       A memory bound checker, with additional features.
     7       Formerly known as Electric Fence.
     8 
     9 config DUMA_A
    10     bool
    11     prompt "Build a static library"
    12     default y
    13 
    14 config DUMA_SO
    15     bool
    16     prompt "Build a shared library"
    17     default y if SHARED_LIBS
    18     default n if ! SHARED_LIBS
    19 
    20 choice
    21     bool
    22     prompt "D.U.M.A. version"
    23 
    24 config DUMA_V_2_5_1
    25     bool
    26     prompt "2_5_1"
    27 
    28 config DUMA_V_2_5_8
    29     bool
    30     prompt "2_5_8"
    31 
    32 config DUMA_V_2_5_12
    33     bool
    34     prompt "2_5_12"
    35 
    36 config DUMA_V_2_5_14
    37     bool
    38     prompt "2_5_14"
    39 
    40 # CT_INSERT_VERSION_ABOVE
    41 # Don't remove above line!
    42 endchoice
    43 
    44 config DUMA_VERSION
    45     string
    46     default "2_5_1" if DUMA_V_2_5_1
    47     default "2_5_8" if DUMA_V_2_5_8
    48     default "2_5_12" if DUMA_V_2_5_12
    49     default "2_5_14" if DUMA_V_2_5_14
    50 # CT_INSERT_VERSION_STRING_ABOVE
    51 # Don't remove above line!