diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2012-05-10 23:52:05 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-14 01:40:06 +0200 |
commit | 8e1ff45e74f529c7f49688242ea0fd25ce2913f3 (patch) | |
tree | ae13e233a4b9da58d2f4cf5ae0b733e86fe0d5a9 /configure | |
parent | 85b624a969c2674f726b6e80af1418bdd9f91969 (diff) |
Add Linux Accessibility Bridge
This is a plugin that bridges the QAccessible world
to AT-SPI 2 on Linux.
Change-Id: I7af22621ee6a3cefc723b137b7f227a611cf6641
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 20 insertions, 6 deletions
@@ -3012,7 +3012,7 @@ Configure options: + -largefile ......... Enables Qt to access files larger than 4 GB. -no-accessibility .. Do not compile Accessibility support. - * -accessibility ..... Compile Accessibility support. + + -accessibility ..... Compile Accessibility support. -no-sql-<driver> ... Disable SQL <driver> entirely. -qt-sql-<driver> ... Enable a SQL <driver> in the QtSql library, by default @@ -3989,11 +3989,6 @@ if [ "$CFG_LIBPNG" = "auto" ]; then fi fi -# detect accessibility -if [ "$CFG_ACCESSIBILITY" = "auto" ]; then - CFG_ACCESSIBILITY=yes -fi - if [ "$CFG_EGLFS" = "yes" ]; then if [ "$CFG_EGL" = "no" ]; then echo "The EGLFS plugin requires EGL support and cannot be built" @@ -4842,6 +4837,25 @@ if [ "$CFG_KMS" = "yes" ]; then fi fi +# Detect accessibility support +if [ "$CFG_ACCESSIBILITY" != "no" ]; then + if [ "$CFG_XCB" = "no" ]; then + CFG_ACCESSIBILITY=yes + else + # linux/xcb accessibility needs dbus and atspi-2 + if [ "$CFG_DBUS" != "no" ] && [ -n "$PKG_CONFIG" ] && $PKG_CONFIG --exists "atspi-2" 2>/dev/null; then + CFG_ACCESSIBILITY=yes + else + if [ "$CFG_ACCESSIBILITY" = "auto" ]; then + CFG_ACCESSIBILITY=no + else + echo "Accessibility support needs pkg-config and libatspi2." + exit 101 + fi + fi + fi +fi + # Determine the default QPA platform if [ -z "$QT_QPA_DEFAULT_PLATFORM" ]; then # check the mkspec |