Index: config/lx_check_cplex.m4
===================================================================
--- config/lx_check_cplex.m4	(revision 1489)
+++ config/lx_check_cplex.m4	(revision 1507)
@@ -22,4 +22,6 @@
     elif test x"$with_cplex" != x"yes"; then
       CPLEX_CFLAGS="-I$with_cplex/include"
+    elif test x"$CPLEX_INCLUDEDIR" != x; then
+      CPLEX_CFLAGS="-I$CPLEX_INCLUDEDIR"
     fi
 
@@ -28,4 +30,6 @@
     elif test x"$with_cplex" != x"yes"; then
       CPLEX_LDFLAGS="-L$with_cplex/lib"
+    elif test x"$CPLEX_LIBDIR" != x; then
+      CPLEX_LDFLAGS="-L$CPLEX_LIBDIR"
     fi
     CPLEX_LIBS="-lcplex -lm -lpthread"
