AC_INIT(idl/Accessibility.idl)
AT_SPI_MAJOR_VERSION=1
-AT_SPI_MINOR_VERSION=1
-AT_SPI_MICRO_VERSION=8
-AT_SPI_INTERFACE_AGE=0
-AT_SPI_BINARY_AGE=8
+AT_SPI_MINOR_VERSION=3
+AT_SPI_MICRO_VERSION=7
+AT_SPI_INTERFACE_AGE=7
+AT_SPI_BINARY_AGE=7
AT_SPI_VERSION="$AT_SPI_MAJOR_VERSION.$AT_SPI_MINOR_VERSION.$AT_SPI_MICRO_VERSION"
AM_INIT_AUTOMAKE(at-spi, $AT_SPI_VERSION)
AC_SUBST(AT_SPI_MAJOR_VERSION)
# libtool versioning
LT_RELEASE=$AT_SPI_MAJOR_VERSION.$AT_SPI_MINOR_VERSION
-LT_CURRENT=`expr $AT_SPI_MICRO_VERSION - $AT_SPI_INTERFACE_AGE`
-LT_REVISION=$AT_SPI_INTERFACE_AGE
-LT_AGE=`expr $AT_SPI_BINARY_AGE - $AT_SPI_INTERFACE_AGE`
+LT_CURRENT=9
+LT_REVISION=5
+LT_AGE=9
LT_VERSION_INFO='-version-info ${LT_CURRENT}:${LT_REVISION}:${LT_AGE}'
AC_SUBST(LT_VERSION_INFO)
AC_SUBST(LT_RELEASE)
AM_PROG_LIBTOOL
dnl internationalization support
-dnl ALL_LINGUAS=""
+dnl ALL_LINGUAS="az be bn ca cs cy da de el eo es et eu fi fr he hi is it ja ko lt mn ms ne nl nn no pl pt_BR pt ro ru sk sl sq sr@Latn sr sv uk vi zh_CN"
dnl AM_GLIB_GNU_GETTEXT
AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
AC_SUBST(X_LIBS)
+dnl Check for obsolete (mis-numbered) versions of at-spi
+dnl oldlibs=`echo $(libdir)/libspi.so.1.*`
+dnl if test $$oldlibs != "$(libdir)/libspi.so.1.*" ; then
+dnl AC_MSG_ERROR(Old libspi.1.x library found in $libdir. Please remove $(libdir)/libspi.so.1 and $$oldlibs)
+dnl fi
+
dnl Checks for libraries
PKG_CHECK_MODULES(LIBSPI, \
libbonobo-2.0 >= 1.107.0 \
- atk >= 1.1.0 \
+ atk >= 1.3.4 \
gtk+-2.0 > 2.0.0 \
- gail >= 0.16)
+ gail >= 1.3.0)
AC_SUBST(LIBSPI_LIBS)
AC_SUBST(LIBSPI_CFLAGS)
PKG_CHECK_MODULES(REGISTRYD, \
libbonobo-2.0 >= 1.107.0 \
gtk+-2.0 > 2.0.0 \
- atk >= 1.1.0)
+ atk >= 1.3.4)
+REGISTRYD_LIBS="$REGISTRYD_LIBS"
AC_SUBST(REGISTRYD_LIBS)
AC_SUBST(REGISTRYD_CFLAGS)
PKG_CHECK_MODULES(TESTS, \
libbonobo-2.0 >= 1.107.0 \
- atk >= 1.1.0 \
+ atk >= 1.3.4 \
gtk+-2.0 > 2.0.0 \
- gail >= 0.16)
+ gail >= 1.3.0)
AC_SUBST(TESTS_LIBS)
AC_SUBST(TESTS_CFLAGS)
PKG_CHECK_MODULES(ATK_BRIDGE, \
libbonobo-2.0 >= 1.107.0 \
- atk >= 1.1.0)
+ atk >= 1.3.4)
+ATK_BRIDGE_LIBS="$ATK_BRIDGE_LIBS"
AC_SUBST(ATK_BRIDGE_LIBS)
AC_SUBST(ATK_BRIDGE_CFLAGS)
PKG_CHECK_MODULES(LIBCSPI, \
libbonobo-2.0 >= 1.107.0 \
- atk >= 1.1.0)
+ atk >= 1.3.4)
AC_SUBST(LIBCSPI_LIBS)
AC_SUBST(LIBCSPI_CFLAGS)
AC_SUBST(BONOBO_ACTIVATION_IDL_DIR)
AC_SUBST(LIBBONOBO_IDL_DIR)
+CFLAGS="$CFLAGS $X_LIBS"
dnl path to Xtst
AC_CHECK_LIB(Xtst, XTestFakeKeyEvent, XTST_LIBS=-lXtst)
if test "x$XTST_LIBS" = x; then
- save_LIBS="$LIBS"
- for xtstpath in /usr/X11R6/lib /usr/openwin/lib; do
- LIBS="-L$xtstpath -lXtst"
- case "$host" in
- *solaris*) XTST_RPATH_FLAGS="-R$xtstpath" ;;
- esac
- AC_MSG_CHECKING(for -lXtst in $xtstpath)
- AC_TRY_LINK([], [XTestFakeKeyEvent()], [
- AC_MSG_RESULT(yes)
- XTST_LIBS="$XTST_RPATH_FLAGS -L$xtstpath -lXtst"
- LIBS="$save_LIBS"
- break],[AC_MSG_RESULT(no)])
- done
- if test "x$XTST_LIBS" = x; then
- AC_MSG_ERROR(Couldn't find the Xtst library. Check config.log for details)
- fi
+ AC_MSG_ERROR(Couldn't find the Xtst library. Check config.log for details)
fi
AC_SUBST(XTST_LIBS)
have_xkb=
-AC_CHECK_LIB(X11, XkbQueryExtension, have_xkb="maybe",,$X_LIBS)
+AC_CHECK_LIB(X11, XkbQueryExtension, have_xkb="maybe")
if test "x$have_xkb" = "xmaybe"; then
AC_CHECK_HEADER(X11/XKBlib.h, have_xkb=yes)
fi
have_xinput=
AC_CHECK_LIB(Xi, XOpenDevice, XINPUT_LIBS=-lXi)
if test "x$XINPUT_LIBS" = x; then
- save_LIBS="$LIBS"
- for xinputpath in /usr/X11R6/lib /usr/openwin/lib; do
- LIBS="-L$xinputpath -lXi"
- case "$host" in
- *solaris*) XINPUT_RPATH_FLAGS="-R$xinputpath" ;;
- esac
- AC_MSG_CHECKING(for -lXi in $xinputpath)
- AC_TRY_LINK([], [XOpenDisplay()], [
- AC_MSG_RESULT(yes)
- XINPUT_LIBS="$XINPUT_RPATH_FLAGS -L$xinputpath -lXi"
- LIBS="$save_LIBS"
- break],[AC_MSG_RESULT(no)])
- done
- if test "x$XINPUT_LIBS" = x; then
- AC_MSG_ERROR(Couldn't find the XInput library. Check config.log for details)
- fi
- AC_CHECK_HEADER(X11/extensions/XInput.h, have_xinput=yes)
-fi
+ AC_MSG_ERROR(Couldn't find the XInput library. Check config.log for details)
+fi
+AC_CHECK_HEADER(X11/extensions/XInput.h, have_xinput=yes)
AC_SUBST(XINPUT_LIBS)
+dnl Allow disabling XEViE.
+AC_ARG_ENABLE(xevie, [ --enable-xevie Build with XEViE support [default=yes]], enable_xevie="$enableval", enable_xevie=yes)
+
+if test x$enable_xevie = xyes ; then
+ have_xevie=
+ AC_CHECK_LIB(Xext, XevieQueryVersion, have_xevie="yes")
+
+ if test "x$have_xevie" = "xyes"; then
+ XEVIE_LIBS=-lXext
+ AC_DEFINE(HAVE_XEVIE)
+ fi
+ AC_SUBST(XEVIE_LIBS)
+fi
+
+dnl CFLAGS="$CFLAGS -Wall"
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)