aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2009-11-10 07:57:12 +0800
committerTor Lillqvist <tml@iki.fi>2009-11-11 21:29:51 +0800
commit123923059156c564ccf1fb46aa92675f644ce6bf (patch)
tree19d4de6f0c27403e8a42e09cd4a54681dadc63cd /configure.ac
parent3dfdf087fc7657905fc7804b59414ecd3d74028e (diff)
downloadgsoc2013-evolution-123923059156c564ccf1fb46aa92675f644ce6bf.tar.gz
gsoc2013-evolution-123923059156c564ccf1fb46aa92675f644ce6bf.tar.zst
gsoc2013-evolution-123923059156c564ccf1fb46aa92675f644ce6bf.zip
Enable building without Canberra-GTK
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7115f98983..a9a91f7b5d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -254,7 +254,15 @@ PKG_CHECK_MODULES([EVOLUTION_DATA_SERVER],
dnl ******************************
dnl Canberra / Canberra-GTK Sound
dnl ******************************
-PKG_CHECK_MODULES([CANBERRA],[libcanberra-gtk])
+AC_ARG_ENABLE([canberra],
+ [AS_HELP_STRING([--enable-canberra],
+ [Enable Canberra and Canberra-GTK sound @<:@default=yes@:>@])],
+ [enable_canberra="$enableval"], [enable_canberra=yes])
+
+if test $enable_canberra = yes; then
+ PKG_CHECK_MODULES([CANBERRA],[libcanberra-gtk])
+ AC_DEFINE(HAVE_CANBERRA, 1, [Define if using Canberra and Canberra-GTK for sound])
+fi
AC_SUBST(CANBERRA_CFLAGS)
AC_SUBST(CANBERRA_LIBS)