~ubuntu-branches/ubuntu/vivid/at-spi/vivid

« back to all changes in this revision

Viewing changes to .pc/03_Add-a-gsettings-key-to-specify-the-location-of-libat.patch/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2011-01-21 10:19:01 UTC
  • Revision ID: james.westby@ubuntu.com-20110121101901-yo4xut12tmdjhmil
Tags: 1.32.0-0ubuntu2
* 03_Add-a-gsettings-key-to-specify-the-location-of-libat.patch:
  Patch from upstream to provide a way to set the location of the
  atk-bridge module, thanks to Alejandro Piñeiro for the patch
* Tweak the above patch to set the default location to gtk-2.0
* debian/control: Add dh-autoreconf to build dependencies for the above patch
* Create series file for patches, it wasn't created at time of switch over
  to format 3.0, so patches in package were not being applied
* debian/at-spi.install: Ship the gsettings schema file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_INIT(idl/Accessibility.idl)
 
2
 
 
3
AT_SPI_MAJOR_VERSION=1
 
4
AT_SPI_MINOR_VERSION=32
 
5
AT_SPI_MICRO_VERSION=0
 
6
AT_SPI_INTERFACE_AGE=0
 
7
AT_SPI_BINARY_AGE=0
 
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)
 
15
 
 
16
# libtool versioning
 
17
LT_RELEASE=$AT_SPI_MAJOR_VERSION.$AT_SPI_MINOR_VERSION
 
18
LT_CURRENT=10
 
19
LT_REVISION=11
 
20
LT_AGE=10
 
21
LT_VERSION_INFO='-version-info ${LT_CURRENT}:${LT_REVISION}:${LT_AGE}'
 
22
AC_SUBST(LT_VERSION_INFO)
 
23
AC_SUBST(LT_RELEASE)
 
24
AC_SUBST(LT_CURRENT)
 
25
AC_SUBST(LT_REVISION)
 
26
AC_SUBST(LT_AGE)
 
27
 
 
28
dnl required versions of other tools.
 
29
m4_define([req_ver_atk],        [1.29.2])
 
30
m4_define([req_ver_gtk],        [2.19.7])
 
31
m4_define([req_ver_dbus],       [0.76])
 
32
m4_define([req_ver_gconf],      [2.0.0])
 
33
m4_define([req_ver_gail],       [1.9.0])
 
34
m4_define([req_ver_libbonobo],  [1.107.0])
 
35
 
 
36
dnl Specify a header configuration file
 
37
AM_CONFIG_HEADER(config.h)
 
38
 
 
39
dnl Initialize maintainer mode
 
40
AM_MAINTAINER_MODE
 
41
 
 
42
dnl translation of any at-spi strings: used only for .server
 
43
IT_PROG_INTLTOOL([0.40.0])
 
44
 
 
45
dnl Checks for programs
 
46
AC_PROG_CC
 
47
AC_PROG_INSTALL
 
48
AC_ISC_POSIX
 
49
 
 
50
dnl GConf checks
 
51
AC_PATH_PROG(GCONFTOOL, gconftool-2)
 
52
AM_GCONF_SOURCE_2
 
53
 
 
54
# Check for Python
 
55
 
 
56
AM_PATH_PYTHON(2.4)
 
57
 
 
58
GNOME_COMMON_INIT
 
59
GNOME_COMPILE_WARNINGS(maximum)
 
60
 
 
61
dnl Initialize libtool
 
62
AM_DISABLE_STATIC
 
63
AM_PROG_LIBTOOL
 
64
 
 
65
GETTEXT_PACKAGE="${PACKAGE}"
 
66
AC_SUBST(GETTEXT_PACKAGE)
 
67
dnl internationalization support; uncomment if translatable strings are reintroduced
 
68
AM_GLIB_GNU_GETTEXT
 
69
 
 
70
# AM_GLIB_GNU_GETTEXT above subst. $DATADIRNAME
 
71
# this is the directory where the *.{mo,gmo} files are installed
 
72
localedir='${prefix}/${DATADIRNAME}/locale'
 
73
AC_SUBST(localedir)
 
74
 
 
75
GTK_DOC_CHECK([1.0])
 
76
 
 
77
AC_PATH_XTRA
 
78
 
 
79
if test x$no_x = xyes ; then
 
80
        AC_MSG_ERROR([X development libraries not found])
 
81
else
 
82
        X_LIBS="$X_LIBS -lX11"
 
83
fi
 
84
 
 
85
AC_SUBST(X_LIBS)
 
86
 
 
87
dnl Check for obsolete (mis-numbered) versions of at-spi
 
88
dnl oldlibs=`echo $(libdir)/libspi.so.1.*`
 
89
dnl if test $$oldlibs != "$(libdir)/libspi.so.1.*" ; then
 
90
dnl   AC_MSG_ERROR(Old libspi.1.x library found in $libdir. Please remove $(libdir)/libspi.so.1 and $$oldlibs)
 
91
dnl fi
 
92
 
 
93
dnl Checks for libraries
 
94
PKG_CHECK_MODULES(LIBSPI, [
 
95
        libbonobo-2.0   >= req_ver_libbonobo
 
96
        atk             >= req_ver_atk
 
97
])
 
98
AC_SUBST(LIBSPI_LIBS)
 
99
AC_SUBST(LIBSPI_CFLAGS)
 
100
 
 
101
PKG_CHECK_MODULES(REGISTRYD, [
 
102
        libbonobo-2.0   >= req_ver_libbonobo
 
103
        atk             >= req_ver_atk
 
104
        gtk+-2.0        >= req_ver_gtk
 
105
        dbus-glib-1     >= req_ver_dbus
 
106
        gconf-2.0       >= req_ver_gconf
 
107
])
 
108
AC_SUBST(REGISTRYD_LIBS)
 
109
AC_SUBST(REGISTRYD_CFLAGS)
 
110
 
 
111
PKG_CHECK_MODULES(TESTS, [
 
112
        libbonobo-2.0   >= req_ver_libbonobo
 
113
        atk             >= req_ver_atk
 
114
        gtk+-2.0        >= req_ver_gtk
 
115
        gail            >= req_ver_gail
 
116
])
 
117
 
 
118
AC_CHECK_LIB(socket, connect, TESTS_LIBS="$TESTS_LIBS -lsocket")
 
119
 
 
120
AC_SUBST(TESTS_LIBS)
 
121
AC_SUBST(TESTS_CFLAGS)
 
122
 
 
123
PKG_CHECK_MODULES(ATK_BRIDGE, [
 
124
        libbonobo-2.0   >= req_ver_libbonobo
 
125
        atk             >= req_ver_atk
 
126
        gmodule-2.0
 
127
])      
 
128
AC_SUBST(ATK_BRIDGE_LIBS)
 
129
AC_SUBST(ATK_BRIDGE_CFLAGS)
 
130
 
 
131
PKG_CHECK_MODULES(LIBCSPI, [
 
132
        libbonobo-2.0   >= req_ver_libbonobo
 
133
        atk             >= req_ver_atk
 
134
])
 
135
AC_SUBST(LIBCSPI_LIBS)
 
136
AC_SUBST(LIBCSPI_CFLAGS)
 
137
 
 
138
PKG_CHECK_MODULES(ORBIT, [
 
139
        ORBit-2.0
 
140
])
 
141
AC_SUBST(ORBIT_LIBS)
 
142
AC_SUBST(ORBIT_CFLAGS)
 
143
 
 
144
dnl orbit-idl.
 
145
ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
 
146
AC_SUBST(ORBIT_IDL)
 
147
 
 
148
dnl Bonobo and Bonobo-Activation idl files
 
149
BONOBO_ACTIVATION_IDL_DIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
 
150
LIBBONOBO_IDL_DIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
 
151
AC_SUBST(BONOBO_ACTIVATION_IDL_DIR)
 
152
AC_SUBST(LIBBONOBO_IDL_DIR)
 
153
 
 
154
dnl path to Xtst
 
155
AC_CHECK_LIB(Xtst, XTestFakeKeyEvent, XTST_LIBS=-lXtst,[
 
156
        AC_MSG_ERROR([Couldn't find the Xtst library. Check config.log])],
 
157
        -lX11 -lXext)
 
158
AC_SUBST(XTST_LIBS)
 
159
 
 
160
have_xkb=
 
161
AC_CHECK_LIB(X11, XkbQueryExtension, have_xkb="maybe")
 
162
if test "x$have_xkb" = "xmaybe"; then 
 
163
        AC_CHECK_HEADER(X11/XKBlib.h, have_xkb=yes)
 
164
fi
 
165
if test "x$have_xkb" = "xyes"; then
 
166
        AC_MSG_RESULT(yes)
 
167
        AC_DEFINE(HAVE_XKB)
 
168
fi
 
169
 
 
170
have_xinput=
 
171
AC_CHECK_LIB(Xi, XOpenDevice, XINPUT_LIBS=-lXi,,-lXext)
 
172
if test "x$XINPUT_LIBS" = x; then
 
173
        AC_MSG_ERROR(Couldn't find the XInput library. Check config.log for details)
 
174
fi                             
 
175
AC_CHECK_HEADER(X11/extensions/XInput.h, have_xinput=yes)
 
176
AC_SUBST(XINPUT_LIBS)
 
177
 
 
178
dnl Allow disabling XEViE.
 
179
AC_ARG_ENABLE(xevie, [  --enable-xevie  Build with XEViE support [default=no]], enable_xevie="$enableval", enable_xevie=no)
 
180
 
 
181
if test x$enable_xevie = xyes ; then
 
182
        have_xevie=
 
183
        AC_CHECK_LIB(Xext, XevieStart, have_xevie="yes")
 
184
 
 
185
        if test "x$have_xevie" = "xyes"; then
 
186
                XEVIE_LIBS="-lXext"
 
187
                AC_DEFINE(HAVE_XEVIE)
 
188
        else
 
189
           AC_CHECK_LIB(Xevie, XevieQueryVersion, have_xevie="maybe",,-lXevie -lXext)
 
190
           if test "x$have_xevie" = "xmaybe"; then
 
191
              AC_CHECK_HEADER(X11/extensions/Xevie.h, have_xevie=yes, [], [#include <X11/Xlib.h>])
 
192
              if test "x$have_xevie" = "xyes"; then
 
193
                      XEVIE_LIBS="-lXext -lXevie"              
 
194
                      AC_DEFINE(HAVE_XEVIE)
 
195
              fi
 
196
           fi   
 
197
        fi
 
198
        AC_SUBST(XEVIE_LIBS)
 
199
fi
 
200
 
 
201
dnl Allow disabling SMlib
 
202
AC_ARG_ENABLE(sm, [  --enable-sm  Enable session management support [default=yes]], enable_sm="$enableval", enable_sm=yes)
 
203
 
 
204
if test x$enable_sm = xyes ; then
 
205
        have_sm=
 
206
        AC_CHECK_LIB(SM, SmcSaveYourselfDone, have_sm="yes")
 
207
        if test x$have_sm = xyes ; then
 
208
                SM_LIBS="-lSM -lICE"
 
209
                AC_DEFINE(HAVE_SM, , [Building with SM support])
 
210
        fi
 
211
        AC_SUBST(SM_LIBS)
 
212
fi
 
213
 
 
214
AC_ARG_ENABLE(relocate, [  --enable-relocate  Relocate to coexist with D-Bus [default=yes]], enable_relocate="$enableval", enable_relocate=no)
 
215
if test x$enable_relocate = xyes ; then
 
216
        AC_DEFINE(RELOCATE, , [Relocate to coexist with D-Bus])
 
217
fi
 
218
AM_CONDITIONAL(RELOCATE, test x$enable_relocate = xyes)
 
219
 
 
220
dnl CFLAGS="$CFLAGS -Wall"
 
221
AC_SUBST(CFLAGS)
 
222
AC_SUBST(CPPFLAGS)
 
223
AC_SUBST(LDFLAGS)
 
224
 
 
225
AC_CHECK_LIB(popt, poptGetContext, [POPT_LIBS="-lpopt"],
 
226
AC_MSG_ERROR([popt is required to build at-spi.
 
227
You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/]))
 
228
AC_SUBST(POPT_LIBS)
 
229
AC_MSG_CHECKING([for POPT_ARG_FLOAT in popt.h])
 
230
AC_TRY_CPP([#include <popt.h>
 
231
#ifndef POPT_ARG_FLOAT
 
232
#error popt too old
 
233
#endif], AC_MSG_RESULT(yes), [
 
234
        AC_MSG_RESULT(no)
 
235
        AC_MSG_ERROR([A newer version of popt is required to build at-spi.
 
236
You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/])
 
237
])
 
238
 
 
239
#libtool option to strip symbols starting with cspi
 
240
#
 
241
LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^cspi]].*"'
 
242
AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
 
243
 
 
244
REBUILD=\#
 
245
if test "x$enable_rebuilds" = "xyes" && \
 
246
        test -n "$PERL" && \
 
247
        $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
 
248
        test -n "$AWK" ; then
 
249
                REBUILD=
 
250
fi
 
251
AC_SUBST(REBUILD)
 
252
 
 
253
AC_OUTPUT([
 
254
Makefile
 
255
po/Makefile.in
 
256
libspi-1.0.pc
 
257
libspi-1.0-uninstalled.pc
 
258
libloginhelper-1.0.pc
 
259
libloginhelper-1.0-uninstalled.pc
 
260
cspi-1.0.pc
 
261
cspi-1.0-uninstalled.pc
 
262
docs/Makefile
 
263
docs/reference/Makefile
 
264
docs/reference/cspi/Makefile
 
265
docs/reference/idl/Makefile
 
266
idl/Makefile
 
267
libspi/Makefile
 
268
registryd/Makefile
 
269
registryd/at-spi-registryd.desktop.in.in
 
270
atk-bridge/Makefile
 
271
login-helper/Makefile
 
272
test/Makefile
 
273
cspi/Makefile
 
274
cspi/bonobo/Makefile
 
275
pyatspi/Makefile
 
276
pyatspi/__init__.py
 
277
])
 
278
 
 
279
echo "AT-SPI setup:
 
280
 
 
281
        Source code location:   ${srcdir}
 
282
        Compiler:               ${CC} 
 
283
        Prefix:                 ${prefix}
 
284
 
 
285
        Welcome to the wonderful world of Accessibility.
 
286
           http://developer.gnome.org/projects/gap/
 
287
"