summaryrefslogtreecommitdiff
blob: ae61c3b35f82421fb8507d2d8402d3612a6ebe23 (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
From: orbea <orbea@riseup.net>
Date: Mon, 11 Jul 2022 17:38:52 -0700
Subject: [PATCH] build: Add missing cairo-xlib dependency

src/preview.c:146:15: warning: implicit declaration of function ‘cairo_xlib_surface_create’; did you mean ‘cairo_image_surface_create’? [-Wimplicit-function-declaration]

--- a/Makefile.am
+++ b/Makefile.am
@@ -16,6 +16,7 @@ module_LTLIBRARIES = src/obconf.la
 moduledir = $(libdir)/lxappearance/plugins
 
 src_obconf_la_CPPFLAGS = \
+	$(CAIRO_CFLAGS) \
 	$(OPENBOX_CFLAGS) \
 	$(GTK_CFLAGS) \
 	$(LXAPPEARANCE_CFLAGS) \
@@ -30,6 +31,7 @@ src_obconf_la_CPPFLAGS = \
 	-DG_LOG_DOMAIN=\"Obconf\"
 
 src_obconf_la_LIBADD = \
+	$(CAIRO_LIBS) \
 	$(OPENBOX_LIBS) \
 	$(GTK_LIBS) \
 	$(LXAPPEARANCE_LIBS) \
diff --git a/configure.ac b/configure.ac
index 9042f7f..84de1c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,6 +89,10 @@ PKG_CHECK_MODULES(OPENBOX, [obrender-3.5 >= 3.5 obt-3.5 >= 3.5])
 AC_SUBST(OPENBOX_CFLAGS)
 AC_SUBST(OPENBOX_LIBS)
 
+PKG_CHECK_MODULES(CAIRO, [cairo-xlib])
+AC_SUBST(CAIRO_CFLAGS)
+AC_SUBST(CAIRO_LIBS)
+
 if test "x$enable_gtk3" = "xyes" ; then
   CFLAGS="$CFLAGS -DENABLE_GTK3"
   gtk_modules="gtk+-3.0 >= 3.0.0"