config/libc/glibc.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 865 04cf91f13430
child 1114 c3516fc7460d
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 # glibc options
     2 
     3 config LIBC_glibc
     4     select LIBC_SUPPORT_NPTL
     5     select LIBC_SUPPORT_LINUXTHREADS
     6     help
     7       The de-facto standard for Linux distributions.
     8       Feature-rich, but large...  Most usefull for desktop-like systems.
     9 
    10 choice
    11     bool
    12     prompt "glibc version"
    13 
    14 config LIBC_V_2_3_6
    15     bool
    16     prompt "2.3.6 (OBSOLETE)"
    17     depends on OBSOLETE
    18 
    19 config LIBC_V_2_5
    20     bool
    21     prompt "2.5"
    22 
    23 config LIBC_V_2_5_1
    24     bool
    25     prompt "2.5.1"
    26 
    27 config LIBC_V_2_6
    28     bool
    29     prompt "2.6"
    30 
    31 config LIBC_V_2_6_1
    32     bool
    33     prompt "2.6.1"
    34 
    35 config LIBC_V_2_7
    36     bool
    37     prompt "2.7"
    38 
    39 # CT_INSERT_VERSION_ABOVE
    40 # Don't remove above line!
    41 
    42 config LIBC_V_LATEST
    43     bool
    44     prompt "'latest' snapshot (EXPERIMENTAL)"
    45     depends on EXPERIMENTAL
    46 
    47 config LIBC_V_date
    48     bool
    49     prompt "<specific date> (EXPERIMENTAL)"
    50     depends on EXPERIMENTAL
    51 
    52 endchoice
    53 
    54 config LIBC_VERSION
    55     string
    56     prompt "Enter date (YYYYMMDD)" if LIBC_V_date
    57     default "latest" if LIBC_V_LATEST
    58     default "2.3.6" if LIBC_V_2_3_6
    59     default "2.4" if LIBC_V_2_4
    60     default "2.5" if LIBC_V_2_5
    61     default "2.5.1" if LIBC_V_2_5_1
    62     default "2.6" if LIBC_V_2_6
    63     default "2.6.1" if LIBC_V_2_6_1
    64     default "2.7" if LIBC_V_2_7
    65 # CT_INSERT_VERSION_STRING_ABOVE
    66 # Don't remove above line!
    67