-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Library to enable accessibility on gnome linux.
- Loading branch information
Showing
60 changed files
with
11,572 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
################################################################################ | ||
# Setup at-spi2-atk | ||
################################################################################ | ||
AC_DEFUN_ONCE([LIB_SETUP_AT_SPI2_ATK], | ||
[ | ||
AC_ARG_WITH(at-spi2-atk, [AS_HELP_STRING([--with-at-spi2-atk], | ||
[specify prefix directory for the at-spi2-atk package | ||
(expecting the headers under PATH/include); required for atk-wrapper to work])]) | ||
AC_ARG_WITH(at-spi2-atk-include, [AS_HELP_STRING([--with-at-spi2-atk-include], | ||
[specify directory for the at-spi2-atk include files])]) | ||
if test "x$NEEDS_LIB_AT_SPI2_ATK" = xfalse || test "x${with_at_spi2_atk}" = xno || \ | ||
test "x${with_at_spi2_atk_include}" = xno; then | ||
if (test "x${with_at_spi2_atk}" != x && test "x${with_at_spi2_atk}" != xno) || \ | ||
(test "x${with_at_spi2_atk_include}" != x && test "x${with_at_spi2_atk_include}" != xno); then | ||
AC_MSG_WARN([[at-spi2-atk not used, so --with-at-spi2-atk[-*] is ignored]]) | ||
fi | ||
AT_SPI2_ATK_CFLAGS= | ||
AT_SPI2_ATK_LIBS= | ||
else | ||
AT_SPI2_ATK_FOUND=no | ||
if test "x${with_at_spi2_atk}" != x && test "x${with_at_spi2_atk}" != xyes; then | ||
AC_MSG_CHECKING([for at-spi2-atk header and library]) | ||
if test -s "${with_at_spi2_atk}/include/at-spi2-atk/2.0/atk-bridge.h"; then | ||
AT_SPI2_ATK_CFLAGS="-I${with_at_spi2_atk}/include/at-spi2-atk/2.0" | ||
AT_SPI2_ATK_LIBS="-L${with_at_spi2_atk}/lib -latk-bridge-2.0" | ||
AT_SPI2_ATK_FOUND=yes | ||
AC_MSG_RESULT([$AT_SPI2_ATK_FOUND]) | ||
else | ||
AC_MSG_ERROR([Can't find '/include/at-spi2-atk/2.0/atk-bridge.h' under ${with_at_spi2_atk} given with the --with-at-spi2-atk option.]) | ||
fi | ||
fi | ||
if test "x${with_at_spi2_atk_include}" != x; then | ||
AC_MSG_CHECKING([for at-spi2-atk headers]) | ||
if test -s "${with_at_spi2_atk_include}/at-spi2-atk/2.0/atk-bridge.h"; then | ||
AT_SPI2_ATK_CFLAGS="-I${with_at_spi2_atk_include}/at-spi2-atk/2.0" | ||
AT_SPI2_ATK_FOUND=yes | ||
AC_MSG_RESULT([$AT_SPI2_ATK_FOUND]) | ||
else | ||
AC_MSG_ERROR([Can't find 'include/at-spi2-atk-2.0/atk-bridge.h' under ${with_at_spi2_atk_include} given with the --with-at-spi2-atk-include option.]) | ||
fi | ||
fi | ||
if test "x$AT_SPI2_ATK_FOUND" = xno; then | ||
# Are the at-spi2-atk headers installed in the default /usr/include location? | ||
# FIXME: AC_CHECK_HEADERS doesn't find the header without CPPFLAGS update | ||
PKG_CHECK_MODULES([AT_SPI2_ATK], [atk-bridge-2.0], CPPFLAGS="$CPPFLAGS $AT_SPI2_ATK_CFLAGS", break) | ||
AC_CHECK_HEADERS([at-spi2-atk/2.0/atk-bridge.h], | ||
[ AT_SPI2_ATK_FOUND=yes; AT_SPI2_ATK_LIBS="-latk-bridge-2.0" ], | ||
[ AT_SPI2_ATK_FOUND=no; break ] | ||
) | ||
fi | ||
fi | ||
AC_SUBST(AT_SPI2_ATK_CFLAGS) | ||
AC_SUBST(AT_SPI2_ATK_LIBS) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
################################################################################ | ||
# Setup atk | ||
################################################################################ | ||
AC_DEFUN_ONCE([LIB_SETUP_ATK], | ||
[ | ||
AC_ARG_WITH(atk, [AS_HELP_STRING([--with-atk], | ||
[specify prefix directory for the atk package | ||
(expecting the headers under PATH/include); required for atk-wrapper to work])]) | ||
AC_ARG_WITH(atk-include, [AS_HELP_STRING([--with-atk-include], | ||
[specify directory for the atk include files])]) | ||
if test "x$NEEDS_LIB_ATK" = xfalse || test "x${with_atk}" = xno || \ | ||
test "x${with_atk_include}" = xno; then | ||
if (test "x${with_atk}" != x && test "x${with_atk}" != xno) || \ | ||
(test "x${with_atk_include}" != x && test "x${with_atk_include}" != xno); then | ||
AC_MSG_WARN([[atk not used, so --with-atk[-*] is ignored]]) | ||
fi | ||
ATK_CFLAGS= | ||
ATK_LIBS= | ||
else | ||
ATK_FOUND=no | ||
if test "x${with_atk}" != x && test "x${with_atk}" != xyes; then | ||
AC_MSG_CHECKING([for atk header and library]) | ||
if test -s "${with_atk}/include/atk-1.0/atk/atk.h"; then | ||
ATK_CFLAGS="-I${with_atk}/include/atk-1.0" | ||
ATK_LIBS="-L${with_atk}/lib -latk-1.0" | ||
ATK_FOUND=yes | ||
AC_MSG_RESULT([$ATK_FOUND]) | ||
else | ||
AC_MSG_ERROR([Can't find '/include/atk-1.0/atk/atk.h' under ${with_atk} given with the --with-atk option.]) | ||
fi | ||
fi | ||
if test "x${with_atk_include}" != x; then | ||
AC_MSG_CHECKING([for atk headers]) | ||
if test -s "${with_atk_include}/atk-1.0/atk/atk.h"; then | ||
ATK_CFLAGS="-I${with_atk_include}/atk-1.0" | ||
ATK_FOUND=yes | ||
AC_MSG_RESULT([$ATK_FOUND]) | ||
else | ||
AC_MSG_ERROR([Can't find 'include/atk-1.0/atk/atk.h' under ${with_atk_include} given with the --with-atk-include option.]) | ||
fi | ||
fi | ||
if test "x$ATK_FOUND" = xno; then | ||
# Are the atk headers installed in the default /usr/include location? | ||
# FIXME: AC_CHECK_HEADERS doesn't find the header without CPPFLAGS update | ||
PKG_CHECK_MODULES([ATK], [atk], CPPFLAGS="$CPPFLAGS $ATK_CFLAGS", break) | ||
AC_CHECK_HEADERS([atk-1.0/atk/atk.h], | ||
[ ATK_FOUND=yes; ATK_LIBS="-latk-1.0" ], | ||
[ ATK_FOUND=no; break ] | ||
) | ||
fi | ||
fi | ||
AC_SUBST(ATK_CFLAGS) | ||
AC_SUBST(ATK_LIBS) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
################################################################################ | ||
# Setup glib | ||
################################################################################ | ||
AC_DEFUN_ONCE([LIB_SETUP_GLIB], | ||
[ | ||
AC_ARG_WITH(glib, [AS_HELP_STRING([--with-glib], | ||
[specify prefix directory for the glib package | ||
(expecting the headers under PATH/include); required for atk-wrapper to work])]) | ||
AC_ARG_WITH(glib-include, [AS_HELP_STRING([--with-glib-include], | ||
[specify directory for the glib include files])]) | ||
if test "x$NEEDS_LIB_GLIB" = xfalse || test "x${with_glib}" = xno || \ | ||
test "x${with_glib_include}" = xno; then | ||
if (test "x${with_glib}" != x && test "x${with_glib}" != xno) || \ | ||
(test "x${with_glib_include}" != x && test "x${with_glib_include}" != xno); then | ||
AC_MSG_WARN([[glib not used, so --with-glib[-*] is ignored]]) | ||
fi | ||
GLIB_CFLAGS= | ||
GLIB_LIBS= | ||
else | ||
GLIB_FOUND=no | ||
if test "x${with_glib}" != x && test "x${with_glib}" != xyes; then | ||
AC_MSG_CHECKING([for glib header and library]) | ||
if test -s "${with_glib}/include/glib-2.0/glib.h"; then | ||
GLIB_CFLAGS="-I${with_glib}/include/glib-2.0" | ||
GLIB_LIBS="-L${with_glib}/lib -lglib-2.0" | ||
GLIB_FOUND=yes | ||
AC_MSG_RESULT([$GLIB_FOUND]) | ||
else | ||
AC_MSG_ERROR([Can't find '/include/glib-2.0/glib.h' under ${with_glib} given with the --with-glib option.]) | ||
fi | ||
fi | ||
if test "x${with_glib_include}" != x; then | ||
AC_MSG_CHECKING([for glib headers]) | ||
if test -s "${with_glib_include}/glib-2.0/glib.h"; then | ||
GLIB_CFLAGS="-I${with_glib_include}" | ||
GLIB_FOUND=yes | ||
AC_MSG_RESULT([$GLIB_FOUND]) | ||
else | ||
AC_MSG_ERROR([Can't find '/include/glib-2.0/glib.h' under ${with_glib_include} given with the --with-glib-include option.]) | ||
fi | ||
fi | ||
if test "x$GLIB_FOUND" = xno; then | ||
# Are the glib headers installed in the default /usr/include location? | ||
# FIXME: AC_CHECK_HEADERS doesn't find the header without CPPFLAGS update | ||
PKG_CHECK_MODULES([GLIB], [glib-2.0], CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS", break) | ||
AC_CHECK_HEADERS([glib-2.0/glib.h], | ||
[ GLIB_FOUND=yes; GLIB_LIBS="-lglib-2.0" ], | ||
[ GLIB_FOUND=no; break ] | ||
) | ||
fi | ||
fi | ||
AC_SUBST(GLIB_CFLAGS) | ||
AC_SUBST(GLIB_LIBS) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
################################################################################ | ||
# Setup glibconfig | ||
################################################################################ | ||
AC_DEFUN_ONCE([LIB_SETUP_GLIBCONFIG], | ||
[ | ||
AC_ARG_WITH(glibconfig, [AS_HELP_STRING([--with-glibconfig], | ||
[specify prefix directory for the glibconfig package | ||
(expecting the headers under PATH/include); required for atk-wrapper to work])]) | ||
AC_ARG_WITH(glibconfig-include, [AS_HELP_STRING([--with-glibconfig-include], | ||
[specify directory for the glibconfig include files])]) | ||
if test "x$NEEDS_LIB_GLIBCONFIG" = xfalse || test "x${with_glibconfig}" = xno || \ | ||
test "x${with_glibconfig_include}" = xno; then | ||
if (test "x${with_glibconfig}" != x && test "x${with_glibconfig}" != xno) || \ | ||
(test "x${with_glibconfig_include}" != x && test "x${with_glibconfig_include}" != xno); then | ||
AC_MSG_WARN([[glibconfig not used, so --with-glibconfig[-*] is ignored]]) | ||
fi | ||
GLIBCONFIG_CFLAGS= | ||
else | ||
GLIBCONFIG_FOUND=no | ||
if test "x${with_glibconfig}" != x && test "x${with_glibconfig}" != xyes; then | ||
AC_MSG_CHECKING([for glibconfig header]) | ||
if test -s "${with_glibconfig}/include/glibconfig.h"; then | ||
GLIBCONFIG_CFLAGS="-I${with_glibconfig}/include" | ||
GLIBCONFIG_FOUND=yes | ||
AC_MSG_RESULT([$GLIBCONFIG_FOUND]) | ||
else | ||
AC_MSG_ERROR([Can't find '/include/glibconfig.h' under ${with_glibconfig} given with the --with-glibconfig option.]) | ||
fi | ||
fi | ||
if test "x${with_glibconfig_include}" != x; then | ||
AC_MSG_CHECKING([for glibconfig headers]) | ||
if test -s "${with_glibconfig_include}/glibconfig.h"; then | ||
GLIBCONFIG_CFLAGS="-I${with_glibconfig_include}" | ||
GLIBCONFIG_FOUND=yes | ||
AC_MSG_RESULT([$GLIBCONFIG_FOUND]) | ||
else | ||
AC_MSG_ERROR([Can't find '/include/glibconfig.h' under ${with_glibconfig_include} given with the --with-glibconfig-include option.]) | ||
fi | ||
fi | ||
if test "x$GLIBCONFIG_FOUND" = xno; then | ||
# Are the glibconfig header installed in the default /usr/lib/glib-2.0/include location? | ||
PKG_CHECK_MODULES([GLIBCONFIG], [glib-2.0], CPPFLAGS="$CPPFLAGS $GLIBCONFIG_CFLAGS", break) | ||
# FIXME: AC_CHECK_HEADERS doesn't find glibconfig.h, even though $GLIBCONFIG_CFLAGS contains its path | ||
AC_CHECK_HEADER([glibconfig.h], | ||
[ GLIBCONFIG_FOUND=yes ], | ||
[ GLIBCONFIG_FOUND=no; break ] | ||
) | ||
fi | ||
fi | ||
AC_SUBST(GLIBCONFIG_CFLAGS) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
################################################################################ | ||
# Setup gobject | ||
################################################################################ | ||
AC_DEFUN_ONCE([LIB_SETUP_GOBJECT], | ||
[ | ||
AC_ARG_WITH(gobject, [AS_HELP_STRING([--with-gobject], | ||
[specify prefix directory for the gobject package | ||
(expecting the headers under PATH/include); required for atk-wrapper to work])]) | ||
AC_ARG_WITH(gobject-include, [AS_HELP_STRING([--with-gobject-include], | ||
[specify directory for the gobject include files])]) | ||
if test "x$NEEDS_LIB_GOBJECT" = xfalse || test "x${with_gobject}" = xno || \ | ||
test "x${with_gobject_include}" = xno; then | ||
if (test "x${with_gobject}" != x && test "x${with_gobject}" != xno) || \ | ||
(test "x${with_gobject_include}" != x && test "x${with_gobject_include}" != xno); then | ||
AC_MSG_WARN([[gobject not used, so --with-gobject[-*] is ignored]]) | ||
fi | ||
GOBJECT_CFLAGS= | ||
GOBJECT_LIBS= | ||
else | ||
GOBJECT_FOUND=no | ||
if test "x${with_gobject}" != x && test "x${with_gobject}" != xyes; then | ||
AC_MSG_CHECKING([for gobject header and library]) | ||
if test -s "${with_gobject}/include/glib-2.0/gobject/gobject.h"; then | ||
GOBJECT_CFLAGS="-I${with_gobject}/include/glib-2.0/gobject" | ||
GOBJECT_LIBS="-L${with_gobject}/lib -lgobject-2.0" | ||
GOBJECT_FOUND=yes | ||
AC_MSG_RESULT([$GOBJECT_FOUND]) | ||
else | ||
AC_MSG_ERROR([Can't find '/include/glib-2.0/gobject/gobject.h' under ${with_gobject} given with the --with-gobject option.]) | ||
fi | ||
fi | ||
if test "x${with_gobject_include}" != x; then | ||
AC_MSG_CHECKING([for gobject headers]) | ||
if test -s "${with_gobject_include}/glib-2.0/gobject/gobject.h"; then | ||
GOBJECT_CFLAGS="-I${with_gobject_include}/glib-2.0/gobject" | ||
GOBJECT_FOUND=yes | ||
AC_MSG_RESULT([$GOBJECT_FOUND]) | ||
else | ||
AC_MSG_ERROR([Can't find '/include/glib-2.0/gobject/gobject.h' under ${with_gobject_include} given with the --with-gobject-include option.]) | ||
fi | ||
fi | ||
if test "x$GOBJECT_FOUND" = xno; then | ||
# Are the gobject headers installed in the default /usr/include location? | ||
# FIXME: AC_CHECK_HEADERS doesn't find the header without CPPFLAGS update | ||
PKG_CHECK_MODULES([GOBJECT], [gobject-2.0], CPPFLAGS="$CPPFLAGS $GOBJECT_CFLAGS", break) | ||
AC_CHECK_HEADERS([glib-object.h], | ||
[ GOBJECT_FOUND=yes; GOBJECT_LIBS="-lgobject-2.0" ], | ||
[ GOBJECT_FOUND=no; break ] | ||
) | ||
fi | ||
fi | ||
AC_SUBST(GOBJECT_CFLAGS) | ||
AC_SUBST(GOBJECT_LIBS) | ||
]) |
Oops, something went wrong.