aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac7
-rw-r--r--libempathy-gtk/Makefile.am2
2 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 03e0620fc..7a1b9b9d6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -152,7 +152,6 @@ PKG_CHECK_MODULES(EMPATHY,
gobject-2.0
gstreamer-0.10
gstreamer-interfaces-0.10
- libcanberra-gtk >= $LIBCANBERRA_GTK_REQUIRED
libebook-1.2
libxml-2.0
telepathy-farsight
@@ -176,6 +175,9 @@ AC_ARG_ENABLE(gtk3,
if test "x$enable_gtk3" != "xno"; then
PKG_CHECK_MODULES(GTK, [gtk+-3.0 >= $GTK_REQUIRED],
enable_gtk3="yes", enable_gtk3="no")
+
+ # GTK3 specific deps
+ PKG_CHECK_MODULES(CANBERRA, libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED)
fi
# ...if not use GTK+2
@@ -183,6 +185,9 @@ if test "x$enable_gtk3" == "xno"; then
enable_gtk3=no
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
+ # GTK2 specific deps
+ PKG_CHECK_MODULES(CANBERRA, libcanberra-gtk >= $LIBCANBERRA_GTK_REQUIRED)
+
# Enable GSEAL checks if needed
if test $USE_MAINTAINER_MODE = yes; then
AC_DEFINE(GSEAL_ENABLE, [], [Seal public structs to force usage of accessors])
diff --git a/libempathy-gtk/Makefile.am b/libempathy-gtk/Makefile.am
index 5762f5c9e..6fa8202dd 100644
--- a/libempathy-gtk/Makefile.am
+++ b/libempathy-gtk/Makefile.am
@@ -9,6 +9,7 @@ AM_CPPFLAGS = \
$(EMPATHY_CFLAGS) \
$(GTK_CFLAGS) \
$(LIBNOTIFY_CFLAGS) \
+ $(CANBERRA_CFLAGS) \
$(ENCHANT_CFLAGS) \
$(LIBCHAMPLAIN_CFLAGS) \
$(GEOCLUE_CFLAGS) \
@@ -133,6 +134,7 @@ libempathy_gtk_la_LIBADD = \
$(EMPATHY_LIBS) \
$(GTK_LIBS) \
$(LIBNOTIFY_LIBS) \
+ $(CANBERRA_LIBS) \
$(ENCHANT_LIBS) \
$(LIBCHAMPLAIN_LIBS) \
$(GEOCLUE_LIBS) \