comparison configure.ac @ 17241:03a666018e0f

build: Detect new GLPK API features required since changeset 54e251e699bb * m4/acinclude.m4 (OCTAVE_CHECK_LIB_GLPK_OK): New macro to detect the newest GLPK API features required by Octave. * configure.ac: Call it and disable glpk if the library is not ok.
author Mike Miller <mtmiller@ieee.org>
date Tue, 13 Aug 2013 21:38:12 -0400
parents bc20614022aa
children 3a9efb68272d
comparison
equal deleted inserted replaced
17240:d757c98636d8 17241:03a666018e0f
884 save_LIBS="$LIBS" 884 save_LIBS="$LIBS"
885 CPPFLAGS="$Z_CPPFLAGS $CPPFLAGS" 885 CPPFLAGS="$Z_CPPFLAGS $CPPFLAGS"
886 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS" 886 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS"
887 OCTAVE_CHECK_LIB(glpk, GLPK, 887 OCTAVE_CHECK_LIB(glpk, GLPK,
888 [GLPK library not found. The glpk function for solving linear programs will be disabled.], 888 [GLPK library not found. The glpk function for solving linear programs will be disabled.],
889 [glpk/glpk.h glpk.h], [glp_simplex]) 889 [glpk/glpk.h glpk.h], [glp_simplex], [], [],
890 [warn_glpk=
891 OCTAVE_CHECK_LIB_GLPK_OK(
892 [TEXINFO_GLPK="@set HAVE_GLPK"
893 AC_DEFINE(HAVE_GLPK, 1, [Define to 1 if GLPK is available.])],
894 [warn_glpk="GLPK library found, but does not seem to work properly -- disabling glpk function"])])
890 LIBS="$save_LIBS" 895 LIBS="$save_LIBS"
891 CPPFLAGS="$save_CPPFLAGS" 896 CPPFLAGS="$save_CPPFLAGS"
892 897
893 ### Checks for cURL header and library. 898 ### Checks for cURL header and library.
894 899