config/tools/sstrip.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 913 194c03ec22c3
child 1242 470541ef2b72
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(-)
yann@149
     1
# Configuration file for sstrip tool facility
yann@149
     2
yann@916
     3
config TOOL_sstrip
yann@149
     4
    help
yann@149
     5
      The sstrip utility, to maximise the striping of ELF binaries
yann@149
     6
      (executables and libraries).
yann@149
     7
yann@149
     8
choice
yann@149
     9
    bool
yann@149
    10
    prompt "Use sstrip from:"
yann@149
    11
yann@149
    12
config SSTRIP_ELFKICKERS
yann@149
    13
    bool
yann@149
    14
    prompt "ELFkickers"
yann@149
    15
    help
yann@875
    16
      The original, ageing version, of sstrip from ELFkickers.
yann@875
    17
      Fully functional, but not maintained anymore.
yann@149
    18
yann@149
    19
config SSTRIP_BUILDROOT
yann@149
    20
    bool
yann@149
    21
    prompt "buildroot"
yann@149
    22
    help
yann@875
    23
      Buildroot version, forked off the original from ELFkickers.  This one
yann@875
    24
      is somewhat maintained by the buildroot guys.   
yann@875
    25
      Supports big-endian systems.
yann@149
    26
yann@149
    27
endchoice
yann@149
    28
yann@149
    29
config SSTRIP_FROM
yann@149
    30
    string
yann@149
    31
    default "ELFkickers"    if SSTRIP_ELFKICKERS
yann@149
    32
    default "buildroot"     if SSTRIP_BUILDROOT
yann@149
    33
yann@149
    34
if SSTRIP_ELFKICKERS
yann@149
    35
yann@149
    36
config SSTRIP_ELFKICKERS_VERSION
yann@149
    37
    string
yann@149
    38
    default "2.0a"
yann@149
    39
yann@149
    40
endif