-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
128 lines (106 loc) · 3.75 KB
/
configure.ac
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
AC_PREREQ([2.59])
# Making releases:
# set the new version number
# set nano_version to 0
# make the release, tag it
# set nano_version to 1
m4_define([haze_major_version], [0])
m4_define([haze_minor_version], [8])
m4_define([haze_micro_version], [0])
m4_define([haze_nano_version], [1])
m4_define([haze_base_version],
[haze_major_version.haze_minor_version.haze_micro_version])
m4_define([haze_version],
[m4_if(haze_nano_version, 0,
[haze_base_version],
[haze_base_version].[haze_nano_version])])
AC_INIT([telepathy-haze], [haze_version],
[https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=haze])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([1.9 -Wno-portability])
AM_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([Makefile
src/Makefile
data/Makefile
m4/Makefile
tests/Makefile
tests/twisted/Makefile
tests/twisted/tools/Makefile
tools/Makefile
extensions/Makefile
])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
AC_PROG_CC
AC_PROG_CC_STDC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
COMPILER_OPTIMISATIONS
COMPILER_COVERAGE
LINKER_OPTIMISATIONS
ifelse(haze_nano_version, 0, [release=yes], [release=no])
TP_COMPILER_WARNINGS([ERROR_CFLAGS], [test x$release = xno],
[all \
extra \
declaration-after-statement \
shadow \
strict-prototypes \
missing-prototypes \
sign-compare \
nested-externs \
pointer-arith \
format-security \
init-self],
[missing-field-initializers \
unused-parameter \
deprecated-declarations])
AC_SUBST(ERROR_CFLAGS)
AC_CHECK_HEADERS_ONCE([libintl.h])
AC_ARG_ENABLE(leaky-request-stubs,
AC_HELP_STRING([--enable-leaky-request-stubs],[print debugging information when libpurple attempts to use the request API (warning: very leaky)]),
AC_DEFINE(ENABLE_LEAKY_REQUEST_STUBS, [], [Enable the leaky stub implementation of the request API for debugging purposes]))
AC_SUBST(ENABLE_LEAKY_REQUEST_STUBS)
PKG_CHECK_MODULES(PURPLE,[purple >= 2.7])
PKG_CHECK_MODULES(TP_GLIB,[telepathy-glib >= 0.15.1])
PKG_CHECK_MODULES(GLIB,[glib-2.0 >= 2.22, gobject-2.0, gio-2.0])
PKG_CHECK_MODULES(DBUS_GLIB,[dbus-glib-1 >= 0.73])
dnl MIN_REQUIRED must stay to 2.30 because of GValueArray
AC_DEFINE([GLIB_VERSION_MIN_REQUIRED], [GLIB_VERSION_2_30], [Ignore post 2.30 deprecations])
AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [GLIB_VERSION_2_30], [Prevent post 2.30 APIs])
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
AC_SUBST(GLIB_GENMARSHAL)
AC_CHECK_LIB(purple, purple_dbus_uninit,
[ AC_DEFINE(HAVE_PURPLE_DBUS_UNINIT, [],
[Define if purple_dbus_uninit is present in libpurple]) ],
[], [$PURPLE_LIBS])
dnl Check for code generation tools
XSLTPROC=
AC_CHECK_PROGS([XSLTPROC], [xsltproc])
if test -z "$XSLTPROC"; then
AC_MSG_ERROR([xsltproc (from the libxslt source package) is required])
fi
AM_PATH_PYTHON([2.5])
# Check for a Python >= 2.5 with Twisted, to run the tests
AC_MSG_CHECKING([for Python with Twisted and XMPP protocol support])
if $PYTHON -c "import twisted.words.xish.domish, twisted.words.protocols.jabber, twisted.internet.reactor" >/dev/null 2>&1; then
TEST_PYTHON="$PYTHON"
else
TEST_PYTHON=false
fi
AC_MSG_RESULT([$TEST_PYTHON])
AC_SUBST(TEST_PYTHON)
AM_CONDITIONAL([WANT_TWISTED_TESTS], test false != "$TEST_PYTHON")
AC_ARG_ENABLE(media,
AC_HELP_STRING([--disable-media],[disable audio/video calls]),
[
AM_CONDITIONAL([MEDIA_ENABLED], false)
],[
AC_DEFINE(ENABLE_MEDIA, [], [Enable audio/video calls])
AM_CONDITIONAL([MEDIA_ENABLED], true)
])
AC_SUBST(ENABLE_MEDIA)
#AS_AC_EXPAND(DATADIR, $datadir)
#DBUS_SERVICES_DIR="$DATADIR/dbus-1/services"
#AC_SUBST(DBUS_SERVICES_DIR)
#AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [DBus services directory])
AC_OUTPUT