3 dnl initialize autoconf
4 dnl when going to/from release please set the nano (fourth number) right !
5 dnl releases only do Wall, cvs and prerelease does Werror too
6 AC_INIT(GStreamer Editing Services, 0.10.0.0,
7 http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
8 gstreamer-editing-services)
12 dnl initialize automake
13 AM_INIT_AUTOMAKE([-Wno-portability])
15 dnl define PACKAGE_VERSION_* variables
18 dnl check if this is a release version
19 AS_NANO(GST_CVS="no", GST_CVS="yes")
21 dnl can autoconf find the source ?
22 AC_CONFIG_SRCDIR([src/ges-timeline.c])
24 dnl define the output header for config
25 AM_CONFIG_HEADER([config.h])
27 dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
30 dnl sets host_* variables
33 dnl our libraries and install dirs use major.minor as a version
34 GST_MAJORMINOR=$GST_EDITING_SERVICES_VERSION_MAJOR.$GST_EDITING_SERVICES_VERSION_MINOR
35 dnl we override it here if we need to for the release candidate of new series
37 AC_SUBST(GST_MAJORMINOR)
39 dnl FIXME: this macro doesn't actually work;
40 dnl the generated libtool script has no support for the listed tags.
41 dnl So this needs to be fixed first if we want to use this
42 dnl AS_LIBTOOL_TAGS([CXX])
47 dnl *** required versions of GStreamer stuff ***
51 dnl *** autotools stuff ****
53 dnl allow for different autotools
54 AS_AUTOTOOLS_ALTERNATE
56 dnl Add parameters for aclocal
57 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4")
60 dnl the version check needs to stay here because autopoint greps for it
61 AM_GNU_GETTEXT_VERSION([0.17])
62 AM_GNU_GETTEXT([external])
63 AG_GST_GETTEXT([gst-editing-services-$GST_MAJORMINOR])
65 dnl *** check for arguments to configure ***
74 AG_GST_ARG_WITH_PKG_CONFIG_PATH
75 AG_GST_ARG_WITH_PACKAGE_NAME
76 AG_GST_ARG_WITH_PACKAGE_ORIGIN
78 dnl *** checks for platform ***
80 dnl * hardware/architecture *
82 dnl common/m4/gst-arch.m4
86 dnl Determine endianness
89 dnl *** checks for programs ***
94 dnl determine c++ compiler
96 dnl determine if c++ is available on this system
97 AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
101 dnl check if the compiler supports '-c' and '-o' options
104 dnl check if the compiler supports do while(0) macros
105 AG_GST_CHECK_DOWHILE_MACROS
107 AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
108 AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
110 dnl check for documentation tools
112 AS_PATH_PYTHON([2.1])
113 AG_GST_PLUGIN_DOCS([1.3],[2.1])
115 dnl *** checks for libraries ***
117 dnl check for libm, for sin() etc.
121 dnl *** checks for header files ***
123 AC_CHECK_HEADERS([unistd.h], HAVE_UNISTD_H=yes)
124 AM_CONDITIONAL(HAVE_UNISTD_H, test "x$HAVE_UNISTD_H" = "xyes")
126 if test "x$HAVE_UNISTD_H" != "xyes"; then
127 GST_PLUGINS_SELECTED=`echo $GST_PLUGINS_SELECTED | $SED -e s/festival//`
130 dnl *** checks for types/defines ***
132 dnl *** checks for structures ***
134 dnl *** checks for compiler characteristics ***
136 dnl *** checks for library functions ***
138 dnl *** checks for headers ***
140 dnl *** checks for dependency libraries ***
143 AG_GST_GLIB_CHECK([2.6])
145 dnl checks for gstreamer
146 dnl uninstalled is selected preferentially -- see pkg-config(1)
147 AG_GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ], yes)
148 AG_GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ], yes)
149 #AG_GST_CHECK_GST_GDP($GST_MAJORMINOR, [$GST_REQ], yes)
150 AG_GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQ], no)
151 #AG_GST_CHECK_GST_CONTROLLER($GST_MAJORMINOR, [$GST_REQ], yes)
152 AG_GST_CHECK_GST_PLUGINS_BASE($GST_MAJORMINOR, [$GSTPB_REQ], yes)
153 AM_CONDITIONAL(HAVE_GST_CHECK, test "x$HAVE_GST_CHECK" = "xyes")
155 GSTPB_PLUGINS_DIR=`$PKG_CONFIG gstreamer-plugins-base-$GST_MAJORMINOR --variable pluginsdir`
156 AC_SUBST(GSTPB_PLUGINS_DIR)
157 AC_MSG_NOTICE(Using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR)
159 dnl Check for documentation xrefs
160 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
161 GST_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-$GST_MAJORMINOR`"
162 GSTPB_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-plugins-base-$GST_MAJORMINOR`"
163 AC_SUBST(GLIB_PREFIX)
165 AC_SUBST(GSTPB_PREFIX)
167 dnl set license and copyright notice
169 AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
170 AC_SUBST(GST_LICENSE)
172 dnl define LIBDIR so we can inform people where we live
173 AS_AC_EXPAND(LIBDIR, $libdir)
174 AC_DEFINE_UNQUOTED(LIBDIR, "$LIBDIR", [library dir])
176 dnl set location of plugin directory
179 dnl define an ERROR_CFLAGS Makefile variable
180 AG_GST_SET_ERROR_CFLAGS($GST_CVS)
182 dnl define an ERROR_CXXFLAGS Makefile variable
183 AG_GST_SET_ERROR_CXXFLAGS($GST_CVS)
185 dnl define correct level for debugging messages
186 AG_GST_SET_LEVEL_DEFAULT($GST_CVS)
188 dnl *** finalize CFLAGS, LDFLAGS, LIBS
191 dnl GST_OPTION_CFLAGS: common flags for profiling, debugging, errors, ...
192 dnl GST_*: flags shared by built objects to link against GStreamer
193 dnl GST_ALL_LDFLAGS: linker flags shared by all
194 dnl GST_LIB_LDFLAGS: additional linker flags for all libaries
195 dnl GST_LT_LDFLAGS: library versioning of our libraries
196 dnl GST_PLUGIN_LDFLAGS: flags to be used for all plugins
198 dnl GST_OPTION_CFLAGS
199 if test "x$USE_DEBUG" = xyes; then
202 AC_SUBST(PROFILE_CFLAGS)
204 if test "x$PACKAGE_VERSION_NANO" = "x1"; then
205 dnl Define _only_ during CVS (not pre-releases or releases)
206 DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
210 AC_SUBST(DEPRECATED_CFLAGS)
212 dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS can be overridden
213 dnl at make time with e.g. make ERROR_CFLAGS=""
214 GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
215 GST_OPTION_CXXFLAGS="\$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
216 AC_SUBST(GST_OPTION_CFLAGS)
217 AC_SUBST(GST_OPTION_CXXFLAGS)
219 dnl FIXME: do we want to rename to GST_ALL_* ?
220 dnl prefer internal headers to already installed ones
221 dnl also add builddir include for enumtypes and marshal
222 dnl add GST_OPTION_CFLAGS, but overridable
223 GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
224 GST_CXXFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CXXFLAGS \$(GST_OPTION_CXXFLAGS)"
226 AC_SUBST(GST_CXXFLAGS)
229 dnl LDFLAGS really should only contain flags, not libs - they get added before
230 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
231 GST_ALL_LDFLAGS="-no-undefined"
232 AC_SUBST(GST_ALL_LDFLAGS)
234 SHAVE_INIT([common],[enable])
236 dnl *** output files ***
249 #docs/plugins/Makefile
250 #docs/plugins/figures/Makefile
251 #docs/version.entities