summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
-rw-r--r--src/Makefile.am3
2 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index fa45f8e..b4044f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,8 +51,10 @@ if test "x$FLTKCONFIG" = x; then
exit 1
fi
-CXXFLAGS="`$FLTKCONFIG --cflags` $CXXFLAGS"
-LIBS="`$FLTKCONFIG --ldflags` $LIBS"
+FLTKCXXFLAGS="`$FLTKCONFIG --cflags` $CXXFLAGS"
+FLTKLDFLAGS="`$FLTKCONFIG --ldflags` $LIBS"
+AC_SUBST(FLTKLDFLAGS)
+AC_SUBST(FLTKCXXFLAGS)
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
diff --git a/src/Makefile.am b/src/Makefile.am
index 4c8793c..e670988 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,5 +1,8 @@
bin_PROGRAMS = pnmcurve pnmcurvedit
+pnmcurvedit_LDADD=@FLTKLDFLAGS@
+pnmcurvedit_CXXFLAGS=@FLTKCXXFLAGS@
+
pnmcurve_SOURCES = \
pnmcurve.c \
pnm.c