summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2013-05-16 18:55:08 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2013-05-20 16:53:25 -0400
commit67cd7748e776bcceefe7b06edcfc316876cca9bd (patch)
tree29ab82d71c94c293de494c9805b102325f36ea06 /src
parentf1e9c2f91b021b695afad733c44945b6c779bfd5 (diff)
configure fix for building with glpk on redhat, perhaps others
Diffstat (limited to 'src')
-rw-r--r--src/theory/arith/approx_simplex.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/theory/arith/approx_simplex.cpp b/src/theory/arith/approx_simplex.cpp
index 47f15d8c7..0f5a0fd4e 100644
--- a/src/theory/arith/approx_simplex.cpp
+++ b/src/theory/arith/approx_simplex.cpp
@@ -116,8 +116,14 @@ public:
/* Begin the declaration of GLPK specific code. */
#ifdef CVC4_USE_GLPK
extern "C" {
-#include <glpk.h>
-}
+/* Sometimes the header is in a subdirectory glpk/, sometimes not.
+ * The configure script figures it out. */
+#ifdef HAVE_GLPK_GLPK_H
+# include <glpk/glpk.h>
+#else /* HAVE_GLPK_GLPK_H */
+# include <glpk.h>
+#endif /* HAVE_GLPK_GLPK_H */
+}/* extern "C" */
namespace CVC4 {
namespace theory {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback