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
129
130
131
132
133
134
135
136
137
138
139
140
|
AC_PREREQ([2.59])
# Making releases:
# set the new version number:
# odd minor -> development series
# even minor -> stable series
# increment micro for each release within a series
# set tp_farsight_release to 1
m4_define([tp_farsight_major_version], [0])
m4_define([tp_farsight_minor_version], [0])
m4_define([tp_farsight_micro_version], [5])
m4_define([tp_farsight_nano_version], [1])
m4_define([tp_farsight_lt_current], [0])
m4_define([tp_farsight_lt_revision], [0])
m4_define([tp_farsight_lt_age], [0])
# Some magic
m4_define([tp_farsight_base_version],
[tp_farsight_major_version.tp_farsight_minor_version.tp_farsight_micro_version])
m4_define([tp_farsight_version],
[m4_if(tp_farsight_nano_version, 0, [tp_farsight_base_version],
[tp_farsight_base_version].[tp_farsight_nano_version])])
AC_INIT([Telepathy-Farsight], [tp_farsight_version],
[https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=stream-engine])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.9 -Wno-portability])
AM_CONFIG_HEADER(config.h)
dnl check for tools
AC_PROG_CC
AC_PROG_CC_STDC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
dnl decide error flags
AS_COMPILER_FLAG(-Wall, ERROR_CFLAGS="-Wall", ERROR_CFLAGS="")
AS_COMPILER_FLAG(-Werror, werror=yes, werror=no)
AC_ARG_ENABLE(Werror,
AC_HELP_STRING([--disable-Werror],[compile without -Werror (normally enabled in development builds)]),
werror=$enableval, :)
AS_COMPILER_FLAG(-Wextra, wextra=yes, wextra=no)
AS_COMPILER_FLAG(-Wno-missing-field-initializers,
wno_missing_field_initializers=yes,
wno_missing_field_initializers=no)
AS_COMPILER_FLAG(-Wno-unused-parameter,
wno_unused_parameter=yes,
wno_unused_parameter=no)
ifelse(tp_farsight_nano_version, 0, [],
[
if test x$werror = xyes; then
ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
fi
if test x$wextra = xyes -a \
x$wno_missing_field_initializers = xyes -a \
x$wno_unused_parameter = xyes; then
ERROR_CFLAGS="$ERROR_CFLAGS -Wextra -Wno-missing-field-initializers -Wno-unused-parameter"
fi
])
AC_SUBST(ERROR_CFLAGS)
AC_ARG_ENABLE(coverage, [ --enable-coverage compile with coverage info],[enable_coverage=${enableval}],enable_coverage=no)
if test "x$enable_coverage" = "xyes"; then
CFLAGS="$CFLAGS -g -fprofile-arcs -ftest-coverage"
fi
dnl Check for Glib
PKG_CHECK_MODULES(GLIB, gobject-2.0 >= 2.4)
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
AC_SUBST(GLIB_GENMARSHAL)
dnl Check for DBus
PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60, dbus-glib-1 >= 0.60])
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)
dnl Check for Telepathy libraries
PKG_CHECK_MODULES([TELEPATHY], [telepathy-glib >= 0.7.23])
AC_SUBST(TELEPATHY_CFLAGS)
AC_SUBST(TELEPATHY_LIBS)
dnl Check for farsight
PKG_CHECK_MODULES(FARSIGHT2, [farsight2-0.10 >= 0.0.3])
AC_SUBST(FARSIGHT2_CFLAGS)
AC_SUBST(FARSIGHT2_LIBS)
AC_ARG_ENABLE([python],
AC_HELP_STRING([--disable-python], [Disable Python bindings]),
[case "${enableval}" in
yes) WANT_PYTHON=yes ;;
no) WANT_PYTHON=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-python) ;;
esac],
WANT_PYTHON=yes)
if test "x$WANT_PYTHON" = "xyes"; then
AM_PATH_PYTHON
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
PKG_CHECK_MODULES(PYTPFARSIGHT, [ pygobject-2.0 >= 2.12.0
gst-python-0.10 >= 0.10.10
pygtk-2.0 >= 2.10 ] )
fi
AM_CONDITIONAL(WANT_PYTHON, test "x$WANT_PYTHON" = "xyes")
GTK_DOC_CHECK([1.10])
LT_CURRENT=tp_farsight_lt_current
LT_REVISION=tp_farsight_lt_revision
LT_AGE=tp_farsight_lt_age
AC_SUBST([LT_CURRENT])
AC_SUBST([LT_REVISION])
AC_SUBST([LT_AGE])
AC_OUTPUT( Makefile \
doc/Makefile \
doc/lib/Makefile \
m4/Makefile \
telepathy-farsight/Makefile \
telepathy-farsight/telepathy-farsight.pc \
telepathy-farsight/telepathy-farsight-uninstalled.pc
tools/Makefile \
python/Makefile \
python/codegen/Makefile \
)
|