1 diff --git a/Makefile.am b/Makefile.am
2 index 24c1a85..cfabbbf 100644
5 @@ -6,6 +6,6 @@ plugin_LTLIBRARIES = top.la
9 -top_la_CFLAGS= @glib_CFLAGS@ @rofi_CFLAGS@
10 -top_la_LIBADD= @glib_LIBS@ @rofi_LIBS@
11 +top_la_CFLAGS= @glib_CFLAGS@ @rofi_CFLAGS@ @cairo_CFLAGS@
12 +top_la_LIBADD= @glib_LIBS@ @rofi_LIBS@ @cairo_LIBS@
13 top_la_LDFLAGS= -module -avoid-version
14 diff --git a/configure.ac b/configure.ac
15 index 4d2df69..f340a7a 100644
18 @@ -53,6 +53,7 @@ dnl PKG_CONFIG based dependencies
19 dnl ---------------------------------------------------------------------
20 PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.40 gio-unix-2.0 gmodule-2.0 libgtop-2.0])
21 PKG_CHECK_MODULES([rofi], [rofi])
22 +PKG_CHECK_MODULES([cairo], [cairo cairo-xcb])
24 [rofi_PLUGIN_INSTALL_DIR]="`$PKG_CONFIG --variable=pluginsdir rofi`"
25 AC_SUBST([rofi_PLUGIN_INSTALL_DIR])