summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Henriksson <andreas@fatal.se>2014-09-24 16:41:27 +0100
committerDavid King <amigadave@amigadave.com>2014-09-24 16:42:18 +0100
commit0c55ca363b4475e8f26417a7ddf6933f2c492405 (patch)
treea20c27e6f4799a5332ee3d25473ddf6d684ffc48
parenta04a72ae00c1133b308449194008f17d61aab94b (diff)
Use LT_LIB_M to find the math library
libcheese-gtk needs to link with -lm to find the fmod function.
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac3
2 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index c8112395..c0f69501 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -87,6 +87,7 @@ libcheese_gtk_la_CPPFLAGS = \
libcheese_gtk_la_LIBADD = \
libcheese.la \
+ $(LIBM) \
$(CHEESE_LIBS) \
$(CHEESE_GTK_LIBS)
diff --git a/configure.ac b/configure.ac
index 5afd6f58..77f91dcb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,6 +24,9 @@ AM_PROG_VALAC([0.23.3])
LT_PREREQ([2.2])
LT_INIT([disable-static])
+# Find an appropriate libm, for fmod()
+LT_LIB_M
+
PKG_PROG_PKG_CONFIG([0.24])
AC_SUBST([CHEESE_WFLAGS], ["-Wall -DGSEAL_ENABLE"])