config/gmp_mpfr/gmp.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Dec 23 22:20:25 2008 +0000 (2008-12-23)
changeset 1106 2051ee3d1b75
parent 634 c74132339c44
permissions -rw-r--r--
Further enhance the check for needed tools:
- update the tool_pattern to use ' || ' as a pattern separator
- which allows using | in regexp
- add checks for cut and xargs
- manually check for grep and sed because they are needed when checking for tools
- print why a test failed, with each tested tool and regexp
- move tools checks before options parsing
- apply conttibutions before computing the version string
- inform user to run make && make install

/trunk/configure | 173 111 62 0 ++++++++++++++++++++++++++++++++++++++++----------------------
1 file changed, 111 insertions(+), 62 deletions(-)
     1 # GMP options
     2 
     3 choice
     4     bool
     5     prompt "GMP version"
     6 
     7 config GMP_V_4_2_2
     8     bool
     9     prompt "4.2.2"
    10 
    11 config GMP_V_4_2_4
    12     bool
    13     prompt "4.2.4"
    14 
    15 # CT_INSERT_VERSION_ABOVE
    16 # Don't remove above line!
    17 endchoice
    18 
    19 config GMP_VERSION
    20     string
    21     default "4.2.2" if GMP_V_4_2_2
    22     default "4.2.4" if GMP_V_4_2_4
    23 # CT_INSERT_VERSION_STRING_ABOVE
    24 # Don't remove above line!
    25 
    26 config GMP_CHECK
    27     bool
    28     prompt "Check GMP"
    29     default y
    30     help
    31       It is highly recommended that 'make check' is run against the newly built
    32       GMP library. See http://gmplib.org/