Don't set {GLPK,CPLEX}_{CFLAGS,LIBS} if the check fails.
1 AM_CPPFLAGS = -I$(top_srcdir)/src
2 LDADD = $(top_builddir)/src/lemon/libemon.la
5 LP_CFLAGS = $(GLPK_CFLAGS) -DHAVE_GLPK
9 LP_CFLAGS = $(CPLEX_CFLAGS) -DHAVE_CPLEX
10 LP_LIBS = $(CPLEX_LIBS)
15 EXTRA_DIST = sub_graph_wrapper_demo.dim
22 sub_graph_wrapper_demo
25 noinst_PROGRAMS += lp_demo lp_maxflow_demo
28 noinst_PROGRAMS += lp_demo lp_maxflow_demo
33 dim_to_dot_SOURCES = dim_to_dot.cc
35 dim_to_lgf_SOURCES = dim_to_lgf.cc
37 graph_to_eps_demo_SOURCES = graph_to_eps_demo.cc
39 min_route_SOURCES = min_route.cc
41 sub_graph_wrapper_demo_SOURCES = \
42 sub_graph_wrapper_demo.cc \
43 tight_edge_filter_map.h
45 lp_demo_SOURCES = lp_demo.cc
46 lp_demo_CXXFLAGS = $(LP_CFLAGS)
47 lp_demo_LDFLAGS = $(LP_LIBS)
49 lp_maxflow_demo_SOURCES = lp_maxflow_demo.cc
50 lp_maxflow_demo_CXXFLAGS = $(LP_CFLAGS)
51 lp_maxflow_demo_LDFLAGS = $(LP_LIBS)