summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2026-02-04 14:49:54 -0500
committerVictor Kareh <[email protected]>2026-02-04 14:49:54 -0500
commitcb60caeb060c73d2ffd1b0736d501857e89d14be (patch)
tree52adce633674edcd23d4b10ddf80664a2870643a /configure.ac
parent6df44358e1e1688a32c63d840ea50e21491ffc0a (diff)
downloadmate-session-manager-canberra-sounds.tar.bz2
mate-session-manager-canberra-sounds.tar.xz
session: Add sound events for login and logoutcanberra-sounds
Adds optional libcanberra support to play desktop-login and desktop-logout sound events during session start and end. Sound playback is controlled through the system sound theme configuration. Fixes #328
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0bf02ca..c6d13c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,6 +84,26 @@ fi
AM_CONDITIONAL([HAVE_GLESV2], [test "x$have_glesv2" = "xyes"])
dnl ====================================================================
+dnl libcanberra (optional) for sound events
+dnl ====================================================================
+
+AC_ARG_WITH([libcanberra],
+ AS_HELP_STRING([--without-libcanberra], [Disable sound events (default: auto)]),
+ [with_libcanberra=$withval], [with_libcanberra=auto])
+
+have_libcanberra=no
+if test "x$with_libcanberra" != "xno"; then
+ PKG_CHECK_MODULES(LIBCANBERRA, libcanberra-gtk3,
+ [AC_DEFINE(HAVE_LIBCANBERRA, 1, [Define if libcanberra-gtk3 is available])
+ have_libcanberra=yes], have_libcanberra=no)
+ if test "x$have_libcanberra" = xno -a "x$with_libcanberra" = xyes; then
+ AC_MSG_ERROR([libcanberra support requested but library not found])
+ fi
+fi
+AC_SUBST(LIBCANBERRA_CFLAGS)
+AC_SUBST(LIBCANBERRA_LIBS)
+
+dnl ====================================================================
dnl Option to set the default window manager
dnl ====================================================================
AC_ARG_WITH(default-wm,
@@ -385,5 +405,6 @@ echo "
XTest support: ${have_xtest}
Build documentation: ${enable_docbook_docs}
Native Language support: ${USE_NLS}
+ Libcanberra support: ${have_libcanberra}
"