[cheese/gnome-3-14] Use LT_LIB_M to find the math library



commit 4c578e2f0fd2bd648225f83ea921cc1b91854d07
Author: Andreas Henriksson <andreas fatal se>
Date:   Wed Sep 24 16:41:27 2014 +0100

    Use LT_LIB_M to find the math library
    
    libcheese-gtk needs to link with -lm to find the fmod function.

 Makefile.am  |    1 +
 configure.ac |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index c811239..c0f6950 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 21e5bf4..4d98f55 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"])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]