check for glpk >= 4.32
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 25 Mar 2011 15:37:04 +0000 (15:37 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 25 Mar 2011 15:37:04 +0000 (15:37 +0000)
configure.ac

index b3a965e3b0a2f23d9b923244155726372bb4cae1..f89f8e185a78aec3370d716d54b365c3cea24343 100644 (file)
@@ -259,10 +259,13 @@ fi        # $build = $target
 glpk=true
 AC_CHECK_HEADERS(glpk.h, ,[gplk=false])
 AC_CHECK_LIB([glpk],[glp_create_prob], , [gplk=false])
+# GLPK must support atm MLP presolving, version >= 4.32
+AC_CHECK_MEMBERS(glp_iocp.presolve, ,[gplk=false],[[#include <glpk.h>]])
 if test $gplk == false
 then
        AM_CONDITIONAL(HAVE_GLPK, [test x$gplk = xtrue])
        AM_CONDITIONAL(HAVE_LIBGLPK, [test x$gplk != x$gplk])
+       AC_MSG_ERROR([GNUnet requires GLPK  >= 4.32])
 else
        AM_CONDITIONAL(HAVE_GLPK, [test x$gplk = xtrue])
        AM_CONDITIONAL(HAVE_LIBGLPK, [test x$gplk = x$gplk])