2 AC_INIT([at-spi], [1.9.0], [accessibility-atspi@lists.linux-foundation.org])
3 AM_INIT_AUTOMAKE([-Wall foreign])
11 AC_CONFIG_HEADERS([config.h])
13 PKG_CHECK_MODULES(DBUS_GLIB, [dbus-glib-1 >= 0.7.0])
14 AC_SUBST(DBUS_GLIB_LIBS)
15 AC_SUBST(DBUS_GLIB_CFLAGS)
17 PKG_CHECK_MODULES(GOBJ, [gobject-2.0 >= 2.0.0])
21 PKG_CHECK_MODULES(ATK, [atk >= 1.17.0])
25 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.10.0])
29 PKG_CHECK_MODULES(GDK, [gdk-2.0 >= 2.0.0])
33 PKG_CHECK_MODULES(GAIL, [gail >= 1.9.0])
39 if test x$no_x = xyes ; then
40 AC_MSG_ERROR([X development libraries not found])
42 X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
47 AC_CHECK_LIB(Xtst, XTestFakeKeyEvent, XTST_LIBS=-lXtst,[
48 AC_MSG_ERROR([Couldn't find the Xtst library. Check config.log])],
53 AC_CHECK_LIB(X11, XkbQueryExtension, have_xkb="maybe")
54 if test "x$have_xkb" = "xmaybe"; then
55 AC_CHECK_HEADER(X11/XKBlib.h, have_xkb=yes)
57 if test "x$have_xkb" = "xyes"; then
59 AC_DEFINE([HAVE_XKB], [], Xkb is present)
63 AC_CHECK_LIB(Xi, XOpenDevice, XINPUT_LIBS=-lXi,,-lXext)
64 if test "x$XINPUT_LIBS" = x; then
65 AC_MSG_ERROR(Couldn't find the XInput library. Check config.log for details)
67 AC_CHECK_HEADER(X11/extensions/XInput.h, have_xinput=yes)
70 AC_ARG_ENABLE(xevie, [--enable-xevie Build with XEViE support [default=yes]], enable_xevie="$enableval", enable_xevie=yes)
72 if test x$enable_xevie = xyes ; then
74 AC_CHECK_LIB(Xext, XevieStart, have_xevie="yes")
76 if test "x$have_xevie" = "xyes"; then
78 AC_DEFINE([HAVE_XEVIE], [], Xevie is present)
80 AC_CHECK_LIB(Xevie, XevieQueryVersion, have_xevie="maybe",,-lXevie -lXext)
81 if test "x$have_xevie" = "xmaybe"; then
82 AC_CHECK_HEADER(X11/extensions/Xevie.h, have_xevie=yes, [], [#include <X11/Xlib.h>])
83 if test "x$have_xevie" = "xyes"; then
84 XEVIE_LIBS="-lXext -lXevie"
85 AC_DEFINE([HAVE_XEVIE], [], Xevie is present)
92 AC_ARG_VAR([DEFAULT_ATSPI_INTROSPECTION_PATH],
93 [Set the default path for the DBus introspection XML])
94 if test -z "$DEFAULT_ATSPI_INTROSPECTION_PATH"; then
95 DEFAULT_ATSPI_INTROSPECTION_PATH=atspi/dbus
98 AC_ARG_VAR([GTK_MODULE_DIR],
99 [Where to place the atk-adaptor gtk module])
100 if test -z "$GTK_MODULE_DIR"; then
101 GTK_MODULE_DIR=gtk-2.0/modules
104 AC_CONFIG_FILES([Makefile
112 atk-adaptor/Makefile])