2 AC_INIT([at-spi], [1.9.0], [accessibility-atspi@lists.linux-foundation.org])
3 AC_CONFIG_AUX_DIR(config)
6 AT_SPI_MINOR_VERSION=23
10 AT_SPI_VERSION="$AT_SPI_MAJOR_VERSION.$AT_SPI_MINOR_VERSION.$AT_SPI_MICRO_VERSION"
11 AC_SUBST(AT_SPI_MAJOR_VERSION)
12 AC_SUBST(AT_SPI_MINOR_VERSION)
13 AC_SUBST(AT_SPI_MICRO_VERSION)
14 AC_SUBST(AT_SPI_INTERFACE_AGE)
15 AC_SUBST(AT_SPI_BINARY_AGE)
18 LT_RELEASE=$AT_SPI_MAJOR_VERSION.$AT_SPI_MINOR_VERSION
22 LT_VERSION_INFO='-version-info ${LT_CURRENT}:${LT_REVISION}:${LT_AGE}'
23 AC_SUBST(LT_VERSION_INFO)
29 AM_INIT_AUTOMAKE([-Wall foreign])
31 dnl translation of any at-spi strings: used only for .server
32 dnl IT_PROG_INTLTOOL([0.35.0])
40 GETTEXT_PACKAGE="${PACKAGE}"
41 AC_SUBST(GETTEXT_PACKAGE)
42 dnl internationalization support; uncomment if translatable strings are reintroduced
45 # AM_GLIB_GNU_GETTEXT above subst. $DATADIRNAME
46 # this is the directory where the *.{mo,gmo} files are installed
47 localedir='${prefix}/${DATADIRNAME}/locale'
50 AC_CONFIG_HEADERS([config.h])
52 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.0])
56 PKG_CHECK_MODULES(GLIB, [glib-2.0])
60 PKG_CHECK_MODULES(DBUS_GLIB, [dbus-glib-1 >= 0.7.0])
61 AC_SUBST(DBUS_GLIB_LIBS)
62 AC_SUBST(DBUS_GLIB_CFLAGS)
64 PKG_CHECK_MODULES(LIB_XML, [libxml-2.0 >= 2.0.0])
65 AC_SUBST(LIB_XML_LIBS)
66 AC_SUBST(LIB_XML_CFLAGS)
68 PKG_CHECK_MODULES(GOBJ, [gobject-2.0 >= 2.0.0])
72 PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.0.0])
73 AC_SUBST(GMODULE_LIBS)
74 AC_SUBST(GMODULE_CFLAGS)
76 PKG_CHECK_MODULES(ATK, [atk >= 1.17.0])
80 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.10.0])
84 PKG_CHECK_MODULES(GDK, [gdk-2.0 >= 2.0.0])
88 PKG_CHECK_MODULES(GAIL, [gail >= 1.9.0])
94 if test x$no_x = xyes ; then
95 AC_MSG_ERROR([X development libraries not found])
97 X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
101 #LIBS="$LIBS $X_LIBS"
102 AC_CHECK_LIB(Xtst, XTestFakeKeyEvent, XTST_LIBS=-lXtst,[
103 AC_MSG_ERROR([Couldn't find the Xtst library. Check config.log])],
108 AC_CHECK_LIB(X11, XkbQueryExtension, have_xkb="maybe")
109 if test "x$have_xkb" = "xmaybe"; then
110 AC_CHECK_HEADER(X11/XKBlib.h, have_xkb=yes)
112 if test "x$have_xkb" = "xyes"; then
114 AC_DEFINE([HAVE_XKB], [], Xkb is present)
118 AC_CHECK_LIB(Xi, XOpenDevice, XINPUT_LIBS=-lXi,,-lXext)
119 if test "x$XINPUT_LIBS" = x; then
120 AC_MSG_ERROR(Couldn't find the XInput library. Check config.log for details)
122 AC_CHECK_HEADER(X11/extensions/XInput.h, have_xinput=yes)
123 AC_SUBST(XINPUT_LIBS)
125 AC_ARG_ENABLE(xevie, [--enable-xevie Build with XEViE support [default=yes]], enable_xevie="$enableval", enable_xevie=yes)
127 if test x$enable_xevie = xyes ; then
129 AC_CHECK_LIB(Xext, XevieStart, have_xevie="yes")
131 if test "x$have_xevie" = "xyes"; then
133 AC_DEFINE([HAVE_XEVIE], [], Xevie is present)
135 AC_CHECK_LIB(Xevie, XevieQueryVersion, have_xevie="maybe",,-lXevie -lXext)
136 if test "x$have_xevie" = "xmaybe"; then
137 AC_CHECK_HEADER(X11/extensions/Xevie.h, have_xevie=yes, [], [#include <X11/Xlib.h>])
138 if test "x$have_xevie" = "xyes"; then
139 XEVIE_LIBS="-lXext -lXevie"
140 AC_DEFINE([HAVE_XEVIE], [], Xevie is present)
147 AC_ARG_VAR([DEFAULT_ATSPI_INTROSPECTION_PATH],
148 [Set the default path for the install ofDBus introspection XML
149 relative to the pkgdatadir.])
150 if test -z "$DEFAULT_ATSPI_INTROSPECTION_PATH"; then
151 DEFAULT_ATSPI_INTROSPECTION_PATH=dbus
154 AC_ARG_VAR([GTK_MODULE_DIR],
155 [Where to place the atk-adaptor gtk module])
156 if test -z "$GTK_MODULE_DIR"; then
157 GTK_MODULE_DIR=gtk-2.0/modules
160 dnl find sizes & alignments
161 orig_CPPFLAGS=$CPPFLAGS
162 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
163 DBIND_CHECK_ALIGNOF(char)
164 DBIND_CHECK_ALIGNOF(dbus_bool_t)
165 DBIND_CHECK_ALIGNOF(dbus_int16_t)
166 DBIND_CHECK_ALIGNOF(dbus_int32_t)
167 DBIND_CHECK_ALIGNOF(dbus_int64_t)
168 DBIND_CHECK_ALIGNOF(double)
169 DBIND_CHECK_ALIGNOF(dbind_pointer)
170 DBIND_CHECK_ALIGNOF(dbind_struct)
171 CPPFLAGS=$orig_CPPFLAGS
173 #libtool option to strip symbols starting with cspi
175 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^cspi]].*"'
176 AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
178 AC_CONFIG_FILES([Makefile
180 libspi-1.0-uninstalled.pc
181 libloginhelper-1.0.pc
183 cspi-1.0-uninstalled.pc
191 login-helper/Makefile
192 tests/dummyatk/Makefile
195 tests/pyatspi/Makefile
196 tests/pyatspi/pasytest/Makefile