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 Bad Plug-ins, 0.10.8.1,
7 http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
12 dnl initialize automake
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([docs/plugins/gst-plugins-bad-plugins-docs.sgml])
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_PLUGINS_BAD_VERSION_MAJOR.$GST_PLUGINS_BAD_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.11.5])
62 AM_GNU_GETTEXT([external])
63 AG_GST_GETTEXT([gst-plugins-bad-$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 AG_GST_ARG_WITH_PLUGINS
80 AG_GST_ARG_ENABLE_EXTERNAL
82 AG_GST_ARG_ENABLE_EXPERIMENTAL
84 dnl *** checks for platform ***
86 dnl * hardware/architecture *
88 dnl common/m4/gst-arch.m4
92 dnl Determine endianness
95 dnl *** checks for programs ***
100 dnl determine c++ compiler
102 dnl determine if c++ is available on this system
103 AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
107 dnl check if the compiler supports '-c' and '-o' options
110 dnl check if the compiler supports do while(0) macros
111 AG_GST_CHECK_DOWHILE_MACROS
113 AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
114 AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
116 dnl check for documentation tools
118 AS_PATH_PYTHON([2.1])
119 AG_GST_PLUGIN_DOCS([1.3],[2.1])
121 dnl *** checks for libraries ***
123 dnl check for libm, for sin() etc.
127 dnl *** checks for header files ***
129 AC_CHECK_HEADERS([unistd.h], HAVE_UNISTD_H=yes)
130 AM_CONDITIONAL(HAVE_UNISTD_H, test "x$HAVE_UNISTD_H" = "xyes")
132 if test "x$HAVE_UNISTD_H" != "xyes"; then
133 GST_PLUGINS_SELECTED=`echo $GST_PLUGINS_SELECTED | $SED -e s/festival//`
139 dnl *** checks for types/defines ***
141 dnl Check for FIONREAD ioctl declaration
145 dnl *** checks for structures ***
147 dnl *** checks for compiler characteristics ***
148 dnl check if we have GCC inline-asm
149 AS_GCC_INLINE_ASSEMBLY([HAVE_GCC_ASM=yes], [HAVE_GCC_ASM=no])
150 if test x$HAVE_GCC_ASM = xyes ; then
151 AC_DEFINE(HAVE_GCC_ASM, 1,
152 [Define if compiler supports gcc inline assembly])
154 AM_CONDITIONAL(HAVE_GCC_ASM, test "x$HAVE_GCC_ASM" = "xyes")
156 dnl *** checks for library functions ***
158 dnl *** checks for dependency libraries ***
161 AG_GST_GLIB_CHECK([2.6])
163 dnl liboil is required
164 PKG_CHECK_MODULES(LIBOIL, liboil-0.3 >= 0.3.8, HAVE_LIBOIL=yes, HAVE_LIBOIL=no)
165 if test "x$HAVE_LIBOIL" != "xyes"; then
166 AC_ERROR([liboil-0.3.8 or later is required])
169 dnl checks for gstreamer
170 dnl uninstalled is selected preferentially -- see pkg-config(1)
171 AG_GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ], yes)
172 AG_GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ], yes)
173 AG_GST_CHECK_GST_GDP($GST_MAJORMINOR, [$GST_REQ], yes)
174 AG_GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQ], no)
175 AG_GST_CHECK_GST_CONTROLLER($GST_MAJORMINOR, [$GST_REQ], yes)
176 AG_GST_CHECK_GST_PLUGINS_BASE($GST_MAJORMINOR, [$GSTPB_REQ], yes)
177 AM_CONDITIONAL(HAVE_GST_CHECK, test "x$HAVE_GST_CHECK" = "xyes")
179 GSTPB_PLUGINS_DIR=`$PKG_CONFIG gstreamer-plugins-base-$GST_MAJORMINOR --variable pluginsdir`
180 AC_SUBST(GSTPB_PLUGINS_DIR)
181 AC_MSG_NOTICE(Using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR)
183 dnl Check for documentation xrefs
184 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
185 GST_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-$GST_MAJORMINOR`"
186 GSTPB_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-plugins-base-$GST_MAJORMINOR`"
187 AC_SUBST(GLIB_PREFIX)
189 AC_SUBST(GSTPB_PREFIX)
191 dnl GTK is optional and used in examples
193 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.2.0, HAVE_GTK_22=yes, HAVE_GTK_22=no)
194 if test "x$HAVE_GTK_22" = "xyes"; then
196 GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
197 AC_SUBST(GTK_VERSION)
198 GTK_PREFIX=`$PKG_CONFIG --variable=prefix gdk-pixbuf-2.0`
199 AC_SUBST(GTK_BASE_DIR)
200 GDK_PIXBUF_LIBDIR=`$PKG_CONFIG --variable=libdir gdk-pixbuf-2.0`
201 GDK_PIXBUF_PREFIXDIR=`$PKG_CONFIG --variable=prefix gdk-pixbuf-2.0`
202 AC_SUBST(GTK_BASE_DIR)
204 PKG_CHECK_MODULES(GTK2, gtk+-2.0, HAVE_GTK_20=yes, HAVE_GTK_20=no)
206 if test "x$HAVE_GTK_20" = "xyes"; then
209 GTK_CFLAGS=$GTK2_CFLAGS
214 AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
216 dnl libglade is optional and only used in examples
218 PKG_CHECK_MODULES(GLADE, libglade-2.0 >= 2.6.0, HAVE_GLADE=yes, HAVE_GLADE=no)
220 AC_SUBST(GLADE_CFLAGS)
222 AM_CONDITIONAL(HAVE_GLADE, test "x$HAVE_GLADE" = "xyes")
224 dnl set license and copyright notice
226 AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
227 AC_SUBST(GST_LICENSE)
229 dnl set location of plugin directory
232 dnl define an ERROR_CFLAGS Makefile variable
233 AG_GST_SET_ERROR_CFLAGS($GST_CVS)
235 dnl define an ERROR_CXXFLAGS Makefile variable
236 AG_GST_SET_ERROR_CXXFLAGS($GST_CVS)
238 dnl define correct level for debugging messages
239 AG_GST_SET_LEVEL_DEFAULT($GST_CVS)
241 dnl *** plug-ins to include ***
243 dnl these are all the gst plug-ins, compilable without additional libs
244 AG_GST_CHECK_PLUGIN(aiffparse)
245 AG_GST_CHECK_PLUGIN(app)
246 AG_GST_CHECK_PLUGIN(bayer)
247 AG_GST_CHECK_PLUGIN(cdxaparse)
248 AG_GST_CHECK_PLUGIN(dccp)
249 AG_GST_CHECK_PLUGIN(deinterlace)
250 AG_GST_CHECK_PLUGIN(deinterlace2)
251 AG_GST_CHECK_PLUGIN(dvdspu)
252 AG_GST_CHECK_PLUGIN(festival)
253 AG_GST_CHECK_PLUGIN(filter)
254 AG_GST_CHECK_PLUGIN(flv)
255 AG_GST_CHECK_PLUGIN(freeze)
256 AG_GST_CHECK_PLUGIN(h264parse)
257 AG_GST_CHECK_PLUGIN(librfb)
258 AG_GST_CHECK_PLUGIN(modplug)
259 AG_GST_CHECK_PLUGIN(mpegdemux)
260 AG_GST_CHECK_PLUGIN(mpegtsparse)
261 AG_GST_CHECK_PLUGIN(mpegtsmux)
262 AG_GST_CHECK_PLUGIN(mpeg4videoparse)
263 AG_GST_CHECK_PLUGIN(mpegvideoparse)
264 AG_GST_CHECK_PLUGIN(mve)
265 AG_GST_CHECK_PLUGIN(nsf)
266 AG_GST_CHECK_PLUGIN(nuvdemux)
267 AG_GST_CHECK_PLUGIN(pcapparse)
268 AG_GST_CHECK_PLUGIN(rawparse)
269 AG_GST_CHECK_PLUGIN(real)
270 AG_GST_CHECK_PLUGIN(rtpmanager)
271 AG_GST_CHECK_PLUGIN(scaletempo)
272 AG_GST_CHECK_PLUGIN(sdp)
273 AG_GST_CHECK_PLUGIN(selector)
274 AG_GST_CHECK_PLUGIN(speed)
275 AG_GST_CHECK_PLUGIN(speexresample)
276 AG_GST_CHECK_PLUGIN(subenc)
277 AG_GST_CHECK_PLUGIN(stereo)
278 AG_GST_CHECK_PLUGIN(tta)
279 AG_GST_CHECK_PLUGIN(videosignal)
280 AG_GST_CHECK_PLUGIN(vmnc)
281 AG_GST_CHECK_PLUGIN(y4m)
283 dnl *** plug-ins to exclude ***
285 dnl see if we can build C++ plug-ins
286 if test "x$HAVE_CXX" != "xyes"; then
287 AC_MSG_WARN([Not compiling plug-ins requiring C++ compiler])
288 AG_GST_DISABLE_PLUGIN(modplug)
291 dnl real plugin only works on i386 and x86_64 for the time being.
292 if test "x$HAVE_CPU_I386" != "xyes" && test "x$HAVE_CPU_X86_64" != "xyes"; then
293 AC_MSG_WARN([Not building real plugin, only works on 32bit and 64bit x86 platforms])
294 AG_GST_DISABLE_PLUGIN(real)
297 dnl disable experimental plug-ins
298 if test "x$BUILD_EXPERIMENTAL" != "xyes"; then
299 AG_GST_DISABLE_PLUGIN(deinterlace2)
302 dnl disable gst plugins we might not be able to build on this
303 dnl platform: librfb (ugly but minimally invasive)
304 dnl FIXME: maybe move to sys, or make work with winsock2
305 AC_CHECK_HEADERS([sys/socket.h], HAVE_SYS_SOCKET_H=yes)
306 AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
308 dnl needed for festival
309 AM_CONDITIONAL(HAVE_WINSOCK2_H, test "x$HAVE_WINSOCK2_H" = "xyes")
311 if test "x$HAVE_SYS_SOCKET_H" != "xyes"; then
312 AG_GST_DISABLE_PLUGIN(librfb)
315 dnl *** sys plug-ins ***
317 dnl check for QuickTime
318 translit(dnm, m, l) AM_CONDITIONAL(USE_QUICKTIME, true)
319 AG_GST_CHECK_FEATURE(QUICKTIME, [QuickTime wrapper], qtwrapper, [
320 AC_CHECK_HEADER(QuickTime/Movies.h, HAVE_QUICKTIME="yes", HAVE_QUICKTIME="no")
323 dnl check for Video CD
324 translit(dnm, m, l) AM_CONDITIONAL(USE_VCD, true)
325 AG_GST_CHECK_FEATURE(VCD, [Video CD], vcdsrc, [
326 AC_CHECK_HEADER(linux/cdrom.h, HAVE_VCD="yes", HAVE_VCD="no")
329 dnl *** ext plug-ins ***
330 dnl keep this list sorted alphabetically !
332 if test "x$BUILD_EXTERNAL" = "xyes"; then
335 translit(dnm, m, l) AM_CONDITIONAL(USE_ALSA, true)
336 AG_GST_CHECK_FEATURE(ALSA, [alsa plug-ins], gstalsa, [
337 PKG_CHECK_MODULES(ALSA, alsa >= 0.9.1, [
339 AC_SUBST(ALSA_CFLAGS)
342 AM_PATH_ALSA(0.9.1, HAVE_ALSA="yes", HAVE_ALSA="no")
347 translit(dnm, m, l) AM_CONDITIONAL(USE_AMRWB, true)
348 AG_GST_CHECK_FEATURE(AMRWB, [amrwb library], amrwb, [
349 AG_GST_CHECK_LIBHEADER(AMRWB, amrwb,
353 AC_SUBST(AMRWB_LIBS))
357 translit(dnm, m, l) AM_CONDITIONAL(USE_APEXSINK, true)
358 AG_GST_CHECK_FEATURE(APEXSINK, [AirPort Express Wireless sink], apexsink, [
361 # The big search for OpenSSL
362 # copied from openssh's configure.ac
364 [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
366 if test "x$withval" != "xno" ; then
372 AC_SEARCH_LIBS(socket, [socket])
373 AC_SEARCH_LIBS(gethostbyname, [nsl])
376 saved_LDFLAGS="$LDFLAGS"
377 saved_CPPFLAGS="$CPPFLAGS"
378 if test "x$prefix" != "xNONE" ; then
379 tryssldir="$tryssldir $prefix"
381 AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
382 for ssldir in $tryssldir "" /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/athena /usr/pkg /opt /opt/openssl ; do
383 CPPFLAGS="$saved_CPPFLAGS"
384 LDFLAGS="$saved_LDFLAGS"
385 LIBS="$saved_LIBS -lssl -lcrypto"
387 # Skip directories if they don't exist
388 if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
391 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
392 # Try to use $ssldir/lib if it exists, otherwise
394 if test -d "$ssldir/lib" ; then
395 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
396 if test ! -z "$need_dash_r" ; then
397 LDFLAGS="-R$ssldir/lib $LDFLAGS"
400 LDFLAGS="-L$ssldir $saved_LDFLAGS"
401 if test ! -z "$need_dash_r" ; then
402 LDFLAGS="-R$ssldir $LDFLAGS"
405 # Try to use $ssldir/include if it exists, otherwise
407 if test -d "$ssldir/include" ; then
408 CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
410 CPPFLAGS="-I$ssldir $saved_CPPFLAGS"
414 # Basic test to check for compatible version and correct linking
415 # *does not* test for RSA - that comes later.
419 #include <openssl/rand.h>
423 memset(a, 0, sizeof(a));
424 RAND_add(a, sizeof(a), sizeof(a));
425 return(RAND_status() <= 0);
434 if test ! -z "$found_crypto" ; then
439 if test -z "$found_crypto" ; then
442 if test -z "$ssldir" ; then
446 ac_cv_openssldir=$ssldir
448 if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ;
450 dnl Need to recover ssldir - test above runs in subshell
451 ssldir=$ac_cv_openssldir
452 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
453 # Try to use $ssldir/lib if it exists, otherwise
455 if test -d "$ssldir/lib" ; then
456 APEXSINK_LIBS="-L$ssldir/lib $LDFLAGS"
457 if test ! -z "$need_dash_r" ; then
458 APEXSINK_LIBS="-R$ssldir/lib $LDFLAGS"
461 APEXSINK_LDFLAGS="-L$ssldir $LDFLAGS"
462 if test ! -z "$need_dash_r" ; then
463 APEXSINK_LIBS="-R$ssldir $LDFLAGS"
466 # Try to use $ssldir/include if it exists, otherwise
468 if test -d "$ssldir/include" ; then
469 APEXSINK_CFLAGS="-I$ssldir/include $CPPFLAGS"
471 APEXSINK_CFLAGS="-I$ssldir $CPPFLAGS"
475 APEXSINK_LIBS="$APEXSINK_LIBS $LIBS"
476 AC_SUBST(APEXSINK_LIBS)
477 AC_SUBST(APEXSINK_CFLAGS)
478 CPPFLAGS="$saved_CPPFLAGS"
479 LDFLAGS="$saved_LDFLAGS"
484 translit(dnm, m, l) AM_CONDITIONAL(USE_BZ2, true)
485 AG_GST_CHECK_FEATURE(BZ2, [bz2 library], bz2, [
486 AG_GST_CHECK_LIBHEADER(BZ2, bz2, BZ2_bzCompress, ,bzlib.h, BZ2_LIBS="-lbz2")
491 #translit(dnm, m, l) AM_CONDITIONAL(USE_CAIRO, true)
492 #AG_GST_CHECK_FEATURE(CAIRO, [cairo plug-in], cairo, [
493 # PKG_CHECK_MODULES(CAIRO, cairo >= 1.0 glitz-glx, HAVE_CAIRO=yes, [
497 # AC_SUBST(CAIRO_CFLAGS)
498 # AC_SUBST(CAIRO_LIBS)
502 translit(dnm, m, l) AM_CONDITIONAL(USE_CDAUDIO, true)
503 AG_GST_CHECK_FEATURE(CDAUDIO, [cdaudio], cdaudio, [
504 AG_GST_CHECK_CONFIGPROG(CDAUDIO, libcdaudio-config)
505 AC_SUBST(CDAUDIO_CFLAGS)
506 AC_SUBST(CDAUDIO_LIBS)
510 translit(dnm, m, l) AM_CONDITIONAL(USE_CELT, true)
511 AG_GST_CHECK_FEATURE(CELT, [celt], celt, [
512 PKG_CHECK_MODULES(CELT, celt >= 0.4.0, [
517 AC_SUBST(CELT_CFLAGS)
522 translit(dnm, m, l) AM_CONDITIONAL(USE_DC1394, true)
523 AG_GST_CHECK_FEATURE(DC1394, [libdc1394], dc1394, [
524 PKG_CHECK_MODULES(LIBDC1394, libdc1394-2 >= 2.0.0, [
525 if test -z "`pkg-config --modversion libdc1394-2 | grep 2.0.0-rc`"; then
535 AC_SUBST(LIBDC1394_CFLAGS)
536 AC_SUBST(LIBDC1394_LIBS)
540 dnl **** DirectFB ****
541 translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECTFB, true)
542 AG_GST_CHECK_FEATURE(DIRECTFB, [directfb], dfbvideosink , [
543 PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.24, HAVE_DIRECTFB="yes", [
550 translit(dnm, m, l) AM_CONDITIONAL(USE_DIRAC, true)
551 AG_GST_CHECK_FEATURE(DIRAC, [dirac], dirac, [
552 PKG_CHECK_MODULES(DIRAC, dirac >= 0.10, HAVE_DIRAC="yes", [
559 translit(dnm, m, l) AM_CONDITIONAL(USE_DTS, true)
560 AG_GST_CHECK_FEATURE(DTS, [dts library], dtsdec, [
562 AG_GST_CHECK_LIBHEADER(DTS, dts_pic, dts_init, -lm, dts.h,
563 DTS_LIBS="-ldts_pic -lm", HAVE_DTS="no")
564 if test $HAVE_DTS = "no"; then
565 AG_GST_CHECK_LIBHEADER(DTS, dca, dca_init, -lm, dts.h,
566 DTS_LIBS="-ldca -lm")
572 translit(dnm, m, l) AM_CONDITIONAL(USE_DIVX, true)
573 AG_GST_CHECK_FEATURE(DIVX, [divx plugins], divx, [
575 AC_CHECK_HEADER(encore2.h, , [
576 AC_MSG_WARN([Divx4linux encore headers not found])
579 if [ test x$HAVE_DIVX = xyes ]; then
580 AC_MSG_CHECKING([Checking for valid divx4linux encore version])
583 #if ENCORE_VERSION != 20021024
584 #error Wrong version of divx encore libraries
594 AC_MSG_WARN([Wrong version of divx4linux installed])
597 if [ test x$HAVE_DIVX = xyes ]; then
598 AC_CHECK_HEADER(decore.h, , [
599 AC_MSG_WARN([Divx4linux decoder headers not found])
603 if [ test x$HAVE_DIVX = xyes ]; then
604 AC_MSG_CHECKING([Checking for valid divx4linux decore version])
607 #if DECORE_VERSION != 20021112
608 #error Wrong version of divx decore libraries
618 AC_MSG_WARN([Wrong version of divx4linux installed])
622 if test x$HAVE_DIVX = xyes; then
623 AC_CHECK_LIB(divxencore, encore, , [
624 AC_MSG_WARN([Divx4linux encore libs not found])
628 if test x$HAVE_DIVX = xyes; then
629 AC_CHECK_LIB(divxdecore, decore, , [
630 AC_MSG_WARN([Divx4linux decore libs not found])
634 if test x$HAVE_DIVX = xyes; then
635 DIVXENC_LIBS="-ldivxencore -lm"
636 DIVXDEC_LIBS="-ldivxdecore -lm"
637 AC_SUBST(DIVXENC_LIBS)
638 AC_SUBST(DIVXDEC_LIBS)
642 dnl *** dvdnav for resindvd ***
643 USE_DVDNAV=$BUILD_EXPERIMENTAL
644 translit(dnm, m, l) AM_CONDITIONAL(USE_DVDNAV, true)
645 AG_GST_CHECK_FEATURE(DVDNAV, [dvdnav library], resindvd, [
646 translit(dnm, m, l) AC_SUBST(DVDNAV_LIBS)
647 translit(dnm, m, l) AC_SUBST(DVDNAV_CFLAGS)
648 AG_GST_CHECK_CONFIGPROG(DVDNAV, dvdnav-config)
649 if test x"$HAVE_DVDNAV" = x"yes"; then
651 DVDNAV_VERSION=`dvdnav-config --version|head -n 1|sed 's/^.*) //'|sed 's/ (.*)//'`
652 DVDNAV_MAJOR=`echo $DVDNAV_VERSION | cut -d. -f1 | sed s/[a-zA-Z\-].*//g`
653 DVDNAV_MINOR=`echo $DVDNAV_VERSION | cut -d. -f2 | sed s/[a-zA-Z\-].*//g`
654 DVDNAV_MICRO=`echo $DVDNAV_VERSION | cut -d. -f3 | sed s/[a-zA-Z\-].*//g`
655 if [[ "$DVDNAV_MAJOR" -eq "0" ]] && \
656 [[ "$DVDNAV_MINOR" -lt "1" ]]; then
657 AC_MSG_WARN([libdvdnav >= 0.1.7 is required, you have $DVDNAV_VERSION])
659 elif [[ "$DVDNAV_MAJOR" -eq "0" ]] && \
660 [[ "$DVDNAV_MINOR" -eq "1" ]] && \
661 [[ "$DVDNAV_MICRO" -lt "7" ]]; then
662 AC_MSG_WARN([libdvdnav >= 0.1.7 is required, you have $DVDNAV_VERSION])
664 elif [[ "$DVDNAV_MAJOR" -eq "0" ]]; then
665 AC_DEFINE(DVDNAV_OLD, 1, [Define if an old libdvdnav is used])
668 AS_SCRUB_INCLUDE(DVDNAV_CFLAGS)
672 translit(dnm, m, l) AM_CONDITIONAL(USE_METADATA, true)
673 AG_GST_CHECK_FEATURE(METADATA, [METADATA muxer and demuxer], metadata, [
675 PKG_CHECK_MODULES(EXIF, libexif >= 0.6.16, HAVE_EXIF="yes", [
678 PKG_CHECK_MODULES(IPTC, libiptcdata >= 1.0.2, HAVE_IPTC="yes", [
681 PKG_CHECK_MODULES(XMP, exempi-2.0, HAVE_XMP="yes", [
684 PKG_CHECK_MODULES(XMP_1_99_5, exempi-2.0 >= 1.99.5, XMP_CFLAGS="-DXMP_1_99_5 $XMP_CFLAGS", AC_MSG_RESULT(no))
685 if test x$HAVE_EXIF = xyes; then
686 METADATA_CFLAGS="-DHAVE_EXIF $EXIF_CFLAGS $METADATA_CFLAGS"
687 METADATA_LIBS="$EXIF_LIBS $METADATA_LIBS -lm"
690 if test x$HAVE_IPTC = xyes; then
691 METADATA_CFLAGS="-DHAVE_IPTC $IPTC_CFLAGS $METADATA_CFLAGS"
692 METADATA_LIBS="$IPTC_LIBS $METADATA_LIBS"
695 if test x$HAVE_XMP = xyes; then
696 METADATA_CFLAGS="-DHAVE_XMP $XMP_CFLAGS $METADATA_CFLAGS"
697 METADATA_LIBS="$XMP_LIBS $METADATA_LIBS"
700 if test x$HAVE_METADATA = xno; then
701 AC_MSG_WARN(no of metadata libraries (exif, iptc or xmp) found)
703 dnl metadata plugin will parse whole chunks anyway
705 AC_SUBST(METADATA_CFLAGS)
706 AC_SUBST(METADATA_LIBS)
709 dnl **** Free AAC Encoder (FAAC) ****
710 translit(dnm, m, l) AM_CONDITIONAL(USE_FAAC, true)
711 AG_GST_CHECK_FEATURE(FAAC, [AAC encoder plug-in], faac, [
712 AG_GST_CHECK_LIBHEADER(FAAC, faac, faacEncOpen, -lm, faac.h,
713 FAAC_LIBS="-lfaac -lm")
714 AS_SCRUB_INCLUDE(FAAC_CFLAGS)
718 dnl **** Free AAC Decoder (FAAD) ****
719 translit(dnm, m, l) AM_CONDITIONAL(USE_FAAD, true)
720 AG_GST_CHECK_FEATURE(FAAD, [AAC decoder plug-in], faad, [
722 AG_GST_CHECK_LIBHEADER(FAAD, faad, faacDecOpen, -lm, faad.h,
723 FAAD_LIBS="-lfaad -lm", HAVE_FAAD="no")
724 if test $HAVE_FAAD = "no"; then
725 AG_GST_CHECK_LIBHEADER(FAAD, faad, NeAACDecOpen, -lm, neaacdec.h,
726 [ FAAD_LIBS="-lfaad -lm"
727 AC_DEFINE(FAAD_IS_NEAAC, 1, [Define if AAC is using new api prefix])
731 if test $HAVE_FAAD = "yes"; then
732 AC_MSG_CHECKING([Checking for FAAD >= 2.0])
733 AC_TRY_COMPILE([#include <faad.h>], [
734 #if !defined(FAAD2_VERSION) || !defined(FAAD_FMT_DOUBLE)
737 /* Release candidate of 2.0 is not good enough for us. This field
738 * was added only in 2.0 final and does not exist in 2.0-RC3 */
739 faacDecConfiguration conf; conf.dontUpSampleImplicitSBR = 1;
749 AS_SCRUB_INCLUDE(FAAD_CFLAGS)
751 AC_SUBST(FAAD_IS_NEAAC)
755 translit(dnm, m, l) AM_CONDITIONAL(USE_FBDEV, true)
756 AG_GST_CHECK_FEATURE(FBDEV, [linux framebuffer], fbdevsink, [
757 if test "x$HAVE_FBDEV" != "xyes"; then
758 AC_CHECK_HEADER([linux/fb.h], HAVE_FBDEV=yes, HAVE_FBDEV=no)
763 translit(dnm, m, l) AM_CONDITIONAL(USE_GSM, true)
764 AG_GST_CHECK_FEATURE(GSM, [GSM library], gsmenc gsmdec, [
765 AG_GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm.h, GSM_LIBS="-lgsm")
766 if test $HAVE_GSM != "yes"; then
767 AG_GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm/gsm.h, GSM_LIBS="-lgsm")
768 if test $HAVE_GSM = "yes"; then
769 AC_DEFINE(GSM_HEADER_IN_SUBDIR, 1, [Define if GSM header in gsm/ subdir])
776 dnl AM_PATH_IVORBIS only takes two options
777 translit(dnm, m, l) AM_CONDITIONAL(USE_IVORBIS, true)
778 AG_GST_CHECK_FEATURE(IVORBIS, [integer vorbis plug-in], ivorbisdec, [
781 AC_CHECK_LIB(vorbisidec, vorbis_block_init,
782 [IVORBIS_LIBS=-lvorbisidec
786 IVORBIS_CFLAGS="-D_ARM_ASSEM_ $IVORBIS_CFLAGS"
790 AC_SUBST(IVORBIS_LIBS)
791 AC_SUBST(IVORBIS_CFLAGS)
795 translit(dnm, m, l) AM_CONDITIONAL(USE_JACK, true)
796 AG_GST_CHECK_FEATURE(JACK, Jack, jack, [
797 PKG_CHECK_MODULES(JACK, jack >= 0.99.10, HAVE_JACK="yes", HAVE_JACK="no")
798 AC_SUBST(JACK_CFLAGS)
803 translit(dnm, m, l) AM_CONDITIONAL(USE_LADSPA, true)
804 AG_GST_CHECK_FEATURE(LADSPA, [ladspa], ladspa, [
805 AC_CHECK_HEADER(ladspa.h, HAVE_LADSPA="yes", HAVE_LADSPA="no")
806 save_cflags="$CFLAGS"
807 CFLAGS="$CFLAGS -D_GNU_SOURCE"
809 AC_CHECK_LIB(dl, dlopen,
812 CFLAGS="$save_cflags"
814 AC_SUBST(LADSPA_LIBS)
817 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBMMS, true)
818 AG_GST_CHECK_FEATURE(LIBMMS, [mms protocol library], libmms, [
819 dnl check with pkg-config first
820 PKG_CHECK_MODULES(LIBMMS, libmms >= 0.2, HAVE_LIBMMS="yes", [
825 AC_SUBST(LIBMMS_LIBS)
827 dnl *** mjpegtools version info ***
828 dnl some may prefer older version (given quirks above)
829 dnl hm, no version info seems available within mjpegtools headers
830 dnl and API really moves along
832 PKG_CHECK_EXISTS(mjpegtools >= 1.6.1.93 mjpegtools < 1.8.0, [
835 PKG_CHECK_EXISTS(mjpegtools >= 1.8.0 mjpegtools < 1.9.0, [
838 PKG_CHECK_MODULES(MJPEG, mjpegtools >= 1.9.0, [
839 dnl logging API changed in release candidates
842 CFLAGS="$MJPEG_CFLAGS"
843 LIBS="$LIBS $MJPEG_LIBS -lmjpegutils -lm -lpthread"
844 AC_CHECK_FUNC(mjpeg_loglev_t, [
856 AC_DEFINE_UNQUOTED(GST_MJPEGTOOLS_API, $mjpegtools_api,
857 [mjpegtools API evolution])
860 translit(dnm, m, l) AM_CONDITIONAL(USE_MPEG2ENC, true)
861 AG_GST_CHECK_FEATURE(MPEG2ENC, [mpeg2enc], mpeg2enc, [
863 dnl we require a c++ compiler for this one
864 if [ test x$HAVE_CXX = xyes ]; then
865 dnl libmpeg2enc was first included in mjpegtools-1.6.2-rc3 (1.6.1.92)
866 dnl since many distros include mjpegtools specifically without mplex
867 dnl and mpeg2enc, we check for mpeg2enc on its own, too.
868 PKG_CHECK_MODULES(MPEG2ENC, mjpegtools >= 1.6.1.93, [
869 dnl HACK because mpeg2enc 1.8.0 header files have a spurious 'include config.h'
871 dnl switch over to c++ to test things
873 OLD_CPPFLAGS="$CPPFLAGS"
875 CPPFLAGS_GOOD="$CPPFLAGS $MPEG2ENC_CFLAGS"
876 CPPFLAGS="$CPPFLAGS_GOOD -I."
878 mpeg2enc_headers_ok=no
879 AC_CHECK_HEADER([mpeg2encoder.hh], [
880 MPEG2ENC_LIBS="$MPEG2ENC_LIBS -lmpeg2encpp -lm -lpthread"
882 LIBS="$LIBS $MPEG2ENC_LIBS"
883 AC_MSG_CHECKING([for valid mpeg2enc objects])
885 #include <mpeg2encoder.hh>
886 #include <mpeg2encoptions.hh>
892 MPEG2EncOptions *options = new MPEG2EncOptions ();
893 MPEG2Encoder *encoder = new MPEG2Encoder (*options);
898 dnl so far so good, let's check more things:
899 dnl mjpegtools-1.8.0 does not install the required
900 dnl mpeg2syntaxcodes.h header by default, and a new release
901 dnl is not in sight, so check for this oversight in case
902 dnl distros or folks have fixed this themselves
903 if test "$mjpegtools_api" -ge "10800"; then
904 AC_CHECK_HEADER([mpeg2syntaxcodes.h], [
905 mpeg2enc_headers_ok=yes
907 mpeg2enc_headers_ok=no
910 mpeg2enc_headers_ok=yes
912 if test "x$mpeg2enc_headers_ok" = "xyes"; then
915 CPP_FLAGS="$CPPFLAGS_GOOD"
916 AC_SUBST(MPEG2ENC_CFLAGS)
917 AC_SUBST(MPEG2ENC_LIBS)
924 CPPFLAGS="$OLD_CPPFLAGS"
933 translit(dnm, m, l) AM_CONDITIONAL(USE_MPLEX, true)
934 AG_GST_CHECK_FEATURE(MPLEX, [mplex], mplex, [
936 dnl we require a c++ compiler for this one
937 if [ test x$HAVE_CXX = xyes ]; then
938 dnl libmplex was first included in mjpegtools-1.6.2-rc4 (1.6.1.93)
939 dnl since many distros include mjpegtools specifically without mplex
940 dnl and mpeg2enc, we check for mplex on its own, too.
941 dnl libmplex < 1.9rc? has fuzzy ABI, valgrind and other problems
942 PKG_CHECK_MODULES(MPLEX, mjpegtools >= 1.9.0, [
943 dnl switch over to c++ to test things
945 OLD_CPPFLAGS="$CPPFLAGS"
946 CPPFLAGS="$CPPFLAGS $MPLEX_CFLAGS"
947 AC_CHECK_HEADER(interact.hpp, [
948 MPLEX_LIBS="$MPLEX_LIBS -lmplex2 -lm"
950 LIBS="$LIBS $MPLEX_LIBS"
951 dnl older libmplex uses off_t SegmentSize (), which leads to fuzzy ABI;
952 dnl don't want this here
953 AC_MSG_CHECKING([for valid mplex objects])
956 #include <interact.hpp>
957 #include <outputstrm.hpp>
958 #include <multiplexor.hpp>
963 class TestOutputStream : public OutputStream {
965 TestOutputStream () : OutputStream () { }
966 void Write (uint8_t *a, unsigned int b) { }
967 void NextSegment () { }
968 uint64_t SegmentSize () { }
972 MultiplexJob *job = new MultiplexJob ();
973 vector<IBitStream *> inputs;
974 job->SetupInputStreams (inputs);
975 TestOutputStream *out = new TestOutputStream ();
976 Multiplexor *mux = new Multiplexor(*job, *out, NULL);
981 AC_SUBST(MPLEX_CFLAGS)
984 ], AC_MSG_RESULT(no))
987 CPPFLAGS="$OLD_CPPFLAGS"
994 translit(dnm, m, l) AM_CONDITIONAL(USE_MUSEPACK, true)
995 AG_GST_CHECK_FEATURE(MUSEPACK, [musepackdec], musepack, [
996 AC_CHECK_HEADER([mpc/mpcdec.h], [
998 MUSEPACK_LIBS="-lmpcdec"
999 AC_SUBST(MUSEPACK_LIBS)
1000 ], [AC_CHECK_HEADER([mpcdec/mpcdec.h], [
1002 MUSEPACK_LIBS="-lmpcdec"
1003 AC_DEFINE(MPC_IS_OLD_API, 1, [Define if the old MusePack API is used])
1004 AC_SUBST(MUSEPACK_LIBS)
1005 ], [HAVE_MUSEPACK="no"])])
1008 dnl *** musicbrainz ***
1009 translit(dnm, m, l) AM_CONDITIONAL(USE_MUSICBRAINZ, true)
1010 AG_GST_CHECK_FEATURE(MUSICBRAINZ, [musicbrainz tag generation], musicbrainz, [
1011 PKG_CHECK_MODULES(MUSICBRAINZ, libmusicbrainz >= 2.1.0, HAVE_MUSICBRAINZ="yes", HAVE_MUSICBRAINZ="no")
1012 AC_SUBST(MUSICBRAINZ_CFLAGS)
1013 AC_SUBST(MUSICBRAINZ_LIBS)
1017 translit(dnm, m, l) AM_CONDITIONAL(USE_MYTHTV, true)
1018 AG_GST_CHECK_FEATURE(MYTHTV, [MythTV client plugins], mythtvsrc, [
1019 PKG_CHECK_MODULES(GMYTH, gmyth >= 0.4 gmyth <= 0.7.99, HAVE_MYTHTV="yes", [
1023 AC_SUBST(GMYTH_CFLAGS)
1024 AC_SUBST(GMYTH_LIBS)
1028 translit(dnm, m, l) AM_CONDITIONAL(USE_NAS, true)
1029 AG_GST_CHECK_FEATURE(NAS, [nas plug-in], nassink, [
1032 if test "x$HAVE_X" = "xyes"; then
1033 save_cppflags=$CFLAGS
1034 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
1035 AG_GST_CHECK_LIBHEADER(NAS, audio, AuOpenServer, $X_LIBS, audio/audiolib.h,
1036 NAS_LIBS="$X_LIBS -laudio" NAS_CFLAGS="$X_CFLAGS")
1037 CPPFLAGS="$save_cppflags"
1039 AC_SUBST(NAS_CFLAGS)
1044 translit(dnm, m, l) AM_CONDITIONAL(USE_NEON, true)
1045 AG_GST_CHECK_FEATURE(NEON, [neon http client plugins], neonhttpsrc, [
1046 PKG_CHECK_MODULES(NEON, neon >= 0.26.0 neon <= 0.28.99, HAVE_NEON="yes", [
1050 AC_SUBST(NEON_CFLAGS)
1055 translit(dnm, m, l) AM_CONDITIONAL(USE_OFA, true)
1056 AG_GST_CHECK_FEATURE(OFA, [ofa plugins], ofa, [
1057 PKG_CHECK_MODULES(OFA, libofa >= 0.9.3, HAVE_OFA="yes", [
1061 AC_SUBST(OFA_CFLAGS)
1065 dnl *** timidity ***
1066 translit(dnm, m, l) AM_CONDITIONAL(USE_TIMIDITY, true)
1067 AG_GST_CHECK_FEATURE(TIMIDITY, [timidity midi soft synth plugin], timidity, [
1068 PKG_CHECK_MODULES(TIMIDITY, libtimidity, [
1069 HAVE_TIMIDITY="yes",
1070 AC_MSG_CHECKING([for timidity.cfg])
1072 if test -r /etc/timidity.cfg; then
1073 timidity_cfg=/etc/timidity.cfg
1074 elif test -r /etc/timidity/timidity.cfg; then
1075 timidity_cfg=/etc/timidity/timidity.cfg
1076 elif test -r /usr/share/timidity/timidity.cfg; then
1077 timidity_cfg=/usr/share/timidity/timidity.cfg
1078 elif test -r /usr/local/share/timidity/timidity.cfg; then
1079 timidity_cfg=/usr/local/share/timidity/timidity.cfg
1081 if test "x$timidity_cfg" != "x"; then
1082 AC_MSG_RESULT($timidity_cfg)
1083 AC_DEFINE_UNQUOTED(TIMIDITY_CFG, "$timidity_cfg", [Define location of timidity.cfg])
1085 AC_MSG_RESULT([not found])
1091 AC_SUBST(TIMIDITY_CFLAGS)
1092 AC_SUBST(TIMIDITY_LIBS)
1095 dnl *** wildmidi ***
1096 translit(dnm, m, l) AM_CONDITIONAL(USE_WILDMIDI, true)
1097 AG_GST_CHECK_FEATURE(WILDMIDI, [wildmidi midi soft synth plugin], wildmidi, [
1098 AC_CHECK_HEADER([wildmidi_lib.h],HAVE_WILDMIDI=yes, HAVE_WILDMIDI=no)
1099 if test "x$HAVE_WILDMIDI" = "xyes"; then
1101 WILDMIDI_LIBS=-lWildMidi
1102 AC_MSG_NOTICE(compiling gstWildMidi)
1106 AC_MSG_WARN(no WildMidi library found (libWildMidi))
1108 AC_SUBST(WILDMIDI_CFLAGS)
1109 AC_SUBST(WILDMIDI_LIBS)
1113 translit(dnm, m, l) AM_CONDITIONAL(USE_TWOLAME, true)
1114 AG_GST_CHECK_FEATURE(TWOLAME, [twolame], twolame, [
1115 PKG_CHECK_MODULES(TWOLAME, twolame >= 0.3.0, [
1116 HAVE_TWOLAME="yes"], [
1120 AC_SUBST(TWOLAME_CFLAGS)
1121 AC_SUBST(TWOLAME_LIBS)
1125 translit(dnm, m, l) AM_CONDITIONAL(USE_SDL, true)
1126 AG_GST_CHECK_FEATURE(SDL, [SDL plug-in], sdlvideosink sdlaudiosink, [
1127 AM_PATH_SDL(, HAVE_SDL=yes, HAVE_SDL=no)
1131 translit(dnm, m, l) AM_CONDITIONAL(USE_SNDFILE, true)
1132 AG_GST_CHECK_FEATURE(SNDFILE, [sndfile plug-in], sfsrc sfsink, [
1133 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.16, HAVE_SNDFILE="yes", HAVE_SNDFILE="no")
1134 AC_SUBST(SNDFILE_CFLAGS)
1135 AC_SUBST(SNDFILE_LIBS)
1138 dnl *** soundtouch ***
1139 translit(dnm, m, l) AM_CONDITIONAL(USE_SOUNDTOUCH, true)
1140 AG_GST_CHECK_FEATURE(SOUNDTOUCH, [soundtouch plug-in], soundtouch, [
1141 PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.0,
1142 HAVE_SOUNDTOUCH=yes,
1143 [PKG_CHECK_MODULES(SOUNDTOUCH, libSoundTouch,
1144 HAVE_SOUNDTOUCH=yes,
1145 HAVE_SOUNDTOUCH=no)])
1146 AC_SUBST(SOUNDTOUCH_CFLAGS)
1147 AC_SUBST(SOUNDTOUCH_LIBS)
1148 if test "x$HAVE_CXX" != "xyes"; then
1149 USE_SOUNDTOUCH=false
1150 AC_MSG_NOTICE([Not building soundtouch plugin: no C++ compiler found])
1155 translit(dnm, m, l) AM_CONDITIONAL(USE_SPC, true)
1156 AG_GST_CHECK_FEATURE(SPC, [spc decoder], spc, [
1157 AC_CHECK_HEADER(openspc.h, [
1158 AC_CHECK_LIB(openspc, OSPC_Init, [
1159 SPC_LIBS="-lopenspc"
1171 translit(dnm, m, l) AM_CONDITIONAL(USE_SWFDEC, true)
1172 AG_GST_CHECK_FEATURE(SWFDEC, [swfdec plug-in], swfdec, [
1173 PKG_CHECK_MODULES(SWFDEC, swfdec-0.3 >= 0.3.6, HAVE_SWFDEC=yes, [
1177 AC_SUBST(SWFDEC_CFLAGS)
1178 AC_SUBST(SWFDEC_LIBS)
1182 translit(dnm, m, l) AM_CONDITIONAL(USE_THEORADEC, true)
1183 AG_GST_CHECK_FEATURE(THEORADEC, [ogg theora codec], theoraexpdec, [
1184 PKG_CHECK_MODULES(THEORADEC, theoradec, HAVE_THEORADEC="yes", [
1188 AC_SUBST(THEORADEC_LIBS)
1189 AC_SUBST(THEORADEC_CFLAGS)
1192 dnl *** x264 (MPEG-4 part 10/h.264/AVC encoder) ***
1193 translit(dnm, m, l) AM_CONDITIONAL(USE_X264, true)
1194 AG_GST_CHECK_FEATURE(X264, [x264 plug-in], x264, [
1195 AG_GST_CHECK_LIBHEADER(X264, x264, x264_nal_encode, -lm, x264.h,
1196 AC_MSG_CHECKING([for uptodate x264 API version])
1197 dnl _stdint not yet generated, so no compiling
1201 #error "x264 build too old"
1205 X264_LIBS="$LDFLAGS -lx264 -lm"
1206 X264_CFLAGS="$CFLAGS"
1208 AC_SUBST(X264_CFLAGS)
1216 translit(dnm, m, l) AM_CONDITIONAL(USE_XVID, true)
1217 AG_GST_CHECK_FEATURE(XVID, [xvid plugins], xvid, [
1219 AC_CHECK_HEADER(xvid.h, [
1222 AC_CHECK_LIB(xvidcore, xvid_encore, [
1223 AC_CHECK_LIB(xvidcore, xvid_decore, [
1224 AC_CHECK_LIB(xvidcore, xvid_global, [
1225 AC_MSG_CHECKING([for uptodate XviD API version])
1226 AC_TRY_COMPILE([#include <xvid.h>], [
1227 #if XVID_API_MAJOR(XVID_API) != 4
1228 #error "Incompatible XviD API version"
1230 ],[ AC_MSG_RESULT(yes)
1231 XVID_LIBS="-lxvidcore -lm"
1234 ], AC_MSG_RESULT(no) )
1243 translit(dnm, m, l) AM_CONDITIONAL(USE_DVB, true)
1244 AG_GST_CHECK_FEATURE(DVB, [DVB Source], dvb, [
1245 AC_MSG_CHECKING([Checking for up to date dvb installation])
1246 AC_CHECK_HEADER(linux/dvb/frontend.h, [HAVE_DVB="yes"], [HAVE_DVB="no"])
1250 translit(dnm, m, l) AM_CONDITIONAL(USE_OSS4, true)
1251 AG_GST_CHECK_FEATURE(OSS4, [Open Sound System 4], oss4, [
1252 AC_MSG_CHECKING([Checking if we can build the OSS4 elements])
1253 AC_CHECK_HEADERS([fcntl.h sys/ioctl.h sys/stat.h sys/types.h],
1254 [test -z "$OSS4_MISSING_HEADER" && HAVE_OSS4="yes"],
1255 [OSS4_MISSING_HEADER="yes";HAVE_OSS4="no"])
1259 translit(dnm, m, l) AM_CONDITIONAL(USE_WININET, true)
1260 AG_GST_CHECK_FEATURE(WININET, [Windows internet library], wininet, [
1261 AC_MSG_CHECKING([Checking for windows internet support])
1262 AC_CHECK_HEADERS([windows.h wininet.h],
1263 [HAVE_WININET="yes"], [HAVE_WININET="no"])
1267 translit(dnm, m, l) AM_CONDITIONAL(USE_ACM, true)
1268 AG_GST_CHECK_FEATURE(ACM, [Windows ACM library], acm, [
1269 AC_MSG_CHECKING([Checking for ACM support])
1270 AC_CHECK_HEADERS([windows.h msacm.h],
1271 [HAVE_ACM="yes"], [HAVE_ACM="no"])
1276 dnl not building plugins with external dependencies,
1277 dnl but we still need to set the conditionals
1279 AM_CONDITIONAL(USE_QUICKTIME, false)
1280 AM_CONDITIONAL(USE_VCD, false)
1281 AM_CONDITIONAL(USE_ALSA, false)
1282 AM_CONDITIONAL(USE_AMRWB, false)
1283 AM_CONDITIONAL(USE_APEXSINK, false)
1284 AM_CONDITIONAL(USE_BZ2, false)
1285 AM_CONDITIONAL(USE_CDAUDIO, false)
1286 AM_CONDITIONAL(USE_CELT, false)
1287 AM_CONDITIONAL(USE_DC1394, false)
1288 AM_CONDITIONAL(USE_DIRECTFB, false)
1289 AM_CONDITIONAL(USE_DTS, false)
1290 AM_CONDITIONAL(USE_DIRAC, false)
1291 AM_CONDITIONAL(USE_DIVX, false)
1292 AM_CONDITIONAL(USE_DVB, false)
1293 AM_CONDITIONAL(USE_FAAC, false)
1294 AM_CONDITIONAL(USE_FAAD, false)
1295 AM_CONDITIONAL(USE_FBDEV, false)
1296 AM_CONDITIONAL(USE_GSM, false)
1297 AM_CONDITIONAL(USE_IVORBIS, false)
1298 AM_CONDITIONAL(USE_JACK, false)
1299 AM_CONDITIONAL(USE_LADSPA, false)
1300 AM_CONDITIONAL(USE_LIBMMS, false)
1301 AM_CONDITIONAL(USE_METADATA, false)
1302 AM_CONDITIONAL(USE_MPEG2ENC, false)
1303 AM_CONDITIONAL(USE_MPLEX, false)
1304 AM_CONDITIONAL(USE_MUSEPACK, false)
1305 AM_CONDITIONAL(USE_MUSICBRAINZ, false)
1306 AM_CONDITIONAL(USE_MYTHTV, false)
1307 AM_CONDITIONAL(USE_NAS, false)
1308 AM_CONDITIONAL(USE_NEON, false)
1309 AM_CONDITIONAL(USE_OFA, false)
1310 AM_CONDITIONAL(USE_OSS4, false)
1311 AM_CONDITIONAL(USE_TWOLAME, false)
1312 AM_CONDITIONAL(USE_SDL, false)
1313 AM_CONDITIONAL(USE_SNDFILE, false)
1314 AM_CONDITIONAL(USE_SOUNDTOUCH, false)
1315 AM_CONDITIONAL(USE_SPC, false)
1316 AM_CONDITIONAL(USE_SWFDEC, false)
1317 AM_CONDITIONAL(USE_THEORADEC, false)
1318 AM_CONDITIONAL(USE_TIMIDITY, false)
1319 AM_CONDITIONAL(USE_X264, false)
1320 AM_CONDITIONAL(USE_XVID, false)
1321 AM_CONDITIONAL(USE_WILDMIDI, false)
1322 AM_CONDITIONAL(USE_WININET, false)
1323 AM_CONDITIONAL(USE_ACM, false)
1325 fi dnl of EXT plugins
1327 dnl *** finalize CFLAGS, LDFLAGS, LIBS
1330 dnl GST_OPTION_CFLAGS: common flags for profiling, debugging, errors, ...
1331 dnl GST_*: flags shared by built objects to link against GStreamer
1332 dnl GST_ALL_LDFLAGS: linker flags shared by all
1333 dnl GST_LIB_LDFLAGS: additional linker flags for all libaries
1334 dnl GST_LT_LDFLAGS: library versioning of our libraries
1335 dnl GST_PLUGIN_LDFLAGS: flags to be used for all plugins
1337 dnl GST_OPTION_CFLAGS
1338 if test "x$USE_DEBUG" = xyes; then
1341 AC_SUBST(PROFILE_CFLAGS)
1343 if test "x$PACKAGE_VERSION_NANO" = "x1"; then
1344 dnl Define _only_ during CVS (not pre-releases or releases)
1345 DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
1347 DEPRECATED_CFLAGS=""
1349 AC_SUBST(DEPRECATED_CFLAGS)
1351 dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS can be overridden
1352 dnl at make time with e.g. make ERROR_CFLAGS=""
1353 GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
1354 GST_OPTION_CXXFLAGS="\$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
1355 AC_SUBST(GST_OPTION_CFLAGS)
1356 AC_SUBST(GST_OPTION_CXXFLAGS)
1358 dnl FIXME: do we want to rename to GST_ALL_* ?
1359 dnl prefer internal headers to already installed ones
1360 dnl also add builddir include for enumtypes and marshal
1361 dnl add GST_OPTION_CFLAGS, but overridable
1362 GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
1363 GST_CXXFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CXXFLAGS \$(GST_OPTION_CXXFLAGS)"
1364 AC_SUBST(GST_CFLAGS)
1365 AC_SUBST(GST_CXXFLAGS)
1368 dnl LDFLAGS really should only contain flags, not libs - they get added before
1369 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
1370 GST_ALL_LDFLAGS="-no-undefined"
1371 AC_SUBST(GST_ALL_LDFLAGS)
1373 dnl this really should only contain flags, not libs - they get added before
1374 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
1375 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
1376 AC_SUBST(GST_PLUGIN_LDFLAGS)
1378 dnl *** output files ***
1385 gst-plugins-bad.spec
1387 gst/aiffparse/Makefile
1390 gst/cdxaparse/Makefile
1392 gst/deinterlace/Makefile
1393 gst/deinterlace2/Makefile
1395 gst/festival/Makefile
1399 gst/h264parse/Makefile
1401 gst/modplug/Makefile
1402 gst/modplug/libmodplug/Makefile
1403 gst/mpegdemux/Makefile
1404 gst/mpegtsparse/Makefile
1405 gst/mpegtsmux/Makefile
1406 gst/mpegtsmux/tsmux/Makefile
1407 gst/mpeg4videoparse/Makefile
1408 gst/mpegvideoparse/Makefile
1411 gst/nuvdemux/Makefile
1412 gst/pcapparse/Makefile
1413 gst/rawparse/Makefile
1414 gst/rtpmanager/Makefile
1415 gst/scaletempo/Makefile
1417 gst/selector/Makefile
1419 gst/speexresample/Makefile
1423 gst/videosignal/Makefile
1428 gst-libs/gst/Makefile
1429 gst-libs/gst/app/Makefile
1430 gst-libs/gst/dshow/Makefile
1432 sys/dshowdecwrapper/Makefile
1434 sys/dshowsrcwrapper/Makefile
1435 sys/dshowvideosink/Makefile
1439 sys/qtwrapper/Makefile
1441 sys/wininet/Makefile
1443 sys/winscreencap/Makefile
1445 examples/app/Makefile
1446 examples/directfb/Makefile
1447 examples/scaletempo/Makefile
1448 examples/switch/Makefile
1450 ext/alsaspdif/Makefile
1451 ext/apexsink/Makefile
1453 ext/cdaudio/Makefile
1457 ext/directfb/Makefile
1460 ext/metadata/Makefile
1464 ext/ivorbis/Makefile
1470 ext/mpeg2enc/Makefile
1472 ext/musepack/Makefile
1473 ext/musicbrainz/Makefile
1477 ext/resindvd/Makefile
1478 ext/twolame/Makefile
1480 ext/sndfile/Makefile
1481 ext/soundtouch/Makefile
1485 ext/timidity/Makefile
1490 docs/plugins/Makefile
1491 docs/version.entities
1496 tests/check/Makefile
1497 tests/icles/Makefile
1498 win32/common/config.h
1502 AG_GST_OUTPUT_PLUGINS