From 7fb8e162baf14c632fb863efe034f298b5d1d174 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 5 Aug 2020 16:21:43 +0200 Subject: a11y-keyboard: capslock-beep: Try and detect non-buggy libatspi2 Try and avoid the workaround for buggy libatspi2 if we can know the version we're using has it fixed. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c2e1cfd..19dde6b 100644 --- a/configure.ac +++ b/configure.ac @@ -123,6 +123,9 @@ dnl --------------------------------------------------------------------------- PKG_CHECK_MODULES(LIBATSPI, atspi-2 >= $LIBATSPI_REQUIRED_VERSION, [AC_DEFINE(HAVE_LIBATSPI, 1, [Define if libatspi is available]) have_libatspi=yes], have_libatspi=no) +PKG_CHECK_EXISTS([atspi-2 > 2.36.0], + [AC_DEFINE([DESTROYING_ATSPI_LISTENER_DOES_NOT_CRASH], [1], [Define if libatspi does not have bug 22])], + []) dnl --------------------------------------------------------------------------- dnl - Check for D-Bus -- cgit v1.2.1