aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2012-07-24 11:18:32 -0400
committerKen VanDine <ken.vandine@canonical.com>2012-07-24 11:18:32 -0400
commitcfbf3b9d4c846f12a99624331a56048c7e3a75b7 (patch)
treec2652e961d22cea6e4abee02903962345da1bc0d
parent2a3f56b5168e9745547d2289c0710ae606920cde (diff)
downloadayatana-ido-cfbf3b9d4c846f12a99624331a56048c7e3a75b7.tar.gz
ayatana-ido-cfbf3b9d4c846f12a99624331a56048c7e3a75b7.tar.bz2
ayatana-ido-cfbf3b9d4c846f12a99624331a56048c7e3a75b7.zip
Use AC_CHECK_LIBM to get -lm now that gtk doesn't include that in it's .pc file
-rw-r--r--configure.ac2
-rw-r--r--src/Makefile.am2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6e350b9..a124c29 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,6 +78,8 @@ AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_CHECK_FUNCS([memset munmap strcasecmp strdup])
+AC_CHECK_LIBM
+
AC_ARG_WITH([gtk],
[AS_HELP_STRING([--with-gtk],
[Which version of gtk to use @<:@default=3@:>@])],
diff --git a/src/Makefile.am b/src/Makefile.am
index b849bf5..8fdd5e0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -82,7 +82,7 @@ libidoinclude_HEADERS = \
idotimeline.h \
libido.h
-libido_0_1_la_LIBADD = $(GTK_LIBS)
+libido_0_1_la_LIBADD = $(GTK_LIBS) $(LIBM)
libido_0_1_la_LDFLAGS = \
$(GTK_LT_LDFLAGS) \
$(COVERAGE_LDFLAGS)