[gthumb: 32/40] link to the math library explicitly



commit 18bf7faf85eacc426be5c0e347ef53a8c494aaae
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Sep 9 20:14:12 2010 +0200

    link to the math library explicitly

 configure.ac       |    6 ++++++
 gthumb/Makefile.am |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a5a1b1f..cbc8a5d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -147,6 +147,12 @@ AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
 
 dnl ===========================================================================
 
+AC_CHECK_LIB(m, floor,, AC_MSG_ERROR([math library not found]))
+M_LIBS="-lm"
+AC_SUBST(M_LIBS)
+
+dnl ===========================================================================
+
 AC_ARG_ENABLE([exiv2],
 	      [AS_HELP_STRING([--disable-exiv2],[do not compile code that uses the exiv2 library])],,
 	      [enable_exiv2=yes])
diff --git a/gthumb/Makefile.am b/gthumb/Makefile.am
index 3985695..4e34582 100644
--- a/gthumb/Makefile.am
+++ b/gthumb/Makefile.am
@@ -248,6 +248,7 @@ endif
 gthumb_LDADD =						\
 	$(top_builddir)/copy-n-paste/libeggsmclient.la	\
 	$(GTHUMB_LIBS)					\
+	$(M_LIBS)					\
 	$(EXIV2_LIBS)					\
 	$(JPEG_LIBS)					\
 	$(TIFF_LIBS)					\



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