m4/lx_check_glpk.m4
changeset 581 6d3a9eec82b4
parent 480 69928a704ffb
child 674 20dac2104519
equal deleted inserted replaced
2:d1f2dfd86597 3:2839597d7bfe
    40     lx_glpk_test_prog='
    40     lx_glpk_test_prog='
    41       extern "C" {
    41       extern "C" {
    42       #include <glpk.h>
    42       #include <glpk.h>
    43       }
    43       }
    44 
    44 
       
    45       #if (GLP_MAJOR_VERSION < 4) \
       
    46          || (GLP_MAJOR_VERSION == 4 && GLP_MINOR_VERSION < 33)
       
    47       #error Supported GLPK versions: 4.33 or above
       
    48       #endif
       
    49 
    45       int main(int argc, char** argv)
    50       int main(int argc, char** argv)
    46       {
    51       {
    47         LPX *lp;
    52         LPX *lp;
    48         lp = lpx_create_prob();
    53         lp = lpx_create_prob();
    49         lpx_delete_prob(lp);
    54         lpx_delete_prob(lp);