1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
From 11b951614a6b6cf567f33b04872b9d663989d2fe Mon Sep 17 00:00:00 2001
From: Alexandre Rostovtsev <tetromino@gentoo.org>
Date: Sat, 3 Nov 2012 02:25:09 -0400
Subject: [PATCH] build: link libdocument against libm and gmodule, and
smclient against libICE
Needed for building with gnu gold
---
configure.ac | 6 ++++--
libdocument/Makefile.am | 1 +
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4bf438d..b5d8e8b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -163,8 +163,10 @@ dnl Check dependencies
# SHELL_CFLAGS for shell implementation.
# SHELL_LIBS
+AC_CHECK_LIBM
+AC_SUBST(LIBM)
-PKG_CHECK_MODULES(LIBDOCUMENT, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED)
+PKG_CHECK_MODULES(LIBDOCUMENT, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gmodule-2.0)
PKG_CHECK_MODULES(LIBVIEW, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gail$GAIL_API_VERSION >= $GTK_REQUIRED gthread-2.0 gio-2.0 >= $GLIB_REQUIRED)
PKG_CHECK_MODULES(BACKEND, cairo >= $CAIRO_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED)
PKG_CHECK_MODULES(FRONTEND_CORE, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gthread-2.0 gio-2.0 >= $GLIB_REQUIRED)
@@ -221,7 +223,7 @@ if test "$with_smclient" != "no"; then
AC_DEFINE([WITH_SMCLIENT],[1],[Define if smclient is enabled])
case "$with_smclient" in
- xsmp) SMCLIENT_PKGS="sm >= 1.0.0" ;;
+ xsmp) SMCLIENT_PKGS="sm >= 1.0.0 ice" ;;
*) SMCLIENT_PKGS="" ;;
esac
diff --git a/libdocument/Makefile.am b/libdocument/Makefile.am
index facf17c..3944fb7 100644
--- a/libdocument/Makefile.am
+++ b/libdocument/Makefile.am
@@ -114,6 +114,7 @@ libevdocument_la_LDFLAGS = \
libevdocument_la_LIBADD = \
$(LIBDOCUMENT_LIBS) \
+ $(LIBM) \
$(top_builddir)/cut-n-paste/synctex/libsynctex.la
--
1.7.12.4
|