blob: 3f7e0045fb4458c934e543caf2692cde3cc61f40 (
plain)
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
53
54
55
56
57
58
59
|
--- configure.ac
+++ configure.ac
@@ -28,8 +28,23 @@
dnl Gaim plugin check
dnl =================
-AC_GAIM
-
+AC_ARG_ENABLE([gaim],
+ AC_HELP_STRING([--enable-gaim], [build gaim plugin]),,
+ [enable_gaim=no])
+
+if test x$enable_gaim = xyes ; then
+ PKG_CHECK_MODULES(GAIM, [gaim])
+
+ GAIM_LIBDIR=`pkg-config --variable=libdir gaim`
+ GAIM_DATADIR=`pkg-config --variable=datadir gaim`
+ GAIMPLUGIN=gaim-plugin
+
+ AC_SUBST(GAIM_CFLAGS)
+ AC_SUBST(GAIM_LIBS)
+ AC_SUBST(GAIM_LIBDIR)
+ AC_SUBST(GAIM_DATADIR)
+ AC_SUBST(GAIMPLUGIN)
+fi
dnl Check for header files
dnl ======================
@@ -118,7 +133,7 @@
echo " GDB Debugging......$enable_debug_gdb"
echo " Dmalloc Debugging..$enable_debug_mem"
echo ""
-echo " Gaim plugin........$have_gaim"
+echo " Gaim plugin........$enable_gaim"
echo ""
echo "At the prompt type \"make\" to compile the GGZ gtk client"
echo ""
--- gaim-plugin/Makefile.am
+++ gaim-plugin/Makefile.am
@@ -1,15 +1,15 @@
## Process this file with automake to produce Makefile.in
# $Id: ggz-gtk-client-0.0.13-gaim.patch,v 1.1 2006/10/11 15:35:26 nyhm Exp $
-plugindir = $(libdir)/gaim
+plugindir = @GAIM_LIBDIR@/gaim
plugin_LTLIBRARIES = ggzgaim.la
ggzgaim_la_SOURCES = simple.c
ggzgaim_la_LDFLAGS = -module -avoid-version @GTK_CFLAGS@ $(LIBGGZ_LDFLAGS)
-ggzgaim_la_LIBADD = @GTK_LIBS@ $(LIB_GGZ)
+ggzgaim_la_LIBADD = @GTK_LIBS@ @GAIM_LIBS@ $(LIB_GGZ)
-AM_CPPFLAGS = @GTK_CFLAGS@ $(LIBGGZ_INCLUDES)
+AM_CPPFLAGS = @GTK_CFLAGS@ @GAIM_CFLAGS@ $(LIBGGZ_INCLUDES)
EXTRA_DIST = ggz.xpm
|