2
2
# An odd micro number indicates in-progress developmen
3
3
# An even micro number indicates a released version.
4
4
m4_define(clutter_gst_major_version, 0)
5
m4_define(clutter_gst_minor_version, 8)
5
m4_define(clutter_gst_minor_version, 10)
6
6
m4_define(clutter_gst_micro_version, 0)
8
m4_define(clutter_api_version, 1.0)
8
10
m4_define([clutter_gst_version],
9
11
[clutter_gst_major_version.clutter_gst_minor_version.clutter_gst_micro_version])
21
23
AC_INIT([clutter-gst], [clutter_gst_version],
22
24
[http://bugzilla.o-hand.com/enter_bug.cgi?product=Clutter-gst])
25
AC_CONFIG_MACRO_DIR([build/autotools])
26
AC_CONFIG_AUX_DIR([build/autotools])
23
27
AC_CONFIG_SRCDIR([clutter-gst/clutter-gst.h])
24
28
AM_CONFIG_HEADER([config.h])
31
35
CLUTTER_GST_VERSION=clutter_gst_version
32
36
CLUTTER_GST_API_VERSION=clutter_gst_api_version
33
37
CLUTTER_GST_MAJORMINOR=clutter_gst_api_version
38
CLUTTER_API_VERSION=clutter_api_version
34
39
AC_SUBST(CLUTTER_GST_MAJOR_VERSION)
35
40
AC_SUBST(CLUTTER_GST_MINOR_VERSION)
36
41
AC_SUBST(CLUTTER_GST_MICRO_VERSION)
37
42
AC_SUBST(CLUTTER_GST_VERSION)
38
43
AC_SUBST(CLUTTER_GST_API_VERSION)
39
44
AC_SUBST(CLUTTER_GST_MAJORMINOR)
45
AC_SUBST(CLUTTER_API_VERSION)
41
47
m4_define([lt_current],
42
48
[m4_eval(100 * clutter_gst_minor_version + clutter_gst_micro_version - clutter_gst_interface_age)])
72
80
AC_CHECK_FUNCS([memset munmap strcasecmp strdup])
75
dnl ========================================================================
77
pkg_modules="clutter-0.8 >= 0.8.0"
82
dnl ========================================================================
84
AC_CHECK_PROG(CGC, [cgc], [cgc], [no])
86
if test "x$CGC" = "xcgc"; then
89
AM_CONDITIONAL([HAVE_CGC], [test "x$have_cgc" = "xyes"])
91
dnl ========================================================================
92
dnl check for python (pso2h.py needs it)
94
AC_CHECK_PROG(PYTHON, [python], [python], [no])
96
if test "x$PYTHON" = "xpython"; then
99
AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
101
dnl ========================================================================
103
pkg_modules="clutter-1.0 >= 1.0.0"
78
104
PKG_CHECK_MODULES(CLUTTER_GST, [$pkg_modules])
80
106
dnl ========================================================================
82
108
GST_MAJORMINOR=0.10
84
pkg_modules="gstreamer-$GST_MAJORMINOR gstreamer-plugins-base-$GST_MAJORMINOR"
110
pkg_modules="gstreamer-$GST_MAJORMINOR gstreamer-plugins-base-$GST_MAJORMINOR gstreamer-base-$GST_MAJORMINOR"
85
111
PKG_CHECK_MODULES(GST, [$pkg_modules])
87
113
GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_MAJORMINOR -lgstvideo-$GST_MAJORMINOR -lgstaudio-$GST_MAJORMINOR"
89
115
dnl ========================================================================
91
if test "x$GCC" = "xyes"; then
117
m4_define([maintainer_flags_default], [yes])
118
AC_ARG_ENABLE([maintainer-flags],
119
[AC_HELP_STRING([--enable-maintainer-flags=@<:@no/yes@:>@],
120
[Use strict compiler flags @<:@default=maintainer_flags_default@:>@])],
122
[enable_maintainer_flags=maintainer_flags_default])
124
AS_IF([test "x$enable_maintainer_flags" = "xyes" && test "x$GCC" = "xyes"],
126
AS_COMPILER_FLAGS([MAINTAINER_CFLAGS],
127
["-Wall -Wshadow -Wcast-align -Wno-uninitialized
128
-Wno-strict-aliasing -Wempty-body -Wformat-security
133
AC_SUBST(MAINTAINER_CFLAGS)
95
135
dnl ========================================================================
108
148
AC_SUBST(CLUTTER_GST_CFLAGS)
109
149
AC_SUBST(CLUTTER_GST_LIBS)
151
SHAVE_INIT([build/autotools], [enable])
156
build/autotools/Makefile
157
build/autotools/shave
158
build/autotools/shave-libtool
113
160
clutter-gst/Makefile
114
161
clutter-gst/clutter-gst-version.h
162
clutter-gst/shaders/Makefile
115
164
examples/Makefile
117
166
doc/reference/Makefile
126
175
echo " ==================="
128
177
echo " prefix: ${prefix}"
130
echo " Documentation: ${enable_gtk_doc}"
178
echo " Compiler flags: ${MAINTAINER_CFLAGS} ${CPPFLAGS}"
180
echo " Cg compiler: ${have_cgc}"
182
echo " Build API documentation: ${enable_gtk_doc}"