1.1 --- a/m4/lx_check_glpk.m4 Fri Oct 16 10:21:37 2009 +0200
1.2 +++ b/m4/lx_check_glpk.m4 Thu Nov 05 15:50:01 2009 +0100
1.3 @@ -42,6 +42,11 @@
1.4 #include <glpk.h>
1.5 }
1.6
1.7 + #if (GLP_MAJOR_VERSION < 4) \
1.8 + || (GLP_MAJOR_VERSION == 4 && GLP_MINOR_VERSION < 33)
1.9 + #error Supported GLPK versions: 4.33 or above
1.10 + #endif
1.11 +
1.12 int main(int argc, char** argv)
1.13 {
1.14 LPX *lp;
1.15 @@ -60,6 +65,10 @@
1.16
1.17 if test x"$lx_glpk_found" = x"yes"; then
1.18 AC_DEFINE([LEMON_HAVE_GLPK], [1], [Define to 1 if you have GLPK.])
1.19 + lx_lp_found=yes
1.20 + AC_DEFINE([LEMON_HAVE_LP], [1], [Define to 1 if you have any LP solver.])
1.21 + lx_mip_found=yes
1.22 + AC_DEFINE([LEMON_HAVE_MIP], [1], [Define to 1 if you have any MIP solver.])
1.23 AC_MSG_RESULT([yes])
1.24 else
1.25 GLPK_CFLAGS=""