1 AC_INIT(idl/Accessibility.idl)
8 AT_SPI_VERSION="$AT_SPI_MAJOR_VERSION.$AT_SPI_MINOR_VERSION.$AT_SPI_MICRO_VERSION"
9 AM_INIT_AUTOMAKE(at-spi, $AT_SPI_VERSION)
10 AC_SUBST(AT_SPI_MAJOR_VERSION)
11 AC_SUBST(AT_SPI_MINOR_VERSION)
12 AC_SUBST(AT_SPI_MICRO_VERSION)
13 AC_SUBST(AT_SPI_INTERFACE_AGE)
14 AC_SUBST(AT_SPI_BINARY_AGE)
17 LT_RELEASE=$AT_SPI_MAJOR_VERSION.$AT_SPI_MINOR_VERSION
21 LT_VERSION_INFO='-version-info ${LT_CURRENT}:${LT_REVISION}:${LT_AGE}'
22 AC_SUBST(LT_VERSION_INFO)
28 dnl required versions of other tools.
29 m4_define([req_ver_atk], [1.7.2])
30 m4_define([req_ver_libbonobo], [1.107.0])
31 m4_define([req_ver_gail], [1.3.0])
32 m4_define([req_ver_gtk], [2.0.0])
34 dnl Specify a header configuration file
35 AM_CONFIG_HEADER(config.h)
37 dnl Initialize maintainer mode
42 dnl Checks for programs
48 GNOME_COMPILE_WARNINGS(maximum)
50 dnl Initialize libtool
54 dnl internationalization support; uncomment if translatable strings are reintroduced
55 dnl ALL_LINGUAS="ar az be bg bn bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr gl gu he hi hr id is it ja ka ko lt mn ms nb ne nl nn no or pa pl pt_BR pt ro ru sk sl sq sr@ije sr@Latn sr sv uk vi wa xh zh_CN"
56 dnl AM_GLIB_GNU_GETTEXT
62 if test x$no_x = xyes ; then
63 AC_MSG_ERROR([X development libraries not found])
65 X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
70 dnl Check for obsolete (mis-numbered) versions of at-spi
71 dnl oldlibs=`echo $(libdir)/libspi.so.1.*`
72 dnl if test $$oldlibs != "$(libdir)/libspi.so.1.*" ; then
73 dnl AC_MSG_ERROR(Old libspi.1.x library found in $libdir. Please remove $(libdir)/libspi.so.1 and $$oldlibs)
76 dnl Checks for libraries
77 PKG_CHECK_MODULES(LIBSPI, [
78 libbonobo-2.0 >= req_ver_libbonobo
80 gtk+-2.0 >= req_ver_gtk
84 AC_SUBST(LIBSPI_CFLAGS)
86 PKG_CHECK_MODULES(REGISTRYD, [
87 libbonobo-2.0 >= req_ver_libbonobo
89 gtk+-2.0 >= req_ver_gtk
91 AC_SUBST(REGISTRYD_LIBS)
92 AC_SUBST(REGISTRYD_CFLAGS)
94 PKG_CHECK_MODULES(TESTS, [
95 libbonobo-2.0 >= req_ver_libbonobo
97 gtk+-2.0 >= req_ver_gtk
101 AC_SUBST(TESTS_CFLAGS)
103 PKG_CHECK_MODULES(ATK_BRIDGE, [
104 libbonobo-2.0 >= req_ver_libbonobo
107 AC_SUBST(ATK_BRIDGE_LIBS)
108 AC_SUBST(ATK_BRIDGE_CFLAGS)
110 PKG_CHECK_MODULES(LIBCSPI, [
111 libbonobo-2.0 >= req_ver_libbonobo
114 AC_SUBST(LIBCSPI_LIBS)
115 AC_SUBST(LIBCSPI_CFLAGS)
118 ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
121 dnl Bonobo and Bonobo-Activation idl files
122 BONOBO_ACTIVATION_IDL_DIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
123 LIBBONOBO_IDL_DIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
124 AC_SUBST(BONOBO_ACTIVATION_IDL_DIR)
125 AC_SUBST(LIBBONOBO_IDL_DIR)
129 AC_CHECK_LIB(Xtst, XTestFakeKeyEvent, XTST_LIBS=-lXtst,[
130 AC_MSG_ERROR([Couldn't find the Xtst library. Check config.log])],
135 AC_CHECK_LIB(X11, XkbQueryExtension, have_xkb="maybe")
136 if test "x$have_xkb" = "xmaybe"; then
137 AC_CHECK_HEADER(X11/XKBlib.h, have_xkb=yes)
139 if test "x$have_xkb" = "xyes"; then
145 AC_CHECK_LIB(Xi, XOpenDevice, XINPUT_LIBS=-lXi,,-lXext)
146 if test "x$XINPUT_LIBS" = x; then
147 AC_MSG_ERROR(Couldn't find the XInput library. Check config.log for details)
149 AC_CHECK_HEADER(X11/extensions/XInput.h, have_xinput=yes)
150 AC_SUBST(XINPUT_LIBS)
152 dnl Allow disabling XEViE.
153 AC_ARG_ENABLE(xevie, [ --enable-xevie Build with XEViE support [default=yes]], enable_xevie="$enableval", enable_xevie=yes)
155 if test x$enable_xevie = xyes ; then
157 AC_CHECK_LIB(Xext, XevieQueryVersion, have_xevie="yes")
159 if test "x$have_xevie" = "xyes"; then
161 AC_DEFINE(HAVE_XEVIE)
166 dnl CFLAGS="$CFLAGS -Wall"
171 AC_CHECK_LIB(popt, poptGetContext, [POPT_LIBS="-lpopt"],
172 AC_MSG_ERROR([popt is required to build at-spi.
173 You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/]))
175 AC_MSG_CHECKING([for POPT_ARG_FLOAT in popt.h])
176 AC_TRY_CPP([#include <popt.h>
177 #ifndef POPT_ARG_FLOAT
179 #endif], AC_MSG_RESULT(yes), [
181 AC_MSG_ERROR([A newer version of popt is required to build at-spi.
182 You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/])
186 if test "x$enable_rebuilds" = "xyes" && \
188 $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
189 test -n "$AWK" ; then
197 libspi-1.0-uninstalled.pc
198 libloginhelper-1.0.pc
200 cspi-1.0-uninstalled.pc
202 docs/reference/Makefile
203 docs/reference/cspi/Makefile
208 login-helper/Makefile
216 Source code location: ${srcdir}
220 Welcome to the wonderful world of Accessibility.
221 http://developer.gnome.org/projects/gap/