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 *** checks for structures ***
143 dnl *** checks for compiler characteristics ***
144 dnl check if we have GCC inline-asm
145 AS_GCC_INLINE_ASSEMBLY([HAVE_GCC_ASM=yes], [HAVE_GCC_ASM=no])
146 if test x$HAVE_GCC_ASM = xyes ; then
147 AC_DEFINE(HAVE_GCC_ASM, 1,
148 [Define if compiler supports gcc inline assembly])
150 AM_CONDITIONAL(HAVE_GCC_ASM, test "x$HAVE_GCC_ASM" = "xyes")
152 dnl *** checks for library functions ***
154 dnl *** checks for dependency libraries ***
157 AG_GST_GLIB_CHECK([2.6])
159 dnl liboil is required
160 PKG_CHECK_MODULES(LIBOIL, liboil-0.3 >= 0.3.8, HAVE_LIBOIL=yes, HAVE_LIBOIL=no)
161 if test "x$HAVE_LIBOIL" != "xyes"; then
162 AC_ERROR([liboil-0.3.8 or later is required])
165 dnl checks for gstreamer
166 dnl uninstalled is selected preferentially -- see pkg-config(1)
167 AG_GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ], yes)
168 AG_GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ], yes)
169 AG_GST_CHECK_GST_GDP($GST_MAJORMINOR, [$GST_REQ], yes)
170 AG_GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQ], no)
171 AG_GST_CHECK_GST_CONTROLLER($GST_MAJORMINOR, [$GST_REQ], yes)
172 AG_GST_CHECK_GST_PLUGINS_BASE($GST_MAJORMINOR, [$GSTPB_REQ], yes)
173 AM_CONDITIONAL(HAVE_GST_CHECK, test "x$HAVE_GST_CHECK" = "xyes")
175 GSTPB_PLUGINS_DIR=`$PKG_CONFIG gstreamer-plugins-base-$GST_MAJORMINOR --variable pluginsdir`
176 AC_SUBST(GSTPB_PLUGINS_DIR)
177 AC_MSG_NOTICE(Using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR)
179 dnl Check for documentation xrefs
180 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
181 GST_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-$GST_MAJORMINOR`"
182 GSTPB_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-plugins-base-$GST_MAJORMINOR`"
183 AC_SUBST(GLIB_PREFIX)
185 AC_SUBST(GSTPB_PREFIX)
187 dnl GTK is optional and used in examples
189 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.2.0, HAVE_GTK_22=yes, HAVE_GTK_22=no)
190 if test "x$HAVE_GTK_22" = "xyes"; then
192 GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
193 AC_SUBST(GTK_VERSION)
194 GTK_PREFIX=`$PKG_CONFIG --variable=prefix gdk-pixbuf-2.0`
195 AC_SUBST(GTK_BASE_DIR)
196 GDK_PIXBUF_LIBDIR=`$PKG_CONFIG --variable=libdir gdk-pixbuf-2.0`
197 GDK_PIXBUF_PREFIXDIR=`$PKG_CONFIG --variable=prefix gdk-pixbuf-2.0`
198 AC_SUBST(GTK_BASE_DIR)
200 PKG_CHECK_MODULES(GTK2, gtk+-2.0, HAVE_GTK_20=yes, HAVE_GTK_20=no)
202 if test "x$HAVE_GTK_20" = "xyes"; then
205 GTK_CFLAGS=$GTK2_CFLAGS
210 AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
212 dnl libglade is optional and only used in examples
214 PKG_CHECK_MODULES(GLADE, libglade-2.0 >= 2.6.0, HAVE_GLADE=yes, HAVE_GLADE=no)
216 AC_SUBST(GLADE_CFLAGS)
218 AM_CONDITIONAL(HAVE_GLADE, test "x$HAVE_GLADE" = "xyes")
220 dnl set license and copyright notice
222 AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
223 AC_SUBST(GST_LICENSE)
225 dnl set location of plugin directory
228 dnl define an ERROR_CFLAGS Makefile variable
229 AG_GST_SET_ERROR_CFLAGS($GST_CVS)
231 dnl define an ERROR_CXXFLAGS Makefile variable
232 AG_GST_SET_ERROR_CXXFLAGS($GST_CVS)
234 dnl define correct level for debugging messages
235 AG_GST_SET_LEVEL_DEFAULT($GST_CVS)
237 dnl *** plug-ins to include ***
239 dnl these are all the gst plug-ins, compilable without additional libs
240 AG_GST_CHECK_PLUGIN(aiffparse)
241 AG_GST_CHECK_PLUGIN(app)
242 AG_GST_CHECK_PLUGIN(bayer)
243 AG_GST_CHECK_PLUGIN(cdxaparse)
244 AG_GST_CHECK_PLUGIN(dccp)
245 AG_GST_CHECK_PLUGIN(deinterlace)
246 AG_GST_CHECK_PLUGIN(deinterlace2)
247 AG_GST_CHECK_PLUGIN(dvdspu)
248 AG_GST_CHECK_PLUGIN(festival)
249 AG_GST_CHECK_PLUGIN(filter)
250 AG_GST_CHECK_PLUGIN(flv)
251 AG_GST_CHECK_PLUGIN(freeze)
252 AG_GST_CHECK_PLUGIN(h264parse)
253 AG_GST_CHECK_PLUGIN(librfb)
254 AG_GST_CHECK_PLUGIN(modplug)
255 AG_GST_CHECK_PLUGIN(mpegtsparse)
256 AG_GST_CHECK_PLUGIN(mpeg4videoparse)
257 AG_GST_CHECK_PLUGIN(mpegvideoparse)
258 AG_GST_CHECK_PLUGIN(mve)
259 AG_GST_CHECK_PLUGIN(nsf)
260 AG_GST_CHECK_PLUGIN(nuvdemux)
261 AG_GST_CHECK_PLUGIN(pcapparse)
262 AG_GST_CHECK_PLUGIN(rawparse)
263 AG_GST_CHECK_PLUGIN(real)
264 AG_GST_CHECK_PLUGIN(rtpmanager)
265 AG_GST_CHECK_PLUGIN(sdp)
266 AG_GST_CHECK_PLUGIN(selector)
267 AG_GST_CHECK_PLUGIN(speed)
268 AG_GST_CHECK_PLUGIN(speexresample)
269 AG_GST_CHECK_PLUGIN(subenc)
270 AG_GST_CHECK_PLUGIN(stereo)
271 AG_GST_CHECK_PLUGIN(tta)
272 AG_GST_CHECK_PLUGIN(videosignal)
273 AG_GST_CHECK_PLUGIN(vmnc)
274 AG_GST_CHECK_PLUGIN(y4m)
276 dnl *** plug-ins to exclude ***
278 dnl see if we can build C++ plug-ins
279 if test "x$HAVE_CXX" != "xyes"; then
280 AC_MSG_WARN([Not compiling plug-ins requiring C++ compiler])
281 AG_GST_DISABLE_PLUGIN(modplug)
284 dnl real plugin only works on i386 and x86_64 for the time being.
285 if test "x$HAVE_CPU_I386" != "xyes" && test "x$HAVE_CPU_X86_64" != "xyes"; then
286 AC_MSG_WARN([Not building real plugin, only works on 32bit and 64bit x86 platforms])
287 AG_GST_DISABLE_PLUGIN(real)
290 dnl disable experimental plug-ins
291 if test "x$BUILD_EXPERIMENTAL" != "xyes"; then
292 AG_GST_DISABLE_PLUGIN(deinterlace2)
295 dnl disable gst plugins we might not be able to build on this
296 dnl platform: librfb (ugly but minimally invasive)
297 dnl FIXME: maybe move to sys, or make work with winsock2
298 AC_CHECK_HEADERS([sys/socket.h], HAVE_SYS_SOCKET_H=yes)
299 AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
301 dnl needed for festival
302 AM_CONDITIONAL(HAVE_WINSOCK2_H, test "x$HAVE_WINSOCK2_H" = "xyes")
304 if test "x$HAVE_SYS_SOCKET_H" != "xyes"; then
305 AG_GST_DISABLE_PLUGIN(librfb)
308 dnl *** sys plug-ins ***
310 dnl check for QuickTime
311 translit(dnm, m, l) AM_CONDITIONAL(USE_QUICKTIME, true)
312 AG_GST_CHECK_FEATURE(QUICKTIME, [QuickTime wrapper], qtwrapper, [
313 AC_CHECK_HEADER(QuickTime/Movies.h, HAVE_QUICKTIME="yes", HAVE_QUICKTIME="no")
316 dnl check for Video CD
317 translit(dnm, m, l) AM_CONDITIONAL(USE_VCD, true)
318 AG_GST_CHECK_FEATURE(VCD, [Video CD], vcdsrc, [
319 AC_CHECK_HEADER(linux/cdrom.h, HAVE_VCD="yes", HAVE_VCD="no")
322 dnl *** ext plug-ins ***
323 dnl keep this list sorted alphabetically !
325 if test "x$BUILD_EXTERNAL" = "xyes"; then
328 translit(dnm, m, l) AM_CONDITIONAL(USE_ALSA, true)
329 AG_GST_CHECK_FEATURE(ALSA, [alsa plug-ins], gstalsa, [
330 PKG_CHECK_MODULES(ALSA, alsa >= 0.9.1, [
332 AC_SUBST(ALSA_CFLAGS)
335 AM_PATH_ALSA(0.9.1, HAVE_ALSA="yes", HAVE_ALSA="no")
340 translit(dnm, m, l) AM_CONDITIONAL(USE_AMRWB, true)
341 AG_GST_CHECK_FEATURE(AMRWB, [amrwb library], amrwb, [
342 AG_GST_CHECK_LIBHEADER(AMRWB, amrwb,
346 AC_SUBST(AMRWB_LIBS))
350 translit(dnm, m, l) AM_CONDITIONAL(USE_APEXSINK, true)
351 AG_GST_CHECK_FEATURE(APEXSINK, [AirPort Express Wireless sink], apexsink, [
354 # The big search for OpenSSL
355 # copied from openssh's configure.ac
357 [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
359 if test "x$withval" != "xno" ; then
365 AC_SEARCH_LIBS(socket, [socket])
366 AC_SEARCH_LIBS(gethostbyname, [nsl])
369 saved_LDFLAGS="$LDFLAGS"
370 saved_CPPFLAGS="$CPPFLAGS"
371 if test "x$prefix" != "xNONE" ; then
372 tryssldir="$tryssldir $prefix"
374 AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
375 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
376 CPPFLAGS="$saved_CPPFLAGS"
377 LDFLAGS="$saved_LDFLAGS"
378 LIBS="$saved_LIBS -lssl -lcrypto"
380 # Skip directories if they don't exist
381 if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
384 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
385 # Try to use $ssldir/lib if it exists, otherwise
387 if test -d "$ssldir/lib" ; then
388 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
389 if test ! -z "$need_dash_r" ; then
390 LDFLAGS="-R$ssldir/lib $LDFLAGS"
393 LDFLAGS="-L$ssldir $saved_LDFLAGS"
394 if test ! -z "$need_dash_r" ; then
395 LDFLAGS="-R$ssldir $LDFLAGS"
398 # Try to use $ssldir/include if it exists, otherwise
400 if test -d "$ssldir/include" ; then
401 CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
403 CPPFLAGS="-I$ssldir $saved_CPPFLAGS"
407 # Basic test to check for compatible version and correct linking
408 # *does not* test for RSA - that comes later.
412 #include <openssl/rand.h>
416 memset(a, 0, sizeof(a));
417 RAND_add(a, sizeof(a), sizeof(a));
418 return(RAND_status() <= 0);
427 if test ! -z "$found_crypto" ; then
432 if test -z "$found_crypto" ; then
435 if test -z "$ssldir" ; then
439 ac_cv_openssldir=$ssldir
441 if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ;
443 dnl Need to recover ssldir - test above runs in subshell
444 ssldir=$ac_cv_openssldir
445 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
446 # Try to use $ssldir/lib if it exists, otherwise
448 if test -d "$ssldir/lib" ; then
449 APEXSINK_LIBS="-L$ssldir/lib $saved_LDFLAGS"
450 if test ! -z "$need_dash_r" ; then
451 APEXSINK_LIBS="-R$ssldir/lib $LDFLAGS"
454 APEXSINK_LDFLAGS="-L$ssldir $saved_LDFLAGS"
455 if test ! -z "$need_dash_r" ; then
456 APEXSINK_LIBS="-R$ssldir $LDFLAGS"
459 # Try to use $ssldir/include if it exists, otherwise
461 if test -d "$ssldir/include" ; then
462 APEXSINK_CFLAGS="-I$ssldir/include $saved_CPPFLAGS"
464 APEXSINK_CFLAGS="-I$ssldir $saved_CPPFLAGS"
468 APEXSINK_LIBS="$APEXSINK_LIBS $LIBS"
473 translit(dnm, m, l) AM_CONDITIONAL(USE_BZ2, true)
474 AG_GST_CHECK_FEATURE(BZ2, [bz2 library], bz2, [
475 AG_GST_CHECK_LIBHEADER(BZ2, bz2, BZ2_bzCompress, ,bzlib.h, BZ2_LIBS="-lbz2")
480 #translit(dnm, m, l) AM_CONDITIONAL(USE_CAIRO, true)
481 #AG_GST_CHECK_FEATURE(CAIRO, [cairo plug-in], cairo, [
482 # PKG_CHECK_MODULES(CAIRO, cairo >= 1.0 glitz-glx, HAVE_CAIRO=yes, [
486 # AC_SUBST(CAIRO_CFLAGS)
487 # AC_SUBST(CAIRO_LIBS)
491 translit(dnm, m, l) AM_CONDITIONAL(USE_CDAUDIO, true)
492 AG_GST_CHECK_FEATURE(CDAUDIO, [cdaudio], cdaudio, [
493 AG_GST_CHECK_CONFIGPROG(CDAUDIO, libcdaudio-config)
494 AC_SUBST(CDAUDIO_CFLAGS)
495 AC_SUBST(CDAUDIO_LIBS)
499 translit(dnm, m, l) AM_CONDITIONAL(USE_CELT, true)
500 AG_GST_CHECK_FEATURE(CELT, [celt], celt, [
501 PKG_CHECK_MODULES(CELT, celt >= 0.4.0, [
506 AC_SUBST(CELT_CFLAGS)
511 translit(dnm, m, l) AM_CONDITIONAL(USE_DC1394, true)
512 AG_GST_CHECK_FEATURE(DC1394, [libdc1394], dc1394, [
513 PKG_CHECK_MODULES(LIBDC1394, libdc1394-2 >= 2.0.0, [
514 if test -z "`pkg-config --modversion libdc1394-2 | grep 2.0.0-rc`"; then
524 AC_SUBST(LIBDC1394_CFLAGS)
525 AC_SUBST(LIBDC1394_LIBS)
529 dnl **** DirectFB ****
530 translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECTFB, true)
531 AG_GST_CHECK_FEATURE(DIRECTFB, [directfb], dfbvideosink , [
532 PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.24, HAVE_DIRECTFB="yes", [
539 translit(dnm, m, l) AM_CONDITIONAL(USE_DIRAC, true)
540 AG_GST_CHECK_FEATURE(DIRAC, [dirac], dirac, [
541 PKG_CHECK_MODULES(DIRAC, dirac >= 0.10, HAVE_DIRAC="yes", [
548 translit(dnm, m, l) AM_CONDITIONAL(USE_DTS, true)
549 AG_GST_CHECK_FEATURE(DTS, [dts library], dtsdec, [
551 AG_GST_CHECK_LIBHEADER(DTS, dts_pic, dts_init, -lm, dts.h,
552 DTS_LIBS="-ldts_pic -lm", HAVE_DTS="no")
553 if test $HAVE_DTS = "no"; then
554 AG_GST_CHECK_LIBHEADER(DTS, dca, dca_init, -lm, dts.h,
555 DTS_LIBS="-ldca -lm")
561 translit(dnm, m, l) AM_CONDITIONAL(USE_DIVX, true)
562 AG_GST_CHECK_FEATURE(DIVX, [divx plugins], divx, [
564 AC_CHECK_HEADER(encore2.h, , [
565 AC_MSG_WARN([Divx4linux encore headers not found])
568 if [ test x$HAVE_DIVX = xyes ]; then
569 AC_MSG_CHECKING([Checking for valid divx4linux encore version])
572 #if ENCORE_VERSION != 20021024
573 #error Wrong version of divx encore libraries
583 AC_MSG_WARN([Wrong version of divx4linux installed])
586 if [ test x$HAVE_DIVX = xyes ]; then
587 AC_CHECK_HEADER(decore.h, , [
588 AC_MSG_WARN([Divx4linux decoder headers not found])
592 if [ test x$HAVE_DIVX = xyes ]; then
593 AC_MSG_CHECKING([Checking for valid divx4linux decore version])
596 #if DECORE_VERSION != 20021112
597 #error Wrong version of divx decore libraries
607 AC_MSG_WARN([Wrong version of divx4linux installed])
611 if test x$HAVE_DIVX = xyes; then
612 AC_CHECK_LIB(divxencore, encore, , [
613 AC_MSG_WARN([Divx4linux encore libs not found])
617 if test x$HAVE_DIVX = xyes; then
618 AC_CHECK_LIB(divxdecore, decore, , [
619 AC_MSG_WARN([Divx4linux decore libs not found])
623 if test x$HAVE_DIVX = xyes; then
624 DIVXENC_LIBS="-ldivxencore -lm"
625 DIVXDEC_LIBS="-ldivxdecore -lm"
626 AC_SUBST(DIVXENC_LIBS)
627 AC_SUBST(DIVXDEC_LIBS)
631 dnl *** dvdnav for resindvd ***
632 USE_DVDNAV=$BUILD_EXPERIMENTAL
633 translit(dnm, m, l) AM_CONDITIONAL(USE_DVDNAV, true)
634 AG_GST_CHECK_FEATURE(DVDNAV, [dvdnav library], resindvd, [
635 translit(dnm, m, l) AC_SUBST(DVDNAV_LIBS)
636 translit(dnm, m, l) AC_SUBST(DVDNAV_CFLAGS)
637 AG_GST_CHECK_CONFIGPROG(DVDNAV, dvdnav-config)
638 if test x"$HAVE_DVDNAV" = x"yes"; then
640 DVDNAV_VERSION=`dvdnav-config --version|head -n 1|sed 's/^.*) //'|sed 's/ (.*)//'`
641 DVDNAV_MAJOR=`echo $DVDNAV_VERSION | cut -d. -f1 | sed s/[a-zA-Z\-].*//g`
642 DVDNAV_MINOR=`echo $DVDNAV_VERSION | cut -d. -f2 | sed s/[a-zA-Z\-].*//g`
643 DVDNAV_MICRO=`echo $DVDNAV_VERSION | cut -d. -f3 | sed s/[a-zA-Z\-].*//g`
644 if [[ "$DVDNAV_MAJOR" -eq "0" ]] && \
645 [[ "$DVDNAV_MINOR" -lt "1" ]]; then
646 AC_MSG_WARN([libdvdnav >= 0.1.7 is required, you have $DVDNAV_VERSION])
648 elif [[ "$DVDNAV_MAJOR" -eq "0" ]] && \
649 [[ "$DVDNAV_MINOR" -eq "1" ]] && \
650 [[ "$DVDNAV_MICRO" -lt "7" ]]; then
651 AC_MSG_WARN([libdvdnav >= 0.1.7 is required, you have $DVDNAV_VERSION])
653 elif [[ "$DVDNAV_MAJOR" -eq "0" ]]; then
654 AC_DEFINE(DVDNAV_OLD, 1, [Define if an old libdvdnav is used])
657 AS_SCRUB_INCLUDE(DVDNAV_CFLAGS)
661 translit(dnm, m, l) AM_CONDITIONAL(USE_METADATA, true)
662 AG_GST_CHECK_FEATURE(METADATA, [METADATA muxer and demuxer], metadata, [
664 PKG_CHECK_MODULES(EXIF, libexif >= 0.6.16, HAVE_EXIF="yes", [
667 PKG_CHECK_MODULES(IPTC, libiptcdata >= 1.0.2, HAVE_IPTC="yes", [
670 PKG_CHECK_MODULES(XMP, exempi-2.0, HAVE_XMP="yes", [
673 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))
674 if test x$HAVE_EXIF = xyes; then
675 METADATA_CFLAGS="-DHAVE_EXIF $EXIF_CFLAGS $METADATA_CFLAGS"
676 METADATA_LIBS="$EXIF_LIBS $METADATA_LIBS -lm"
679 if test x$HAVE_IPTC = xyes; then
680 METADATA_CFLAGS="-DHAVE_IPTC $IPTC_CFLAGS $METADATA_CFLAGS"
681 METADATA_LIBS="$IPTC_LIBS $METADATA_LIBS"
684 if test x$HAVE_XMP = xyes; then
685 METADATA_CFLAGS="-DHAVE_XMP $XMP_CFLAGS $METADATA_CFLAGS"
686 METADATA_LIBS="$XMP_LIBS $METADATA_LIBS"
689 if test x$HAVE_METADATA = xno; then
690 AC_MSG_WARN(no of metadata libraries (exif, iptc or xmp) found)
692 dnl metadata plugin will parse whole chunks anyway
694 AC_SUBST(METADATA_CFLAGS)
695 AC_SUBST(METADATA_LIBS)
698 dnl **** Free AAC Encoder (FAAC) ****
699 translit(dnm, m, l) AM_CONDITIONAL(USE_FAAC, true)
700 AG_GST_CHECK_FEATURE(FAAC, [AAC encoder plug-in], faac, [
701 AG_GST_CHECK_LIBHEADER(FAAC, faac, faacEncOpen, -lm, faac.h,
702 FAAC_LIBS="-lfaac -lm")
703 AS_SCRUB_INCLUDE(FAAC_CFLAGS)
707 dnl **** Free AAC Decoder (FAAD) ****
708 translit(dnm, m, l) AM_CONDITIONAL(USE_FAAD, true)
709 AG_GST_CHECK_FEATURE(FAAD, [AAC decoder plug-in], faad, [
711 AG_GST_CHECK_LIBHEADER(FAAD, faad, faacDecOpen, -lm, faad.h,
712 FAAD_LIBS="-lfaad -lm", HAVE_FAAD="no")
713 if test $HAVE_FAAD = "no"; then
714 AG_GST_CHECK_LIBHEADER(FAAD, faad, NeAACDecOpen, -lm, neaacdec.h,
715 [ FAAD_LIBS="-lfaad -lm"
716 AC_DEFINE(FAAD_IS_NEAAC, 1, [Define if AAC is using new api prefix])
720 if test $HAVE_FAAD = "yes"; then
721 AC_MSG_CHECKING([Checking for FAAD >= 2.0])
722 AC_TRY_COMPILE([#include <faad.h>], [
723 #if !defined(FAAD2_VERSION) || !defined(FAAD_FMT_DOUBLE)
726 /* Release candidate of 2.0 is not good enough for us. This field
727 * was added only in 2.0 final and does not exist in 2.0-RC3 */
728 faacDecConfiguration conf; conf.dontUpSampleImplicitSBR = 1;
738 AS_SCRUB_INCLUDE(FAAD_CFLAGS)
740 AC_SUBST(FAAD_IS_NEAAC)
744 translit(dnm, m, l) AM_CONDITIONAL(USE_FBDEV, true)
745 AG_GST_CHECK_FEATURE(FBDEV, [linux framebuffer], fbdevsink, [
746 if test "x$HAVE_FBDEV" != "xyes"; then
747 AC_CHECK_HEADER([linux/fb.h], HAVE_FBDEV=yes, HAVE_FBDEV=no)
752 translit(dnm, m, l) AM_CONDITIONAL(USE_GSM, true)
753 AG_GST_CHECK_FEATURE(GSM, [GSM library], gsmenc gsmdec, [
754 AG_GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm.h, GSM_LIBS="-lgsm")
755 if test $HAVE_GSM != "yes"; then
756 AG_GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm/gsm.h, GSM_LIBS="-lgsm")
757 if test $HAVE_GSM = "yes"; then
758 AC_DEFINE(GSM_HEADER_IN_SUBDIR, 1, [Define if GSM header in gsm/ subdir])
765 dnl AM_PATH_IVORBIS only takes two options
766 translit(dnm, m, l) AM_CONDITIONAL(USE_IVORBIS, true)
767 AG_GST_CHECK_FEATURE(IVORBIS, [integer vorbis plug-in], ivorbisdec, [
770 AC_CHECK_LIB(vorbisidec, vorbis_block_init,
771 [IVORBIS_LIBS=-lvorbisidec
775 IVORBIS_CFLAGS="-D_ARM_ASSEM_ $IVORBIS_CFLAGS"
779 AC_SUBST(IVORBIS_LIBS)
780 AC_SUBST(IVORBIS_CFLAGS)
784 translit(dnm, m, l) AM_CONDITIONAL(USE_JACK, true)
785 AG_GST_CHECK_FEATURE(JACK, Jack, jack, [
786 PKG_CHECK_MODULES(JACK, jack >= 0.99.10, HAVE_JACK="yes", HAVE_JACK="no")
787 AC_SUBST(JACK_CFLAGS)
792 translit(dnm, m, l) AM_CONDITIONAL(USE_LADSPA, true)
793 AG_GST_CHECK_FEATURE(LADSPA, [ladspa], ladspa, [
794 AC_CHECK_HEADER(ladspa.h, HAVE_LADSPA="yes", HAVE_LADSPA="no")
795 save_cflags="$CFLAGS"
796 CFLAGS="$CFLAGS -D_GNU_SOURCE"
798 AC_CHECK_LIB(dl, dlopen,
801 CFLAGS="$save_cflags"
803 AC_SUBST(LADSPA_LIBS)
806 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBMMS, true)
807 AG_GST_CHECK_FEATURE(LIBMMS, [mms protocol library], libmms, [
808 dnl check with pkg-config first
809 PKG_CHECK_MODULES(LIBMMS, libmms >= 0.2, HAVE_LIBMMS="yes", [
814 AC_SUBST(LIBMMS_LIBS)
816 dnl *** mjpegtools version info ***
817 dnl some may prefer older version (given quirks above)
818 dnl hm, no version info seems available within mjpegtools headers
819 dnl and API really moves along
821 PKG_CHECK_EXISTS(mjpegtools >= 1.6.1.93 mjpegtools < 1.8.0, [
824 PKG_CHECK_EXISTS(mjpegtools >= 1.8.0 mjpegtools < 1.9.0, [
827 PKG_CHECK_MODULES(MJPEG, mjpegtools >= 1.9.0, [
828 dnl logging API changed in release candidates
831 CFLAGS="$MJPEG_CFLAGS"
832 LIBS="$LIBS $MJPEG_LIBS -lmjpegutils -lm -lpthread"
833 AC_CHECK_FUNC(mjpeg_loglev_t, [
845 AC_DEFINE_UNQUOTED(GST_MJPEGTOOLS_API, $mjpegtools_api,
846 [mjpegtools API evolution])
849 translit(dnm, m, l) AM_CONDITIONAL(USE_MPEG2ENC, true)
850 AG_GST_CHECK_FEATURE(MPEG2ENC, [mpeg2enc], mpeg2enc, [
852 dnl we require a c++ compiler for this one
853 if [ test x$HAVE_CXX = xyes ]; then
854 dnl libmpeg2enc was first included in mjpegtools-1.6.2-rc3 (1.6.1.92)
855 dnl since many distros include mjpegtools specifically without mplex
856 dnl and mpeg2enc, we check for mpeg2enc on its own, too.
857 PKG_CHECK_MODULES(MPEG2ENC, mjpegtools >= 1.6.1.93, [
858 dnl HACK because mpeg2enc 1.8.0 header files have a spurious 'include config.h'
860 dnl switch over to c++ to test things
862 OLD_CPPFLAGS="$CPPFLAGS"
864 CPPFLAGS_GOOD="$CPPFLAGS $MPEG2ENC_CFLAGS"
865 CPPFLAGS="$CPPFLAGS_GOOD -I."
867 mpeg2enc_headers_ok=no
868 AC_CHECK_HEADER([mpeg2encoder.hh], [
869 MPEG2ENC_LIBS="$MPEG2ENC_LIBS -lmpeg2encpp -lm -lpthread"
871 LIBS="$LIBS $MPEG2ENC_LIBS"
872 AC_MSG_CHECKING([for valid mpeg2enc objects])
874 #include <mpeg2encoder.hh>
875 #include <mpeg2encoptions.hh>
881 MPEG2EncOptions *options = new MPEG2EncOptions ();
882 MPEG2Encoder *encoder = new MPEG2Encoder (*options);
887 dnl so far so good, let's check more things:
888 dnl mjpegtools-1.8.0 does not install the required
889 dnl mpeg2syntaxcodes.h header by default, and a new release
890 dnl is not in sight, so check for this oversight in case
891 dnl distros or folks have fixed this themselves
892 if test "$mjpegtools_api" -ge "10800"; then
893 AC_CHECK_HEADER([mpeg2syntaxcodes.h], [
894 mpeg2enc_headers_ok=yes
896 mpeg2enc_headers_ok=no
899 mpeg2enc_headers_ok=yes
901 if test "x$mpeg2enc_headers_ok" = "xyes"; then
904 CPP_FLAGS="$CPPFLAGS_GOOD"
905 AC_SUBST(MPEG2ENC_CFLAGS)
906 AC_SUBST(MPEG2ENC_LIBS)
913 CPPFLAGS="$OLD_CPPFLAGS"
922 translit(dnm, m, l) AM_CONDITIONAL(USE_MPLEX, true)
923 AG_GST_CHECK_FEATURE(MPLEX, [mplex], mplex, [
925 dnl we require a c++ compiler for this one
926 if [ test x$HAVE_CXX = xyes ]; then
927 dnl libmplex was first included in mjpegtools-1.6.2-rc4 (1.6.1.93)
928 dnl since many distros include mjpegtools specifically without mplex
929 dnl and mpeg2enc, we check for mplex on its own, too.
930 dnl libmplex < 1.9rc? has fuzzy ABI, valgrind and other problems
931 PKG_CHECK_MODULES(MPLEX, mjpegtools >= 1.9.0, [
932 dnl switch over to c++ to test things
934 OLD_CPPFLAGS="$CPPFLAGS"
935 CPPFLAGS="$CPPFLAGS $MPLEX_CFLAGS"
936 AC_CHECK_HEADER(interact.hpp, [
937 MPLEX_LIBS="$MPLEX_LIBS -lmplex2 -lm"
939 LIBS="$LIBS $MPLEX_LIBS"
940 dnl older libmplex uses off_t SegmentSize (), which leads to fuzzy ABI;
941 dnl don't want this here
942 AC_MSG_CHECKING([for valid mplex objects])
945 #include <interact.hpp>
946 #include <outputstrm.hpp>
947 #include <multiplexor.hpp>
952 class TestOutputStream : public OutputStream {
954 TestOutputStream () : OutputStream () { }
955 void Write (uint8_t *a, unsigned int b) { }
956 void NextSegment () { }
957 uint64_t SegmentSize () { }
961 MultiplexJob *job = new MultiplexJob ();
962 vector<IBitStream *> inputs;
963 job->SetupInputStreams (inputs);
964 TestOutputStream *out = new TestOutputStream ();
965 Multiplexor *mux = new Multiplexor(*job, *out, NULL);
970 AC_SUBST(MPLEX_CFLAGS)
973 ], AC_MSG_RESULT(no))
976 CPPFLAGS="$OLD_CPPFLAGS"
983 translit(dnm, m, l) AM_CONDITIONAL(USE_MUSEPACK, true)
984 AG_GST_CHECK_FEATURE(MUSEPACK, [musepackdec], musepack, [
985 AC_CHECK_HEADER([mpc/mpcdec.h], [
987 MUSEPACK_LIBS="-lmpcdec"
988 AC_SUBST(MUSEPACK_LIBS)
989 ], [AC_CHECK_HEADER([mpcdec/mpcdec.h], [
991 MUSEPACK_LIBS="-lmpcdec"
992 AC_DEFINE(MPC_IS_OLD_API, 1, [Define if the old MusePack API is used])
993 AC_SUBST(MUSEPACK_LIBS)
994 ], [HAVE_MUSEPACK="no"])])
997 dnl *** musicbrainz ***
998 translit(dnm, m, l) AM_CONDITIONAL(USE_MUSICBRAINZ, true)
999 AG_GST_CHECK_FEATURE(MUSICBRAINZ, [musicbrainz tag generation], musicbrainz, [
1000 PKG_CHECK_MODULES(MUSICBRAINZ, libmusicbrainz >= 2.1.0, HAVE_MUSICBRAINZ="yes", HAVE_MUSICBRAINZ="no")
1001 AC_SUBST(MUSICBRAINZ_CFLAGS)
1002 AC_SUBST(MUSICBRAINZ_LIBS)
1006 translit(dnm, m, l) AM_CONDITIONAL(USE_MYTHTV, true)
1007 AG_GST_CHECK_FEATURE(MYTHTV, [MythTV client plugins], mythtvsrc, [
1008 PKG_CHECK_MODULES(GMYTH, gmyth >= 0.4 gmyth <= 0.7.99, HAVE_MYTHTV="yes", [
1012 AC_SUBST(GMYTH_CFLAGS)
1013 AC_SUBST(GMYTH_LIBS)
1017 translit(dnm, m, l) AM_CONDITIONAL(USE_NAS, true)
1018 AG_GST_CHECK_FEATURE(NAS, [nas plug-in], nassink, [
1021 if test "x$HAVE_X" = "xyes"; then
1022 save_cppflags=$CFLAGS
1023 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
1024 AG_GST_CHECK_LIBHEADER(NAS, audio, AuOpenServer, $X_LIBS, audio/audiolib.h,
1025 NAS_LIBS="$X_LIBS -laudio" NAS_CFLAGS="$X_CFLAGS")
1026 CPPFLAGS="$save_cppflags"
1028 AC_SUBST(NAS_CFLAGS)
1033 translit(dnm, m, l) AM_CONDITIONAL(USE_NEON, true)
1034 AG_GST_CHECK_FEATURE(NEON, [neon http client plugins], neonhttpsrc, [
1035 PKG_CHECK_MODULES(NEON, neon >= 0.26.0 neon <= 0.28.99, HAVE_NEON="yes", [
1039 AC_SUBST(NEON_CFLAGS)
1044 translit(dnm, m, l) AM_CONDITIONAL(USE_OFA, true)
1045 AG_GST_CHECK_FEATURE(OFA, [ofa plugins], ofa, [
1046 PKG_CHECK_MODULES(OFA, libofa >= 0.9.3, HAVE_OFA="yes", [
1050 AC_SUBST(OFA_CFLAGS)
1054 dnl *** timidity ***
1055 translit(dnm, m, l) AM_CONDITIONAL(USE_TIMIDITY, true)
1056 AG_GST_CHECK_FEATURE(TIMIDITY, [timidity midi soft synth plugin], timidity, [
1057 PKG_CHECK_MODULES(TIMIDITY, libtimidity, [
1058 HAVE_TIMIDITY="yes",
1059 AC_MSG_CHECKING([for timidity.cfg])
1061 if test -r /etc/timidity.cfg; then
1062 timidity_cfg=/etc/timidity.cfg
1063 elif test -r /etc/timidity/timidity.cfg; then
1064 timidity_cfg=/etc/timidity/timidity.cfg
1065 elif test -r /usr/share/timidity/timidity.cfg; then
1066 timidity_cfg=/usr/share/timidity/timidity.cfg
1067 elif test -r /usr/local/share/timidity/timidity.cfg; then
1068 timidity_cfg=/usr/local/share/timidity/timidity.cfg
1070 if test "x$timidity_cfg" != "x"; then
1071 AC_MSG_RESULT($timidity_cfg)
1072 AC_DEFINE_UNQUOTED(TIMIDITY_CFG, "$timidity_cfg", [Define location of timidity.cfg])
1074 AC_MSG_RESULT([not found])
1080 AC_SUBST(TIMIDITY_CFLAGS)
1081 AC_SUBST(TIMIDITY_LIBS)
1084 dnl *** wildmidi ***
1085 translit(dnm, m, l) AM_CONDITIONAL(USE_WILDMIDI, true)
1086 AG_GST_CHECK_FEATURE(WILDMIDI, [wildmidi midi soft synth plugin], wildmidi, [
1087 AC_CHECK_HEADER([wildmidi_lib.h],HAVE_WILDMIDI=yes, HAVE_WILDMIDI=no)
1088 if test "x$HAVE_WILDMIDI" = "xyes"; then
1090 WILDMIDI_LIBS=-lWildMidi
1091 AC_MSG_NOTICE(compiling gstWildMidi)
1095 AC_MSG_WARN(no WildMidi library found (libWildMidi))
1097 AC_SUBST(WILDMIDI_CFLAGS)
1098 AC_SUBST(WILDMIDI_LIBS)
1102 translit(dnm, m, l) AM_CONDITIONAL(USE_TWOLAME, true)
1103 AG_GST_CHECK_FEATURE(TWOLAME, [twolame], twolame, [
1104 PKG_CHECK_MODULES(TWOLAME, twolame >= 0.3.0, [
1105 HAVE_TWOLAME="yes"], [
1109 AC_SUBST(TWOLAME_CFLAGS)
1110 AC_SUBST(TWOLAME_LIBS)
1114 translit(dnm, m, l) AM_CONDITIONAL(USE_SDL, true)
1115 AG_GST_CHECK_FEATURE(SDL, [SDL plug-in], sdlvideosink sdlaudiosink, [
1116 AM_PATH_SDL(, HAVE_SDL=yes, HAVE_SDL=no)
1120 translit(dnm, m, l) AM_CONDITIONAL(USE_SNDFILE, true)
1121 AG_GST_CHECK_FEATURE(SNDFILE, [sndfile plug-in], sfsrc sfsink, [
1122 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.16, HAVE_SNDFILE="yes", HAVE_SNDFILE="no")
1123 AC_SUBST(SNDFILE_CFLAGS)
1124 AC_SUBST(SNDFILE_LIBS)
1127 dnl *** soundtouch ***
1128 translit(dnm, m, l) AM_CONDITIONAL(USE_SOUNDTOUCH, true)
1129 AG_GST_CHECK_FEATURE(SOUNDTOUCH, [soundtouch plug-in], soundtouch, [
1130 PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.0,
1131 HAVE_SOUNDTOUCH=yes,
1132 [PKG_CHECK_MODULES(SOUNDTOUCH, libSoundTouch,
1133 HAVE_SOUNDTOUCH=yes,
1134 HAVE_SOUNDTOUCH=no)])
1135 AC_SUBST(SOUNDTOUCH_CFLAGS)
1136 AC_SUBST(SOUNDTOUCH_LIBS)
1137 if test "x$HAVE_CXX" != "xyes"; then
1138 USE_SOUNDTOUCH=false
1139 AC_MSG_NOTICE([Not building soundtouch plugin: no C++ compiler found])
1144 translit(dnm, m, l) AM_CONDITIONAL(USE_SPC, true)
1145 AG_GST_CHECK_FEATURE(SPC, [spc decoder], spc, [
1146 AC_CHECK_HEADER(openspc.h, [
1147 AC_CHECK_LIB(openspc, OSPC_Init, [
1148 SPC_LIBS="-lopenspc"
1160 translit(dnm, m, l) AM_CONDITIONAL(USE_SWFDEC, true)
1161 AG_GST_CHECK_FEATURE(SWFDEC, [swfdec plug-in], swfdec, [
1162 PKG_CHECK_MODULES(SWFDEC, swfdec-0.3 >= 0.3.6, HAVE_SWFDEC=yes, [
1166 AC_SUBST(SWFDEC_CFLAGS)
1167 AC_SUBST(SWFDEC_LIBS)
1171 translit(dnm, m, l) AM_CONDITIONAL(USE_THEORADEC, true)
1172 AG_GST_CHECK_FEATURE(THEORADEC, [ogg theora codec], theoraexpdec, [
1173 PKG_CHECK_MODULES(THEORADEC, theoradec, HAVE_THEORADEC="yes", [
1177 AC_SUBST(THEORADEC_LIBS)
1178 AC_SUBST(THEORADEC_CFLAGS)
1181 dnl *** x264 (MPEG-4 part 10/h.264/AVC encoder) ***
1182 translit(dnm, m, l) AM_CONDITIONAL(USE_X264, true)
1183 AG_GST_CHECK_FEATURE(X264, [x264 plug-in], x264, [
1184 AG_GST_CHECK_LIBHEADER(X264, x264, x264_nal_encode, -lm, x264.h,
1185 AC_MSG_CHECKING([for uptodate x264 API version])
1186 dnl _stdint not yet generated, so no compiling
1190 #error "x264 build too old"
1194 X264_LIBS="$LDFLAGS -lx264 -lm"
1195 X264_CFLAGS="$CFLAGS"
1197 AC_SUBST(X264_CFLAGS)
1205 translit(dnm, m, l) AM_CONDITIONAL(USE_XVID, true)
1206 AG_GST_CHECK_FEATURE(XVID, [xvid plugins], xvid, [
1208 AC_CHECK_HEADER(xvid.h, [
1211 AC_CHECK_LIB(xvidcore, xvid_encore, [
1212 AC_CHECK_LIB(xvidcore, xvid_decore, [
1213 AC_CHECK_LIB(xvidcore, xvid_global, [
1214 AC_MSG_CHECKING([for uptodate XviD API version])
1215 AC_TRY_COMPILE([#include <xvid.h>], [
1216 #if XVID_API_MAJOR(XVID_API) != 4
1217 #error "Incompatible XviD API version"
1219 ],[ AC_MSG_RESULT(yes)
1220 XVID_LIBS="-lxvidcore -lm"
1223 ], AC_MSG_RESULT(no) )
1232 translit(dnm, m, l) AM_CONDITIONAL(USE_DVB, true)
1233 AG_GST_CHECK_FEATURE(DVB, [DVB Source], dvb, [
1234 AC_MSG_CHECKING([Checking for up to date dvb installation])
1235 AC_CHECK_HEADER(linux/dvb/frontend.h, [HAVE_DVB="yes"], [HAVE_DVB="no"])
1239 translit(dnm, m, l) AM_CONDITIONAL(USE_OSS4, true)
1240 AG_GST_CHECK_FEATURE(OSS4, [Open Sound System 4], oss4, [
1241 AC_MSG_CHECKING([Checking if we can build the OSS4 elements])
1242 AC_CHECK_HEADERS([fcntl.h sys/ioctl.h sys/stat.h sys/types.h],
1243 [test -z "$OSS4_MISSING_HEADER" && HAVE_OSS4="yes"],
1244 [OSS4_MISSING_HEADER="yes";HAVE_OSS4="no"])
1248 translit(dnm, m, l) AM_CONDITIONAL(USE_WININET, true)
1249 AG_GST_CHECK_FEATURE(WININET, [Windows internet library], wininet, [
1250 AC_MSG_CHECKING([Checking for windows internet support])
1251 AC_CHECK_HEADERS([windows.h wininet.h],
1252 [HAVE_WININET="yes"], [HAVE_WININET="no"])
1256 translit(dnm, m, l) AM_CONDITIONAL(USE_ACM, true)
1257 AG_GST_CHECK_FEATURE(ACM, [Windows ACM library], acm, [
1258 AC_MSG_CHECKING([Checking for ACM support])
1259 AC_CHECK_HEADERS([windows.h msacm.h],
1260 [HAVE_ACM="yes"], [HAVE_ACM="no"])
1265 dnl not building plugins with external dependencies,
1266 dnl but we still need to set the conditionals
1268 AM_CONDITIONAL(USE_QUICKTIME, false)
1269 AM_CONDITIONAL(USE_VCD, false)
1270 AM_CONDITIONAL(USE_ALSA, false)
1271 AM_CONDITIONAL(USE_AMRWB, false)
1272 AM_CONDITIONAL(USE_APEXSINK, false)
1273 AM_CONDITIONAL(USE_BZ2, false)
1274 AM_CONDITIONAL(USE_CDAUDIO, false)
1275 AM_CONDITIONAL(USE_CELT, false)
1276 AM_CONDITIONAL(USE_DC1394, false)
1277 AM_CONDITIONAL(USE_DIRECTFB, false)
1278 AM_CONDITIONAL(USE_DTS, false)
1279 AM_CONDITIONAL(USE_DIRAC, false)
1280 AM_CONDITIONAL(USE_DIVX, false)
1281 AM_CONDITIONAL(USE_DVB, false)
1282 AM_CONDITIONAL(USE_FAAC, false)
1283 AM_CONDITIONAL(USE_FAAD, false)
1284 AM_CONDITIONAL(USE_FBDEV, false)
1285 AM_CONDITIONAL(USE_GSM, false)
1286 AM_CONDITIONAL(USE_IVORBIS, false)
1287 AM_CONDITIONAL(USE_JACK, false)
1288 AM_CONDITIONAL(USE_LADSPA, false)
1289 AM_CONDITIONAL(USE_LIBMMS, false)
1290 AM_CONDITIONAL(USE_METADATA, false)
1291 AM_CONDITIONAL(USE_MPEG2ENC, false)
1292 AM_CONDITIONAL(USE_MPLEX, false)
1293 AM_CONDITIONAL(USE_MUSEPACK, false)
1294 AM_CONDITIONAL(USE_MUSICBRAINZ, false)
1295 AM_CONDITIONAL(USE_MYTHTV, false)
1296 AM_CONDITIONAL(USE_NAS, false)
1297 AM_CONDITIONAL(USE_NEON, false)
1298 AM_CONDITIONAL(USE_OFA, false)
1299 AM_CONDITIONAL(USE_OSS4, false)
1300 AM_CONDITIONAL(USE_TWOLAME, false)
1301 AM_CONDITIONAL(USE_SDL, false)
1302 AM_CONDITIONAL(USE_SNDFILE, false)
1303 AM_CONDITIONAL(USE_SOUNDTOUCH, false)
1304 AM_CONDITIONAL(USE_SPC, false)
1305 AM_CONDITIONAL(USE_SWFDEC, false)
1306 AM_CONDITIONAL(USE_THEORADEC, false)
1307 AM_CONDITIONAL(USE_TIMIDITY, false)
1308 AM_CONDITIONAL(USE_X264, false)
1309 AM_CONDITIONAL(USE_XVID, false)
1310 AM_CONDITIONAL(USE_WILDMIDI, false)
1311 AM_CONDITIONAL(USE_WININET, false)
1312 AM_CONDITIONAL(USE_ACM, false)
1314 fi dnl of EXT plugins
1316 dnl *** finalize CFLAGS, LDFLAGS, LIBS
1319 dnl GST_OPTION_CFLAGS: common flags for profiling, debugging, errors, ...
1320 dnl GST_*: flags shared by built objects to link against GStreamer
1321 dnl GST_ALL_LDFLAGS: linker flags shared by all
1322 dnl GST_LIB_LDFLAGS: additional linker flags for all libaries
1323 dnl GST_LT_LDFLAGS: library versioning of our libraries
1324 dnl GST_PLUGIN_LDFLAGS: flags to be used for all plugins
1326 dnl GST_OPTION_CFLAGS
1327 if test "x$USE_DEBUG" = xyes; then
1330 AC_SUBST(PROFILE_CFLAGS)
1332 if test "x$PACKAGE_VERSION_NANO" = "x1"; then
1333 dnl Define _only_ during CVS (not pre-releases or releases)
1334 DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
1336 DEPRECATED_CFLAGS=""
1338 AC_SUBST(DEPRECATED_CFLAGS)
1340 dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS can be overridden
1341 dnl at make time with e.g. make ERROR_CFLAGS=""
1342 GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
1343 GST_OPTION_CXXFLAGS="\$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
1344 AC_SUBST(GST_OPTION_CFLAGS)
1345 AC_SUBST(GST_OPTION_CXXFLAGS)
1347 dnl FIXME: do we want to rename to GST_ALL_* ?
1348 dnl prefer internal headers to already installed ones
1349 dnl also add builddir include for enumtypes and marshal
1350 dnl add GST_OPTION_CFLAGS, but overridable
1351 GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
1352 GST_CXXFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CXXFLAGS \$(GST_OPTION_CXXFLAGS)"
1353 AC_SUBST(GST_CFLAGS)
1354 AC_SUBST(GST_CXXFLAGS)
1357 dnl LDFLAGS really should only contain flags, not libs - they get added before
1358 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
1359 GST_ALL_LDFLAGS="-no-undefined"
1360 AC_SUBST(GST_ALL_LDFLAGS)
1362 dnl this really should only contain flags, not libs - they get added before
1363 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
1364 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
1365 AC_SUBST(GST_PLUGIN_LDFLAGS)
1367 dnl *** output files ***
1374 gst-plugins-bad.spec
1376 gst/aiffparse/Makefile
1379 gst/cdxaparse/Makefile
1381 gst/deinterlace/Makefile
1382 gst/deinterlace2/Makefile
1384 gst/festival/Makefile
1388 gst/h264parse/Makefile
1390 gst/modplug/Makefile
1391 gst/modplug/libmodplug/Makefile
1392 gst/mpegtsparse/Makefile
1393 gst/mpeg4videoparse/Makefile
1394 gst/mpegvideoparse/Makefile
1397 gst/nuvdemux/Makefile
1398 gst/pcapparse/Makefile
1399 gst/rawparse/Makefile
1400 gst/rtpmanager/Makefile
1402 gst/selector/Makefile
1404 gst/speexresample/Makefile
1408 gst/videosignal/Makefile
1413 gst-libs/gst/Makefile
1414 gst-libs/gst/app/Makefile
1415 gst-libs/gst/dshow/Makefile
1417 sys/dshowdecwrapper/Makefile
1419 sys/dshowsrcwrapper/Makefile
1420 sys/dshowvideosink/Makefile
1424 sys/qtwrapper/Makefile
1426 sys/wininet/Makefile
1428 sys/winscreencap/Makefile
1430 examples/app/Makefile
1431 examples/directfb/Makefile
1432 examples/switch/Makefile
1434 ext/alsaspdif/Makefile
1435 ext/apexsink/Makefile
1437 ext/cdaudio/Makefile
1441 ext/directfb/Makefile
1444 ext/metadata/Makefile
1448 ext/ivorbis/Makefile
1454 ext/mpeg2enc/Makefile
1456 ext/musepack/Makefile
1457 ext/musicbrainz/Makefile
1461 ext/resindvd/Makefile
1462 ext/twolame/Makefile
1464 ext/sndfile/Makefile
1465 ext/soundtouch/Makefile
1469 ext/timidity/Makefile
1474 docs/plugins/Makefile
1475 docs/version.entities
1480 tests/check/Makefile
1481 tests/icles/Makefile
1482 win32/common/config.h
1486 AG_GST_OUTPUT_PLUGINS