~oubiwann/geis/617301-native-python-implementation

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.65)
AC_INIT([utouch-geis],[1.0.7],[stephen.webb@canonical.com])
AC_CONFIG_HEADERS([geis_config.h])
AC_CONFIG_AUX_DIR([config.aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign -Wall])

# Checks for programs.
AM_PROG_CC_C_O
AM_PATH_PYTHON([2.5])

LT_PREREQ([2.2.6b])
LT_INIT

# Checks for libraries.
#PKG_CHECK_MODULES([DBUS], [dbus-1 >= 1.2.16], ,
#		  AC_MSG_ERROR([D-Bus development libraries not found]))
PKG_CHECK_MODULES([GRAIL], [utouch-grail >= 1.0.7], ,
		  AC_MSG_ERROR([Grail development libraries not found]))
PKG_CHECK_MODULES([XCB], [xcb >= 1.6], ,
		  AC_MSG_ERROR([XCB development libraries not found]))
# XCB code generation configuration
AC_MSG_CHECKING(XCBPROTO_XCBINCLUDEDIR)
XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
AC_MSG_RESULT($XCBPROTO_XCBINCLUDEDIR)
AC_SUBST(XCBPROTO_XCBINCLUDEDIR)
AC_MSG_CHECKING(XCBPROTO_XCBPYTHONDIR)
XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
AC_MSG_RESULT($XCBPROTO_XCBPYTHONDIR)
AC_SUBST(XCBPROTO_XCBPYTHONDIR)

AC_MSG_CHECKING(XCBINCLUDEDIR)
XCBINCLUDEDIR=`$PKG_CONFIG --variable=includedir xcb`
AC_MSG_RESULT($XCBINCLUDEDIR)
AC_SUBST(XCBINCLUDEDIR)

# Check toolchain features
AC_MSG_CHECKING([whether hidden visibility is supported])
AC_TRY_COMPILE([void __attribute__((visibility ("hidden"))) bar (void) {}],,
               [geis_hidden=yes],[geis_hidden=no])
AC_MSG_RESULT($geis_hidden)
if test x$geis_hidden = xyes; then
  AC_DEFINE([GEIS_DSO_PRIVATE],[1],[symbol visibility is supported])
fi


AC_CONFIG_FILES([Makefile
                 libutouch-geis.pc
                 doc/Makefile
                 geis/Makefile
                 libutouch-geis-xcb/Makefile
                 libutouch-geis-xcb/xcb_gesture.xml
                 testsuite/Makefile
                 testsuite/geistest/Makefile])
AC_OUTPUT