aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
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)