2006-04-01 09:54:39 +00:00
AC_PREREQ(2.52)
2001-12-17 18:37:01 +00:00
2006-06-11 17:08:11 +00:00
dnl please read gstreamer/docs/random/autotools before changing this file
2006-04-01 09:54:39 +00:00
dnl initialize autoconf
2006-06-11 17:08:11 +00:00
dnl releases only do -Wall, cvs and prerelease does -Werror too
dnl use a three digit version number for releases, and four for cvs/prerelease
2010-02-19 01:07:08 +00:00
AC_INIT(GStreamer Ugly Plug-ins, 0.10.13.2,
2006-04-01 09:54:39 +00:00
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
gst-plugins-ugly)
2007-07-23 09:07:19 +00:00
2007-02-28 19:30:35 +00:00
AG_GST_INIT
2006-04-01 09:54:39 +00:00
dnl initialize automake
2009-05-22 18:26:27 +00:00
AM_INIT_AUTOMAKE([-Wno-portability])
2006-04-01 09:54:39 +00:00
dnl define PACKAGE_VERSION_* variables
AS_VERSION
dnl check if this is a release version
AS_NANO(GST_CVS="no", GST_CVS="yes")
dnl can autoconf find the source ?
AC_CONFIG_SRCDIR([ext/mad/gstmad.c])
dnl define the output header for config
AM_CONFIG_HEADER(config.h)
2002-02-16 05:44:09 +00:00
2002-08-27 09:54:08 +00:00
dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
AM_MAINTAINER_MODE
2006-04-01 09:54:39 +00:00
dnl sets host_* variables
AC_CANONICAL_HOST
2002-12-08 14:50:04 +00:00
dnl our libraries and install dirs use major.minor as a version
2006-04-01 09:54:39 +00:00
GST_MAJORMINOR=$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR
2005-02-22 16:48:58 +00:00
dnl we override it here if we need to for the release candidate of new series
2005-12-01 19:14:57 +00:00
GST_MAJORMINOR=0.10
2002-12-08 14:50:04 +00:00
AC_SUBST(GST_MAJORMINOR)
2006-04-01 15:30:56 +00:00
dnl FIXME: this macro doesn't actually work;
dnl the generated libtool script has no support for the listed tags.
dnl So this needs to be fixed first if we want to use this
dnl AS_LIBTOOL_TAGS([CXX])
2008-04-06 08:57:33 +00:00
AC_LIBTOOL_WIN32_DLL
2004-02-04 21:30:15 +00:00
AM_PROG_LIBTOOL
2001-12-17 18:37:01 +00:00
2006-01-11 11:44:02 +00:00
dnl *** required versions of GStreamer stuff ***
2010-02-19 01:07:08 +00:00
GST_REQ=0.10.26
GSTPB_REQ=0.10.26
2006-01-11 11:44:02 +00:00
2006-04-01 09:54:39 +00:00
dnl *** autotools stuff ****
2001-12-17 18:37:01 +00:00
2006-04-01 09:54:39 +00:00
dnl allow for different autotools
AS_AUTOTOOLS_ALTERNATE
2002-02-06 18:18:16 +00:00
2006-04-01 09:54:39 +00:00
dnl Add parameters for aclocal
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4")
2004-07-13 06:36:55 +00:00
2006-04-01 09:54:39 +00:00
dnl set up gettext
2006-07-28 15:11:42 +00:00
dnl the version check needs to stay here because autopoint greps for it
2008-11-29 13:33:37 +00:00
AM_GNU_GETTEXT_VERSION(0.17)
2006-07-28 15:11:42 +00:00
AM_GNU_GETTEXT([external])
2007-02-28 19:30:35 +00:00
AG_GST_GETTEXT([gst-plugins-ugly-$GST_MAJORMINOR])
2003-05-21 15:16:51 +00:00
2006-04-01 09:54:39 +00:00
dnl *** check for arguments to configure ***
2001-12-17 18:37:01 +00:00
2007-02-28 19:30:35 +00:00
AG_GST_ARG_DEBUG
AG_GST_ARG_PROFILING
AG_GST_ARG_VALGRIND
AG_GST_ARG_GCOV
2005-10-19 09:47:31 +00:00
2007-02-28 19:30:35 +00:00
AG_GST_ARG_EXAMPLES
2001-12-17 18:37:01 +00:00
2007-02-28 19:30:35 +00:00
AG_GST_ARG_WITH_PKG_CONFIG_PATH
AG_GST_ARG_WITH_PACKAGE_NAME
AG_GST_ARG_WITH_PACKAGE_ORIGIN
2004-03-15 16:27:29 +00:00
2007-09-25 09:16:05 +00:00
AG_GST_ARG_WITH_PLUGINS
2006-04-01 09:54:39 +00:00
2007-09-25 09:16:05 +00:00
AG_GST_ARG_ENABLE_EXTERNAL
AG_GST_ARG_ENABLE_EXPERIMENTAL
2006-04-01 09:54:39 +00:00
dnl *** checks for platform ***
2001-12-17 18:37:01 +00:00
2006-04-01 09:54:39 +00:00
dnl * hardware/architecture *
2001-12-17 18:37:01 +00:00
2006-04-01 09:54:39 +00:00
dnl common/m4/gst-arch.m4
dnl check CPU type
2007-02-28 19:30:35 +00:00
AG_GST_ARCH
2002-05-27 14:01:51 +00:00
2006-04-01 09:54:39 +00:00
dnl Determine endianness
AC_C_BIGENDIAN
2001-12-26 23:14:44 +00:00
2006-04-01 09:54:39 +00:00
dnl *** checks for programs ***
2004-02-13 13:09:27 +00:00
2006-04-01 09:54:39 +00:00
dnl find a compiler
AC_PROG_CC
2001-12-17 18:37:01 +00:00
2006-04-01 09:54:39 +00:00
dnl determine c++ compiler
AC_PROG_CXX
dnl determine if c++ is available on this system
AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
2001-12-17 18:37:01 +00:00
2008-01-10 12:28:19 +00:00
dnl check if the compiler supports '-c' and '-o' options
AM_PROG_CC_C_O
2006-04-01 09:54:39 +00:00
AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
2002-02-16 17:53:57 +00:00
2008-03-21 14:15:27 +00:00
dnl check if the compiler supports do while(0) macros
AG_GST_CHECK_DOWHILE_MACROS
2006-04-01 09:54:39 +00:00
dnl check for documentation tools
GTK_DOC_CHECK([1.3])
AS_PATH_PYTHON([2.1])
2007-07-23 09:07:19 +00:00
AG_GST_PLUGIN_DOCS([1.3],[2.1])
2005-05-05 16:35:52 +00:00
2006-04-01 09:54:39 +00:00
dnl *** checks for libraries ***
2005-05-05 16:35:52 +00:00
2007-07-23 09:07:19 +00:00
dnl check for libm, for sin()
AC_CHECK_LIBM
AC_SUBST(LIBM)
2006-04-01 09:54:39 +00:00
dnl *** checks for header files ***
2005-05-05 16:35:52 +00:00
2006-04-01 09:54:39 +00:00
dnl used by ext/a52dec
AX_CREATE_STDINT_H
2005-05-06 18:00:56 +00:00
2006-04-01 09:54:39 +00:00
dnl Check for malloc.h
AC_CHECK_HEADERS([malloc.h])
2005-05-06 18:00:56 +00:00
2006-04-01 09:54:39 +00:00
dnl *** checks for types/defines ***
2005-05-05 16:35:52 +00:00
2006-04-01 09:54:39 +00:00
dnl *** checks for structures ***
2001-12-17 18:37:01 +00:00
2006-04-01 09:54:39 +00:00
dnl *** checks for compiler characteristics ***
2001-12-17 18:37:01 +00:00
2006-04-01 09:54:39 +00:00
dnl *** checks for library functions ***
2003-07-28 11:37:49 +00:00
2006-04-01 09:54:39 +00:00
dnl Check for a way to display the function name in debug output
2007-02-28 19:30:35 +00:00
AG_GST_CHECK_FUNCTION
2003-12-16 16:58:59 +00:00
2007-02-13 09:15:41 +00:00
dnl *** checks for dependency libraries ***
dnl GLib is required
2008-04-04 19:04:20 +00:00
AG_GST_GLIB_CHECK([2.12])
2004-02-20 15:49:27 +00:00
2006-04-01 09:54:39 +00:00
dnl liboil is required
2007-07-23 09:07:19 +00:00
PKG_CHECK_MODULES(LIBOIL, liboil-0.3 >= 0.3.8, HAVE_LIBOIL=yes, HAVE_LIBOIL=no)
2008-03-03 12:50:56 +00:00
if test "x$HAVE_LIBOIL" != "xyes"; then
2007-07-23 09:07:19 +00:00
AC_ERROR([liboil-0.3.8 or later is required])
Convert a few inner loops to use liboil. This is currently optional, and is only enabled if liboil is present (duh!).
Original commit message from CVS:
Convert a few inner loops to use liboil. This is currently
optional, and is only enabled if liboil is present (duh!).
* configure.ac: Check for liboil-0.1
* gst/intfloat/Makefile.am:
* gst/intfloat/gstint2float.c: (conv_f32_s16), (scalarmult_f32),
(gst_int2float_chain_gint16):
* gst/videofilter/Makefile.am:
* gst/videofilter/gstvideobalance.c: (gst_videobalance_class_init),
(tablelookup_u8), (gst_videobalance_planar411):
* gst/videotestsrc/Makefile.am:
* gst/videotestsrc/gstvideotestsrc.c: (plugin_init):
* gst/videotestsrc/videotestsrc.c: (splat_u8), (paint_hline_YUY2),
(paint_hline_IYU2), (paint_hline_str4), (paint_hline_str3),
(paint_hline_RGB565), (paint_hline_xRGB1555):
2004-02-12 07:37:49 +00:00
fi
2006-04-01 09:54:39 +00:00
dnl checks for gstreamer
dnl uninstalled is selected preferentially -- see pkg-config(1)
2008-05-07 08:00:24 +00:00
AG_GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ], yes)
AG_GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ], yes)
2007-02-28 19:30:35 +00:00
AG_GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQ], no)
2008-05-07 08:00:24 +00:00
AG_GST_CHECK_GST_PLUGINS_BASE($GST_MAJORMINOR, [$GSTPB_REQ], yes)
2007-07-13 16:46:35 +00:00
AM_CONDITIONAL(HAVE_GST_CHECK, test "x$HAVE_GST_CHECK" = "xyes")
2002-08-13 10:39:26 +00:00
2007-02-13 09:15:41 +00:00
dnl Check for documentation xrefs
GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
GST_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-$GST_MAJORMINOR`"
GSTPB_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-plugins-base-$GST_MAJORMINOR`"
AC_SUBST(GLIB_PREFIX)
AC_SUBST(GST_PREFIX)
AC_SUBST(GSTPB_PREFIX)
2006-04-01 09:54:39 +00:00
dnl *** set variables based on configure arguments ***
2001-12-21 11:46:15 +00:00
2006-04-01 09:54:39 +00:00
dnl set license and copyright notice
GST_LICENSE="LGPL"
AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
AC_SUBST(GST_LICENSE)
2001-12-23 03:25:55 +00:00
2006-04-01 09:54:39 +00:00
dnl set location of plugin directory
2007-02-28 19:30:35 +00:00
AG_GST_SET_PLUGINDIR
2001-12-23 03:25:55 +00:00
2006-04-01 09:54:39 +00:00
dnl define an ERROR_CFLAGS Makefile variable
2007-02-28 19:30:35 +00:00
AG_GST_SET_ERROR_CFLAGS($GST_CVS)
2001-12-23 03:25:55 +00:00
2008-02-23 12:35:53 +00:00
dnl define an ERROR_CXXFLAGS Makefile variable
AG_GST_SET_ERROR_CXXFLAGS($GST_CVS)
2006-04-01 09:54:39 +00:00
dnl define correct level for debugging messages
2007-02-28 19:30:35 +00:00
AG_GST_SET_LEVEL_DEFAULT($GST_CVS)
2001-12-23 03:25:55 +00:00
2006-04-01 09:54:39 +00:00
dnl used in examples
2007-02-28 19:30:35 +00:00
AG_GST_DEFAULT_ELEMENTS
2006-04-01 09:54:39 +00:00
2008-03-03 12:50:56 +00:00
dnl *** plug-ins to include ***
dnl these are all the gst plug-ins, compilable without additional libs
AG_GST_CHECK_PLUGIN(asfdemux)
AG_GST_CHECK_PLUGIN(dvdlpcmdec)
AG_GST_CHECK_PLUGIN(dvdsub)
AG_GST_CHECK_PLUGIN(iec958)
AG_GST_CHECK_PLUGIN(mpegaudioparse)
AG_GST_CHECK_PLUGIN(mpegstream)
AG_GST_CHECK_PLUGIN(realmedia)
AG_GST_CHECK_PLUGIN(synaesthesia)
2009-04-08 18:44:53 +00:00
AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
if test "x$HAVE_WINSOCK2_H" = "xyes"; then
WIN32_LIBS="-lws2_32"
AC_SUBST(WIN32_LIBS)
fi
2008-03-03 12:50:56 +00:00
dnl disable experimental plug-ins
if test "x$BUILD_EXPERIMENTAL" != "xyes"; then
AG_GST_DISABLE_PLUGIN(synaesthesia)
fi
2006-04-01 09:54:39 +00:00
dnl *** ext plug-ins ***
dnl keep this list sorted alphabetically !
2001-12-21 11:46:15 +00:00
2006-04-01 09:54:39 +00:00
if test "x$BUILD_EXTERNAL" = "xyes"; then
echo
AC_MSG_NOTICE([Checking libraries for plugins in ext/])
echo
2005-05-07 18:50:39 +00:00
2005-10-20 09:00:30 +00:00
dnl *** a52dec ***
translit(dnm, m, l) AM_CONDITIONAL(USE_A52DEC, true)
2007-02-28 19:30:35 +00:00
AG_GST_CHECK_FEATURE(A52DEC, [a52dec], a52dec, [
2005-10-20 09:00:30 +00:00
AC_CHECK_A52DEC(HAVE_A52DEC=yes, HAVE_A52DEC=no)
])
2009-07-27 18:12:20 +00:00
dnl *** amr-nb ***
2005-07-19 20:51:16 +00:00
translit(dnm, m, l) AM_CONDITIONAL(USE_AMRNB, true)
2009-07-27 18:12:20 +00:00
AG_GST_CHECK_FEATURE(AMRNB, [amrnb library], amrnb, [
2009-08-17 15:31:10 +00:00
PKG_CHECK_MODULES(AMRNB, opencore-amrnb, HAVE_AMRNB="yes",
[ AG_GST_CHECK_LIBHEADER(AMRNB, opencore-amrnb,
Decoder_Interface_init, -lm,
opencore-amrnb/interf_dec.h,
AMRNB_LIBS="-lopencore-amrnb")
])
AC_SUBST(AMRNB_CFLAGS)
AC_SUBST(AMRNB_LIBS)
2005-07-19 20:51:16 +00:00
])
2009-07-27 18:12:20 +00:00
dnl *** amr-wb dec ***
translit(dnm, m, l) AM_CONDITIONAL(USE_AMRWB, true)
AG_GST_CHECK_FEATURE(AMRWB, [amrwb library], amrwbdec, [
2009-08-17 15:31:10 +00:00
PKG_CHECK_MODULES(AMRWB, opencore-amrwb, HAVE_AMRWB="yes",
[ AG_GST_CHECK_LIBHEADER(AMRWB, opencore-amrwb,
D_IF_decode, ,
opencore-amrwb/dec_if.h,
AMRWB_LIBS="-lopencore-amrwb")
])
AC_SUBST(AMRWB_CFLAGS)
AC_SUBST(AMRWB_LIBS)
2009-07-27 18:12:20 +00:00
])
2008-08-12 09:16:13 +00:00
dnl *** cdio ***
translit(dnm, m, l) AM_CONDITIONAL(USE_CDIO, true)
AG_GST_CHECK_FEATURE(CDIO, [cdio library], cdio, [
AG_GST_PKG_CHECK_MODULES(CDIO, libcdio >= 0.76)
])
2006-02-09 17:27:57 +00:00
dnl *** dvdread ***
translit(dnm, m, l) AM_CONDITIONAL(USE_DVDREAD, true)
2007-02-28 19:30:35 +00:00
AG_GST_CHECK_FEATURE(DVDREAD, [dvdread library], dvdreadsrc, [
AG_GST_CHECK_LIBHEADER(DVDREAD, dvdread, DVDOpen, , dvdread/dvd_reader.h, DVDREAD_LIBS="-ldvdread")
2006-02-09 17:27:57 +00:00
AC_SUBST(DVDREAD_LIBS)
])
2005-07-19 20:51:16 +00:00
2005-08-16 16:12:15 +00:00
dnl *** lame ***
translit(dnm, m, l) AM_CONDITIONAL(USE_LAME, true)
2007-02-28 19:30:35 +00:00
AG_GST_CHECK_FEATURE(LAME, [lame mp3 encoder library], lame, [
AG_GST_CHECK_LIBHEADER(LAME, mp3lame, lame_init, -lm, lame/lame.h,
2005-08-16 16:12:15 +00:00
[
HAVE_LAME="yes"
LAME_LIBS="-lmp3lame -lm"
dnl is lame presets available
LAME_CFLAGS=""
2007-09-08 20:54:54 +00:00
AC_TRY_COMPILE([#include <lame/lame.h>], [ int preset = MEDIUM ],
2005-08-16 16:12:15 +00:00
[LAME_CFLAGS="-DGSTLAME_PRESET"],
[LAME_CFLAGS=""]
)
2009-05-05 15:38:19 +00:00
AC_TRY_COMPILE([#include <lame/lame.h>], [
void *ptr = &lame_set_VBR_quality
],
[LAME_CFLAGS="$LAME_CFLAGS -DHAVE_LAME_SET_VBR_QUALITY"],
[LAME_CFLAGS="$LAME_CFLAGS"]
)
2005-08-16 16:12:15 +00:00
AC_SUBST(LAME_CFLAGS)
AC_SUBST(LAME_LIBS)
])
])
2005-07-19 20:51:16 +00:00
2006-02-27 18:37:47 +00:00
dnl *** mad ***
translit(dnm, m, l) AM_CONDITIONAL(USE_MAD, true)
2007-02-28 19:30:35 +00:00
AG_GST_CHECK_FEATURE(MAD, [mad mp3 decoder], mad, [
2009-08-01 06:43:21 +00:00
dnl check with pkg-config first
AG_GST_PKG_CHECK_MODULES(ID3TAG, id3tag >= 0.15)
if test "x$HAVE_ID3TAG" = "xno"; then
dnl fall back to oldskool detection
AC_CHECK_HEADER(id3tag.h, [
save_LIBS=$LIBS
LIBS="-lz"
AC_CHECK_LIB(id3tag, id3_tag_options,
HAVE_ID3TAG="yes" ID3TAG_LIBS="-lid3tag -lz")
LIBS=$save_LIBS
AC_SUBST(ID3TAG_LIBS)
])
fi
2006-02-27 18:37:47 +00:00
if test "x$HAVE_ID3TAG" = "xyes"; then
dnl check with pkg-config first
2009-08-01 06:43:21 +00:00
AG_GST_PKG_CHECK_MODULES(MAD, mad >= 0.15)
MAD_LIBS="$MAD_LIBS $ID3TAG_LIBS"
2006-02-27 18:37:47 +00:00
if test "x$HAVE_MAD" = "xno"; then
dnl fall back to oldskool detection
AC_CHECK_HEADER(mad.h, [
2006-04-01 09:54:39 +00:00
AC_CHECK_LIB(mad, mad_decoder_finish,
HAVE_MAD="yes" MAD_LIBS="-lmad $ID3TAG_LIBS")
2006-02-27 18:37:47 +00:00
])
2009-08-01 06:43:21 +00:00
fi
2006-02-27 18:37:47 +00:00
else
HAVE_MAD="no"
2006-04-01 09:54:39 +00:00
AC_MSG_WARN([libid3tag not available, cannot build MAD MP3 decoder plugin])
2006-02-27 18:37:47 +00:00
fi
2005-05-06 11:04:30 +00:00
])
AC_SUBST(MAD_LIBS)
2001-12-17 18:37:01 +00:00
2005-07-19 20:51:16 +00:00
dnl *** mpeg2dec ***
translit(dnm, m, l) AM_CONDITIONAL(USE_MPEG2DEC, true)
2007-02-28 19:30:35 +00:00
AG_GST_CHECK_FEATURE(MPEG2DEC, [mpeg2dec], mpeg2dec, [
AG_GST_PKG_CHECK_MODULES(MPEG2DEC, libmpeg2 >= 0.4.0)
2005-07-19 20:51:16 +00:00
])
2005-08-25 09:30:23 +00:00
dnl *** sidplay : works with libsidplay 1.36.x (not 2.x.x) ***
translit(dnm, m, l) AM_CONDITIONAL(USE_SIDPLAY, true)
2007-02-28 19:30:35 +00:00
AG_GST_CHECK_FEATURE(SIDPLAY, [libsidplay], sid, [
2005-08-25 09:30:23 +00:00
GST_PATH_SIDPLAY()
2005-08-02 11:42:33 +00:00
])
2009-03-10 00:10:20 +00:00
dnl *** twolame ***
translit(dnm, m, l) AM_CONDITIONAL(USE_TWOLAME, true)
AG_GST_CHECK_FEATURE(TWOLAME, [twolame], twolame, [
2009-03-22 20:08:48 +00:00
PKG_CHECK_MODULES(TWOLAME, twolame >= 0.3.10, [
2009-03-10 00:10:20 +00:00
HAVE_TWOLAME="yes"], [
HAVE_TWOLAME="no"
AC_MSG_RESULT(no)
])
AC_SUBST(TWOLAME_CFLAGS)
AC_SUBST(TWOLAME_LIBS)
])
2009-06-05 18:25:54 +00:00
dnl *** x264 (MPEG-4 part 10/h.264/AVC encoder) ***
translit(dnm, m, l) AM_CONDITIONAL(USE_X264, true)
AG_GST_CHECK_FEATURE(X264, [x264 plug-in], x264, [
2009-10-02 13:22:38 +00:00
AG_GST_CHECK_LIBHEADER(X264, x264, x264_encoder_encode, -lm, x264.h,
2009-06-05 18:25:54 +00:00
AC_MSG_CHECKING([for uptodate x264 API version])
dnl _stdint not yet generated, so no compiling
AC_TRY_CPP([
#include <x264.h>
#if X264_BUILD < 55
#error "x264 build too old"
#endif
], [
AC_MSG_RESULT(yes)
X264_LIBS="$LDFLAGS -lx264 -lm"
X264_CFLAGS="$CFLAGS"
AC_SUBST(X264_LIBS)
AC_SUBST(X264_CFLAGS)
], [
AC_MSG_RESULT(no)
HAVE_X264=no
]))
])
2006-06-17 14:48:04 +00:00
else
dnl not building plugins with external dependencies,
dnl but we still need to set the conditionals
AM_CONDITIONAL(USE_A52DEC, false)
AM_CONDITIONAL(USE_AMRNB, false)
2009-07-27 18:12:20 +00:00
AM_CONDITIONAL(USE_AMRWB, false)
2008-08-12 09:16:13 +00:00
AM_CONDITIONAL(USE_CDIO, false)
2006-06-17 14:48:04 +00:00
AM_CONDITIONAL(USE_DVDREAD, false)
AM_CONDITIONAL(USE_LAME, false)
AM_CONDITIONAL(USE_MAD, false)
AM_CONDITIONAL(USE_MPEG2DEC, false)
AM_CONDITIONAL(USE_SIDPLAY, false)
2009-03-10 00:10:20 +00:00
AM_CONDITIONAL(USE_TWOLAME, false)
2009-06-05 18:25:54 +00:00
AM_CONDITIONAL(USE_X264, false)
2006-06-17 14:48:04 +00:00
2006-04-01 09:54:39 +00:00
fi dnl of EXT plugins
2005-06-29 16:14:30 +00:00
2006-04-01 09:54:39 +00:00
dnl *** finalize CFLAGS, LDFLAGS, LIBS
2001-12-17 18:37:01 +00:00
2006-04-01 09:54:39 +00:00
dnl Overview:
dnl GST_OPTION_CFLAGS: common flags for profiling, debugging, errors, ...
dnl GST_*: flags shared by built objects to link against GStreamer
dnl GST_ALL_LDFLAGS: linker flags shared by all
dnl GST_LIB_LDFLAGS: additional linker flags for all libaries
dnl GST_LT_LDFLAGS: library versioning of our libraries
dnl GST_PLUGIN_LDFLAGS: flags to be used for all plugins
2005-08-31 18:33:08 +00:00
2006-04-01 09:54:39 +00:00
dnl GST_OPTION_CFLAGS
if test "x$USE_DEBUG" = xyes; then
PROFILE_CFLAGS="-g"
fi
AC_SUBST(PROFILE_CFLAGS)
2005-08-31 18:33:08 +00:00
2008-02-08 01:09:53 +00:00
if test "x$PACKAGE_VERSION_NANO" = "x1"; then
dnl Define _only_ during CVS (not pre-releases or releases)
2007-12-09 04:29:35 +00:00
DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
else
DEPRECATED_CFLAGS=""
fi
2006-04-01 09:54:39 +00:00
AC_SUBST(DEPRECATED_CFLAGS)
2003-10-31 20:03:29 +00:00
2008-02-23 12:35:53 +00:00
dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS can be overridden
dnl at make time with e.g. make ERROR_CFLAGS=""
2006-04-01 09:54:39 +00:00
GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
2008-02-23 12:35:53 +00:00
GST_OPTION_CXXFLAGS="\$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
2006-04-01 09:54:39 +00:00
AC_SUBST(GST_OPTION_CFLAGS)
2008-02-23 12:35:53 +00:00
AC_SUBST(GST_OPTION_CXXFLAGS)
2006-04-01 09:54:39 +00:00
dnl FIXME: do we want to rename to GST_ALL_* ?
dnl prefer internal headers to already installed ones
dnl also add builddir include for enumtypes and marshal
dnl add GST_OPTION_CFLAGS, but overridable
2010-02-15 21:16:32 +00:00
GST_CXXFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CXXFLAGS)"
2010-02-16 00:24:32 +00:00
GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
2006-04-01 09:54:39 +00:00
AC_SUBST(GST_CFLAGS)
2008-02-23 12:35:53 +00:00
AC_SUBST(GST_CXXFLAGS)
2006-04-01 09:54:39 +00:00
AC_SUBST(GST_LIBS)
dnl LDFLAGS really should only contain flags, not libs - they get added before
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
GST_ALL_LDFLAGS="-no-undefined"
AC_SUBST(GST_ALL_LDFLAGS)
dnl this really should only contain flags, not libs - they get added before
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
AC_SUBST(GST_PLUGIN_LDFLAGS)
2009-02-25 20:52:08 +00:00
SHAVE_INIT([common],[enable])
2009-02-22 19:19:12 +00:00
2006-04-01 09:54:39 +00:00
dnl *** output files ***
2001-12-17 18:37:01 +00:00
2002-02-08 20:12:28 +00:00
AC_CONFIG_FILES(
2001-12-17 18:37:01 +00:00
Makefile
2009-02-22 19:19:12 +00:00
common/Makefile
common/m4/Makefile
common/shave
common/shave-libtool
2006-07-31 09:53:05 +00:00
gst-libs/Makefile
gst-libs/gst/Makefile
2001-12-21 11:46:15 +00:00
gst/Makefile
asfdemux ported to 0.10. Does still need a bit of work (seems like there's something funky going on when timestamping...
Original commit message from CVS:
* configure.ac:
* gst/asfdemux/asfheaders.c: (gst_asf_identify_guid),
(gst_asf_get_guid_nick):
* gst/asfdemux/asfheaders.h:
* gst/asfdemux/gstasf.c: (plugin_init):
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_class_init), (gst_asf_demux_init),
(gst_asf_demux_sink_event), (gst_asf_demux_handle_seek_event),
(gst_asf_demux_handle_src_event),
(gst_asf_demux_get_current_offset), (gst_asf_demux_chain),
(gst_asf_demux_skip_bytes), (gst_asf_demux_identify_guid),
(gst_asf_demux_get_uint8), (gst_asf_demux_get_uint16),
(gst_asf_demux_get_uint32), (gst_asf_demux_get_uint64),
(gst_asf_demux_get_var_length), (gst_asf_demux_get_buffer),
(gst_asf_demux_get_bytes), (gst_asf_demux_get_string),
(gst_asf_demux_get_guid), (gst_asf_demux_get_obj_file),
(gst_asf_demux_get_bitrate_record),
(gst_asf_demux_get_obj_comment), (gst_asf_demux_get_obj_header),
(gst_asf_demux_get_obj_header_ext), (gst_asf_demux_get_obj_stream),
(gst_asf_demux_get_replicated_data), (gst_asf_demux_get_obj_data),
(gst_asf_demux_get_obj_data_correction),
(gst_asf_demux_get_stream_audio),
(gst_asf_demux_get_stream_correction),
(gst_asf_demux_get_stream_video),
(gst_asf_demux_get_stream_video_format),
(gst_asf_demux_get_stream), (gst_asf_demux_setup_pad),
(gst_asf_demux_add_audio_stream), (gst_asf_demux_add_video_stream),
(gst_asf_demux_process_stream),
(gst_asf_demux_get_gst_tag_from_tag_name),
(gst_asf_demux_commit_taglist),
(gst_asf_demux_process_ext_content_desc),
(gst_asf_demux_get_object_header), (gst_asf_demux_process_data),
(gst_asf_demux_process_header), (gst_asf_demux_process_file),
(gst_asf_demux_process_comment),
(gst_asf_demux_process_bitrate_props_object),
(gst_asf_demux_process_header_ext), (gst_asf_demux_process_object),
(gst_asf_demux_descramble_segment),
(gst_asf_demux_element_send_event),
(gst_asf_demux_send_event_unlocked), (gst_asf_demux_push_buffer),
(gst_asf_demux_process_chunk), (gst_asf_demux_process_segment),
(gst_asf_demux_handle_data), (gst_asf_demux_parse_data),
(gst_asf_demux_get_src_query_types),
(gst_asf_demux_handle_src_query), (gst_asf_demux_change_state):
* gst/asfdemux/gstasfdemux.h:
asfdemux ported to 0.10. Does still need a bit of work (seems like
there's something funky going on when timestamping video frames).
The seeking code is likely to make Wim cry, but hey, at least it
compiles.
2006-02-15 15:48:07 +00:00
gst/asfdemux/Makefile
2005-08-31 11:53:35 +00:00
gst/dvdlpcmdec/Makefile
Port dvdsubdec to 0.10
Original commit message from CVS:
* configure.ac:
* gst/dvdsub/Makefile.am:
* gst/dvdsub/gstdvdsubdec.c: (gst_dvd_sub_dec_base_init),
(gst_dvd_sub_dec_class_init), (gst_dvd_sub_dec_init),
(gst_dvd_sub_dec_finalize), (gst_dvd_sub_dec_src_event),
(gst_dvd_sub_dec_get_event_delay), (gst_dvd_sub_dec_parse_subpic),
(gst_get_nibble), (gst_setup_palette), (gst_get_rle_code),
(gst_draw_rle_line), (gst_dvd_sub_dec_merge_title),
(gst_send_empty_fill), (gst_send_subtitle_frame),
(gst_dvd_sub_dec_advance_time), (gst_dvd_sub_dec_chain),
(gst_dvd_sub_dec_sink_event), (gst_dvd_sub_dec_handle_dvd_event),
(plugin_init):
* gst/dvdsub/gstdvdsubdec.h:
Port dvdsubdec to 0.10
2006-02-22 14:54:54 +00:00
gst/dvdsub/Makefile
2005-09-01 17:31:21 +00:00
gst/iec958/Makefile
2005-08-31 17:57:35 +00:00
gst/mpegaudioparse/Makefile
2005-11-14 21:20:21 +00:00
gst/mpegstream/Makefile
2005-06-27 09:16:09 +00:00
gst/realmedia/Makefile
2006-09-18 12:29:09 +00:00
gst/synaesthesia/Makefile
2005-05-06 11:04:30 +00:00
ext/Makefile
2005-10-20 09:00:30 +00:00
ext/a52dec/Makefile
2005-08-30 17:59:55 +00:00
ext/amrnb/Makefile
2009-07-27 18:12:20 +00:00
ext/amrwbdec/Makefile
2008-08-12 09:16:13 +00:00
ext/cdio/Makefile
2006-02-09 17:27:57 +00:00
ext/dvdread/Makefile
2005-08-16 16:12:15 +00:00
ext/lame/Makefile
2005-05-06 11:04:30 +00:00
ext/mad/Makefile
2005-07-19 20:51:16 +00:00
ext/mpeg2dec/Makefile
2005-08-30 17:59:55 +00:00
ext/sidplay/Makefile
2009-03-10 00:10:20 +00:00
ext/twolame/Makefile
2009-06-05 18:25:54 +00:00
ext/x264/Makefile
2005-08-31 18:33:08 +00:00
docs/Makefile
docs/plugins/Makefile
docs/version.entities
add test for amrnbenc, enable test infrastructure, and fix a leak
Original commit message from CVS:
add test for amrnbenc, enable test infrastructure, and fix a leak
* common/check.mak:
allow for specifying more than one suppressions file in SUPPRESSIONS
* Makefile.am:
* tests/Makefile.am:
* tests/check/.cvsignore:
* tests/check/Makefile.am:
* tests/check/elements/.cvsignore:
* configure.ac:
add tests/check
* tests/check/gst-plugins-ugly.supp:
add suppressions for libs used by -ugly
* tests/check/elements/amrnbenc.c: (buffer_new), (buffer_unref),
(setup_amrnbenc), (cleanup_amrnbenc), (push_data),
(GST_START_TEST), (amrnbenc_suite), (main):
add a simple test for encoding amr
* ext/amrnb/amrnbenc.c: (gst_amrnbenc_init):
fix pad template leaks
2006-04-10 14:47:11 +00:00
tests/Makefile
tests/check/Makefile
2004-03-18 12:38:53 +00:00
m4/Makefile
2006-07-28 15:11:42 +00:00
po/Makefile.in
2005-08-31 18:33:08 +00:00
gst-plugins-ugly.spec
2001-12-17 18:37:01 +00:00
)
2010-02-01 01:33:22 +00:00
dnl Create the config.h file for Visual Studio builds
dnl Beware of spaces and /'s in some of the shell variable contents.
sed \
-e 's/.*config.h.in.*autoheader.*/\/* Autogenerated config.h created for win32 Visual Studio builds *\/\n\n\/* PREFIX -- specifically added for Windows for easier moving *\/\n#define PREFIX "C:\\\\gstreamer"\n\n/' \
-e 's/.* GETTEXT_PACKAGE$/#define GETTEXT_PACKAGE "'$GETTEXT_PACKAGE'"/' \
-e 's/.* GST_DATADIR$/#define GST_DATADIR PREFIX "\\\\share"/' \
-e 's/.* GST_LEVEL_DEFAULT$/#define GST_LEVEL_DEFAULT GST_LEVEL_ERROR/' \
-e 's/.* GST_LICENSE$/#define GST_LICENSE "'$GST_LICENSE'"/' \
-e 's/.* GST_MAJORMINOR$/#define GST_MAJORMINOR "'$GST_MAJORMINOR'"/' \
-e "s,.* GST_PACKAGE_NAME$,#define GST_PACKAGE_NAME \"${GST_PACKAGE_NAME}\"," \
-e 's/.* GST_PACKAGE_ORIGIN$/#define GST_PACKAGE_ORIGIN "Unknown package origin"/' \
-e 's/.* HAVE_CPU_I386$/#define HAVE_CPU_I386 1/' \
-e 's/.* HAVE_FGETPOS$/#define HAVE_FGETPOS 1/' \
-e 's/.* HAVE_FSETPOS$/#define HAVE_FSETPOS 1/' \
-e 's/.* HAVE_LIBXML2$/#define HAVE_LIBXML2 1/' \
-e 's/.* HAVE_PROCESS_H$/#define HAVE_PROCESS_H 1/' \
-e 's/.* HAVE_STDLIB_H$/#define HAVE_STDLIB_H 1/' \
-e 's/.* HAVE_STRING_H$/#define HAVE_STRING_H 1/' \
-e 's/.* HAVE_SYS_STAT_H$/#define HAVE_SYS_STAT_H 1/' \
-e 's/.* HAVE_SYS_TYPES_H$/#define HAVE_SYS_TYPES_H 1/' \
-e 's/.* HAVE_WIN32$/#define HAVE_WIN32 1/' \
-e 's/.* HAVE_WINSOCK2_H$/#define HAVE_WINSOCK2_H 1/' \
-e 's/.* HOST_CPU$/#define HOST_CPU "i686"/' \
-e 's/.* LIBDIR$/#ifdef _DEBUG\n# define LIBDIR PREFIX "\\\\debug\\\\lib"\n#else\n# define LIBDIR PREFIX "\\\\lib"\n#endif/' \
-e 's/.* LOCALEDIR$/#define LOCALEDIR PREFIX "\\\\share\\\\locale"/' \
-e "s/.* PACKAGE$/#define PACKAGE \"$PACKAGE\"/" \
-e 's/.* PACKAGE_BUGREPORT$/#define PACKAGE_BUGREPORT "http:\/\/bugzilla.gnome.org\/enter_bug.cgi?product=GStreamer"/' \
-e "s/.* PACKAGE_NAME$/#define PACKAGE_NAME \"$PACKAGE_NAME\"/" \
-e "s/.* PACKAGE_STRING$/#define PACKAGE_STRING \"$PACKAGE_STRING\"/" \
-e 's/.* PACKAGE_TARNAME$/#define PACKAGE_TARNAME "'$PACKAGE_TARNAME'"/' \
-e 's/.* PACKAGE_VERSION$/#define PACKAGE_VERSION "'$PACKAGE_VERSION'"/' \
-e 's/.* PLUGINDIR$/#ifdef _DEBUG\n# define PLUGINDIR PREFIX "\\\\debug\\\\lib\\\\gstreamer-0.10"\n#else\n# define PLUGINDIR PREFIX "\\\\lib\\\\gstreamer-0.10"\n#endif/' \
-e 's/.* USE_BINARY_REGISTRY$/#define USE_BINARY_REGISTRY/' \
-e 's/.* VERSION$/#define VERSION "'$VERSION'"/' \
-e "s/.* DEFAULT_AUDIOSINK$/#define DEFAULT_AUDIOSINK \"directaudiosink\"/" \
-e "s/.* DEFAULT_AUDIOSRC$/#define DEFAULT_AUDIOSRC \"audiotestsrc\"/" \
-e "s/.* DEFAULT_VIDEOSRC$/#define DEFAULT_VIDEOSRC \"videotestsrc\"/" \
-e "s/.* DEFAULT_VISUALIZER$/#define DEFAULT_VISUALIZER \"goom\"/" \
config.h.in >win32/common/config.h-new
2002-02-08 20:12:28 +00:00
AC_OUTPUT
2007-02-28 19:30:35 +00:00
AG_GST_OUTPUT_PLUGINS