1 dnl Note: this file is generated from configure.base by autogen.sh
2 SUBSTFOR configure.ac:AC_INIT
3 SUBSTFOR configure.ac:AC_CONFIG_SRCDIR([gst/gstobject.h])
4 SUBSTFOR configure.in:AC_INIT(gst/gstobject.h)
6 SUBSTFOR configure.ac:AC_CANONICAL_TARGET([])
7 SUBSTFOR configure.in:AC_CANONICAL_SYSTEM
9 AM_CONFIG_HEADER(config.h)
14 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_MICRO
19 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
20 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
28 GST_LIBVERSION=$GST_CURRENT:$GST_REVISION:$GST_AGE
30 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
31 dnl Add parameters for aclocal
32 dnl (This must come after AM_INIT_AUTOMAKE, since it modifies ACLOCAL)
33 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
35 AC_SUBST(GST_VERSION_MAJOR)
36 AC_SUBST(GST_VERSION_MINOR)
37 AC_SUBST(GST_VERSION_MICRO)
41 AC_SUBST(GST_REVISION)
43 AC_SUBST(GST_LIBVERSION)
52 SUBSTFOR configure.ac:AC_HEADER_STDC([])
53 SUBSTFOR configure.in:AC_STDC_HEADERS
56 dnl We disable static building for development, for time savings
57 dnl *NOTE*: dnl this line before release, so release does static too
64 dnl This is used for the -config script...
68 dnl ##############################
69 dnl # Do automated configuration #
70 dnl ##############################
76 AC_PATH_PROG(NASM_PATH, nasm, no)
78 if test x$NASM_PATH = xno; then
79 AC_MSG_WARN(Couldn't find nasm)
82 AC_DEFINE(HAVE_NASM, 1, [Define if NASM, the netwide assembler, is available])
87 AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-mkdb, true, false)
88 AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-scanobj, :, false)
89 AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-scan, :, false)
90 AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-mktmpl, :, false)
91 AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-mkdb, :, false)
92 AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-mkhtml, :, false)
93 AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-fixxref, :, false)
95 dnl check for docbook tools
96 AC_CHECK_PROG(HAVE_DB2HTML, db2html, true, false)
97 AC_CHECK_PROG(HAVE_DB2PS, db2ps, true, false)
98 AC_CHECK_PROG(HAVE_PS2PDF, ps2pdf, true, false)
100 dnl check for image conversion tool
101 AC_CHECK_PROG(HAVE_FIG2DEV, fig2dev, true, false)
103 dnl The following is a hack: if fig2dev doesn't display an error message
104 dnl for the desired type, we assume it supports it.
105 HAVE_FIG2DEV_PNG=false
106 if test "x$HAVE_FIG2DEV" = "xtrue" ; then
107 fig2dev_quiet=`fig2dev -L png </dev/null 2>&1 >/dev/null`
108 if test "x$fig2dev_quiet" = "x" ; then
109 HAVE_FIG2DEV_PNG=true
112 HAVE_FIG2DEV_EPS=false
113 if test "x$HAVE_FIG2DEV" = "xtrue" ; then
114 fig2dev_quiet=`fig2dev -L eps </dev/null 2>&1 >/dev/null`
115 if test "x$fig2dev_quiet" = "x" ; then
116 HAVE_FIG2DEV_EPS=true
121 dnl Set up conditionals for (target) architecture:
122 dnl ==============================================
125 case "x${target_cpu}" in
126 xi?86 | k?) HAVE_CPU_I386=yes
127 AC_DEFINE(HAVE_CPU_I386, 1, [Define if the target CPU is an x86])
128 dnl FIXME could use some better detection
130 case "x${target_cpu}" in
132 *) AC_DEFINE(HAVE_RDTSC) ;;
134 xpowerpc) HAVE_CPU_PPC=yes
135 AC_DEFINE(HAVE_CPU_PPC, 1, [Define if the target CPU is a PPC]) ;;
136 xalpha) HAVE_CPU_ALPHA=yes
137 AC_DEFINE(HAVE_CPU_ALPHA, 1, [Define if the target CPU is an Alpha]) ;;
138 xarm*) HAVE_CPU_ARM=yes
139 AC_DEFINE(HAVE_CPU_ARM, 1, [Define if the target CPU is an ARM]) ;;
140 xsparc*) HAVE_CPU_SPARC=yes
141 AC_DEFINE(HAVE_CPU_SPARC, 1, [Define if the target CPU is a PPC]) ;;
144 dnl Determine endianness
147 dnl Check for MMX-capable compiler
148 AC_MSG_CHECKING(for MMX-capable compiler)
150 #include "include/mmx.h"
153 { movq_r2r(mm0, mm1); return 0; }
168 dnl Check for essential libraries first:
169 dnl ====================================
174 AC_MSG_ERROR(Cannot find glib: Is glib-config in path?),
175 glib gmodule gthread)
176 dnl Put the glib flags into $LIBS and $CFLAGS since we always use them
177 CORE_LIBS="$GLIB_LIBS"
178 CORE_CFLAGS="$GLIB_CFLAGS"
183 AC_MSG_ERROR(Cannot find gtk: Is gtk-config in path?))
184 dnl Put the gtk flags into $LIBS and $CFLAGS since we always use them
185 CORE_LIBS="$CORE_LIBS $GTK_LIBS"
186 CORE_CFLAGS="$CORE_CFLAGS $GTK_CFLAGS"
190 AC_PATH_PROG(XML_CONFIG, xml-config, no)
191 if test x$XML_CONFIG = xno; then
192 AC_MSG_ERROR(Couldn't find xml-config)
194 XML_LIBS=`xml-config --libs`
195 XML_CFLAGS=`xml-config --cflags`
196 AC_CHECK_LIB(xml, xmlDocGetRootElement, ,
197 [ AC_MSG_ERROR(Need version 1.8.1 or better of libxml) ],
201 CORE_LIBS="$CORE_LIBS $XML_LIBS"
202 CORE_CFLAGS="$CORE_CFLAGS $XML_CFLAGS"
205 dnl Next, check for the optional libraries:
206 dnl =======================================
211 esd_save_CFLAGS=$CFLAGS
212 AM_PATH_ESD(0.2.12, HAVE_LIBESD=yes, HAVE_LIBESD=no)
214 CFLAGS=$esd_save_CFLAGS
215 AC_ARG_ENABLE(esdsink,
216 [ --enable-esdsink enable the building of the esdsink],
217 [case "${enableval}" in
219 no) HAVE_LIBESD=no ;;
220 *) AC_MSG_ERROR(bad value ${enableval} for --enable-esdsink) ;;
222 [HAVE_LIBESD=$HAVE_LIBESD])
225 AC_PATH_PROG(ARTSC_CONFIG, artsc-config, no)
226 if test x$ARTSC_CONFIG = xno; then
227 AC_MSG_WARN(Couldn't find artsc-config)
232 ARTSC_LIBS=`artsc-config --libs`
233 ARTSC_CFLAGS=`artsc-config --cflags`
234 dnl AC_CHECK_HEADER uses CPPFLAGS, but not CFLAGS.
235 dnl Assume only suitable flags result from artsc-config --cflags
236 artsc_save_CPPFLAGS=$CPPFLAGS
237 CPPFLAGS="$CPPFLAGS $ARTSC_CFLAGS"
238 AC_CHECK_HEADER(artsc.h,
242 CPPFLAGS=$artsc_save_CPPFLAGS
245 AC_SUBST(ARTSC_CFLAGS)
247 [ --enable-artsd enable the building of artsd plugins],
248 [case "${enableval}" in
251 *) AC_MSG_ERROR(bad value ${enableval} for --enable-artsd) ;;
255 dnl AM_PATH_XMMS(0.1.0, HAVE_LIBXMMS=yes, HAVE_LIBXMMS=no)
258 dnl Check for libasound
260 alsa_save_CFLAGS=$CFLAGS
265 ***** NOTE: These plugins won't be built: gstalsa
267 if test x$HAVE_LIBASOUND = xyes;then
270 AC_MSG_WARN(Alsa 0.9.x not yet supported.
271 ***** NOTE: These plugins won't be built: gstalsa
277 CFLAGS=$alsa_save_CFLAGS
278 AC_ARG_ENABLE(alsasink,
279 [ --enable-alsasink enable the building of the alsasink],
280 [case "${enableval}" in
281 yes) HAVE_LIBASOUND=$HAVE_LIBASOUND ;;
282 no) HAVE_LIBASOUND=no ;;
283 *) AC_MSG_ERROR(bad value ${enableval} for --enable-alsasink) ;;
285 [HAVE_LIBASOUND=$HAVE_LIBASOUND])
288 dnl Check for libaudiofile
289 AC_PATH_PROG(AUDIOFILE_CONFIG, audiofile-config, no)
290 if test x$AUDIOFILE_CONFIG = xno; then
291 AC_MSG_WARN(Couldn't find audiofile-config: can't build afsink)
295 AUDIOFILE_LIBS=`audiofile-config --libs`
296 HAVE_LIBAUDIOFILE=yes
298 AC_SUBST(AUDIOFILE_LIBS)
301 dnl Check for libgdk-pixbuf
302 AC_PATH_PROG(GDK_PIXBUF_CONFIG, gdk-pixbuf-config, no)
303 if test x$GDK_PIXBUF_CONFIG = xno; then
304 AC_MSG_WARN(Couldn't find gdk-pixbuf-config)
309 GDK_PIXBUF_LIBS=`gdk-pixbuf-config --libs`
310 GDK_PIXBUF_CFLAGS=`gdk-pixbuf-config --cflags`
313 AC_SUBST(GDK_PIXBUF_LIBS)
314 AC_SUBST(GDK_PIXBUF_CFLAGS)
317 dnl Check for libgnome
318 AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
319 if test x$GNOME_CONFIG = xno; then
320 AC_MSG_WARN(Couldn't find gnome-config: can't build editor or gstplay)
325 GNOME_LIBS=`gnome-config --libs gnome gnomeui`
326 GNOME_CFLAGS=`gnome-config --cflags gnome gnomeui`
327 GHTTP_LIBS=`gnome-config --libs gnome gnomeui`
328 GHTTP_CFLAGS=`gnome-config --cflags gnome gnomeui`
332 AC_SUBST(GNOME_CFLAGS)
335 dnl Check for libghttp
336 dnl FIXME: need to check for header
337 AC_CHECK_LIB(ghttp, ghttp_request_new,
338 [GHTTP_LIBS="-lghttp"
339 GST_HTTPSRC_GET_TYPE="gst_httpsrc_get_type"
342 [AC_MSG_WARN(Cannot find libghttp: can't build gsthttpsrc)
344 GST_HTTPSRC_GET_TYPE=
348 AC_SUBST(GST_HTTPSRC_GET_TYPE)
350 dnl Check for libglade
351 HAVE_LIBGLADE_GNOME="no"
352 AC_PATH_PROG(LIBGLADE_CONFIG_PATH, libglade-config, no)
353 if test x$LIBGLADE_CONFIG_PATH = xno; then
354 AC_MSG_WARN(Couldn't find libglade-config - Can't build gstplay)
356 LIBGLADE_GNOME_CFLAGS=
358 LIBGLADE_GNOME_LIBS=`libglade-config --libs gnome`
359 LIBGLADE_GNOME_CFLAGS=`libglade-config --cflags gnome`
360 libglade_save_CFLAGS="$CFLAGS"
361 libglade_save_LIBS="$LIBS"
362 CFLAGS="$CFLAGS $LIBGLADE_GNOME_CFLAGS $GTK_CFLAGS"
363 LIBS="$LIBS $LIBGLADE_GNOME_LIBS $GTK_LIBS"
364 AC_TRY_LINK([#include <glade/glade.h>],[glade_gnome_init();],
365 HAVE_LIBGLADE_GNOME="yes",
367 [Couldn't find gnome libraries for libglade - Can't build gstmediaplay and gsteditor])
369 CFLAGS="$libglade_save_CFLAGS"
370 LIBS="$libglade_save_LIBS"
372 AC_SUBST(LIBGLADE_GNOME_LIBS)
373 AC_SUBST(LIBGLADE_GNOME_CFLAGS)
375 dnl Check for Gnome VFS
377 AC_MSG_CHECKING(for Gnome VFS)
378 if gnome-config --libs vfs > /dev/null 2>&1; then
382 AC_MSG_WARN(Did not find Gnome-VFS installed)
385 VFS_LIBS="`gnome-config --libs vfs`"
386 VFS_CFLAGS="`gnome-config --cflags vfs`"
391 dnl Check for atomic.h
392 dnl Note: use AC_CHECK_HEADER not AC_CHECK_HEADERS, because the latter
393 dnl defines the wrong default symbol as well (HAVE_ASM_ATOMIC_H)
394 AC_CHECK_HEADER(asm/atomic.h, HAVE_ATOMIC_H=yes, HAVE_ATOMIC_H=no)
395 dnl Do a compile to check that it has atomic_set (eg, linux 2.0 didn't)
396 if test x$HAVE_ATOMIC_H = xyes; then
398 #include "asm/atomic.h"
399 main() { atomic_t t; atomic_set(&t,0); atomic_inc(&t); atomic_add(1,&t);return 0;}
402 if test x$HAVE_ATOMIC_H = xyes; then
403 AC_MSG_WARN(Atomic reference counting is out of date: doing without.)
409 AC_MSG_WARN(Can't check properly for atomic reference counting. Assuming OK.)
414 dnl Check for X11 extensions
416 if test "-DX_DISPLAY_MISSING" = "$X_CFLAGS"; then
417 AC_MSG_ERROR(can not find X11)
421 AC_SUBST(X_EXTRA_LIBS)
425 dnl Check for the Xv library
427 AC_CHECK_LIB(Xv, XvQueryExtension,
430 $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS
433 AC_CHECK_HEADER(X11/extensions/Xv.h, :, HAVE_LIBXV=no)
434 AC_CHECK_HEADER(X11/extensions/Xvlib.h, :, HAVE_LIBXV=no)
436 dnl Check for OSS audio
437 AC_CHECK_HEADER(sys/soundcard.h, HAVE_OSS=yes, HAVE_OSS=no)
440 AC_CHECK_HEADER(xaudio/decoder.h,
441 AC_DEFINE(HAVE_XAUDIO, 1, [Define if xaudio is available])
444 ***** NOTE: These plugins won't be built: gstxa
450 AC_MSG_CHECKING(MAD library)
451 AC_CHECK_LIB(mad, mad_decoder_finish,
453 AC_DEFINE(HAVE_LIBMAD, 1, [Define if libmad is available]),
455 ***** NOTE: These plugins won't be built: mad
460 dnl Check for libvorbis
461 AC_MSG_CHECKING(Vorbis library)
462 AC_CHECK_LIB(vorbis, ogg_sync_init,
464 AC_DEFINE(HAVE_VORBIS, 1, [Define if vorbis library is available]),
466 ***** NOTE: These plugins won't be built: vorbisdec vorbisenc
471 dnl Check for libjpeg
472 AC_MSG_CHECKING(libjpeg library)
473 AC_CHECK_LIB(jpeg, jpeg_set_defaults,
475 AC_DEFINE(HAVE_LIBJPEG, 1, [Define if libjpeg is available]),
477 ***** NOTE: These plugins won't be built: jpegdec jpegenc
482 dnl Check for libHermes
483 AC_MSG_CHECKING(Hermes library)
484 AC_CHECK_LIB(Hermes, Hermes_ConverterInstance,
486 AC_DEFINE(HAVE_LIBHERMES, 1, [Define if Hermes library is available]),
488 ***** NOTE: These plugins won't be built: colorspace
492 AC_CHECK_HEADER(Hermes/Hermes.h, :, HAVE_LIBHERMES=no)
495 AC_MSG_CHECKING(GSM library)
496 AC_CHECK_LIB(gsm, gsm_create,
498 AC_DEFINE(HAVE_LIBGSM, 1, [Define if GSM library is available]),
500 ***** NOTE: These plugins won't be built: gsmdec, gsmenc
504 AC_CHECK_HEADER(gsm/gsm.h, :, HAVE_LIBGSM=no)
506 dnl Check for cdparanoia
507 AC_MSG_CHECKING(CDparanoia library)
509 AC_CHECK_LIB(cdda_interface, cdda_open, : , HAVE_CDPARANOIA=no, )
510 AC_CHECK_HEADER(cdda_interface.h, :, HAVE_CDPARANOIA=no)
511 AC_CHECK_LIB(cdda_paranoia, paranoia_init, : , HAVE_CDPARANOIA=no, -lcdda_interface )
512 AC_CHECK_HEADER(cdda_paranoia.h, :, HAVE_CDPARANOIA=no)
514 dnl Check for liblame
515 AC_MSG_CHECKING(LAME library)
516 AC_CHECK_LIB(mp3lame, lame_init, HAVE_LIBLAME=yes, HAVE_LIBLAME=no, )
517 AC_CHECK_HEADER(lame/lame.h, :, HAVE_LIBLAME=no)
519 dnl Check for libshout
520 AC_MSG_CHECKING(Shout library)
521 AC_CHECK_LIB(shout, shout_init_connection, HAVE_LIBSHOUT=yes, HAVE_LIBSHOUT=no, )
522 AC_CHECK_HEADER(shout/shout.h, :, HAVE_LIBSHOUT=no)
524 dnl Check for mpeg2dec
525 AC_MSG_CHECKING(mpeg2dec library)
526 AC_CHECK_LIB(mpeg2, mpeg2_init, HAVE_MPEG2DEC=yes, HAVE_MPEG2DEC=no, )
527 AC_CHECK_HEADER(mpeg2dec/mpeg2.h, :, HAVE_MPEG2DEC=no)
530 AC_MSG_CHECKING(rtp library)
531 AC_CHECK_LIB(rtp, rtp_packet_new_take_data, HAVE_LIBRTP=yes, HAVE_LIBRTP=no, $GLIB_LIBS $GLIB_CFLAGS)
532 AC_CHECK_HEADER(rtp/rtp-packet.h, :, HAVE_LIBRTP=no)
533 AC_CHECK_HEADER(rtp/rtcp-packet.h, :, HAVE_LIBRTP=no)
534 AC_CHECK_HEADER(rtp/rtp-audio.h, :, HAVE_LIBRTP=no)
537 SUBSTFOR configure.ac:AC_DIAGNOSE([obsolete],[instead of using `AC_LANG', `AC_LANG_SAVE',
538 SUBSTFOR configure.ac:and `AC_LANG_RESTORE', you should use `AC_LANG_PUSH' and `AC_LANG_POP'.])
539 SUBSTFOR configure.ac:
540 SUBSTFOR configure.ac:AC_LANG_PUSH(C++)
541 SUBSTFOR configure.in:AC_LANG_SAVE
542 SUBSTFOR configure.in:AC_LANG_CPLUSPLUS
543 AC_MSG_CHECKING(arts library)
544 dnl AC_CHECK_LIB(artsflow, convert_stereo_ifloat_2float, HAVE_ARTS=yes, HAVE_ARTS=no, -lmcop -lartsflow_idl)
545 dnl AC_CHECK_HEADER(arts/artsflow.h, HAVE_ARTS=yes, HAVE_ARTS=no)
546 SUBSTFOR configure.ac:AC_LANG_POP(C++)
547 SUBSTFOR configure.in:AC_LANG_RESTORE
549 dnl Check for libraw1394
550 AC_MSG_CHECKING(raw1394 library)
551 AC_CHECK_LIB(raw1394, raw1394_get_handle, HAVE_RAW1394=yes, HAVE_RAW1394=no, )
552 AC_CHECK_HEADER(libraw1394/raw1394.h, :, HAVE_RAW1394=no)
555 AC_MSG_CHECKING(libdv)
556 AC_CHECK_LIB(dv, dv_init, HAVE_LIBDV=yes, HAVE_LIBDV=no, -lm $GLIB_LIBS $GLIB_CFLAGS)
557 AC_CHECK_HEADER(libdv/dv.h, :, HAVE_LIBDV=no)
560 AC_MSG_CHECKING(aalib)
561 AC_CHECK_LIB(aa, aa_init, HAVE_LIBAA=yes, HAVE_LIBAA=no, )
562 AC_CHECK_HEADER(aalib.h, :, HAVE_LIBAA=no)
564 dnl Check for quicktime
565 AC_MSG_CHECKING(openquicktime)
566 AC_CHECK_LIB(openquicktime, quicktime_init, HAVE_LIBOPENQUICKTIME=yes, HAVE_LIBOPENQUICKTIME=no, )
567 AC_CHECK_HEADER(openquicktime/openquicktime.h, :, HAVE_LIBOPENQUICKTIME=no)
570 dnl check if css-auth.c exists (FIXME)
571 AC_MSG_CHECKING(DVD CSS code)
572 if test -f plugins/dvdsrc/css-auth.c
582 AC_MSG_CHECKING(SDLlib)
583 AC_CHECK_LIB(SDL, SDL_Init, HAVE_LIBSDL=yes, HAVE_LIBSDL=no, -L/usr/lib -L/usr/local/lib -lpthread)
584 AC_CHECK_HEADER(SDL/SDL.h, :, HAVE_LIBSDL=no)
588 AC_MSG_CHECKING(for SDL)
589 if sdl-config --libs > /dev/null 2>&1; then
593 AC_MSG_RESULT(not found)
596 SDL_LIBS="`sdl-config --libs`"
597 SDL_CFLAGS="`sdl-config --cflags`"
602 dnl Check for linux/cdrom.h
603 AC_CHECK_HEADER(linux/cdrom.h,
604 HAVE_LINUX_CDROM=yes, HAVE_LINUX_CDROM=no
607 dnl Check for linux/videodev.h
608 AC_CHECK_HEADER(linux/videodev.h,
609 HAVE_LINUX_VIDEODEV=yes, HAVE_LINUX_VIDEODEV=no
613 dnl ######################################################################
614 dnl # Check command line parameters, and set shell variables accordingly #
615 dnl ######################################################################
617 AC_ARG_ENABLE(gdk-pixbuf,
618 [ --enable-gdk-pixbuf use gdk pixbuf, if available],
619 [case "${enableval}" in
620 yes) USE_GDK_PIXBUF=$HAVE_GDK_PIXBUF ;;
621 no) USE_GDK_PIXBUF=no ;;
622 *) AC_MSG_ERROR(bad value ${enableval} for --enable-gdk-pixbuf) ;;
624 [USE_GDK_PIXBUF=$HAVE_GDK_PIXBUF]) dnl Default value
626 AC_ARG_ENABLE(libghttp,
627 [ --enable-libghttp use the ghttp library, if available],
628 [case "${enableval}" in
629 yes) USE_LIBGHTTP=$HAVE_LIBGHTTP ;;
630 no) USE_LIBGHTTP=no ;;
631 *) AC_MSG_ERROR(bad value ${enableval} for --enable-libghttp) ;;
633 [USE_LIBGHTTP=$HAVE_LIBGHTTP]) dnl Default value
635 AC_ARG_ENABLE(libmmx,
636 [ --enable-libmmx use libmmx, if available],
637 [case "${enableval}" in
638 yes) USE_LIBMMX=$HAVE_LIBMMX ;;
640 *) AC_MSG_ERROR(bad value ${enableval} for --enable-libmmx) ;;
642 [USE_LIBMMX=$HAVE_LIBMMX]) dnl Default value
644 AC_ARG_ENABLE(atomic,
645 [ --enable-atomic use atomic reference counting header],
646 [case "${enableval}" in
647 yes) USE_ATOMIC_H=$HAVE_ATOMIC_H;;
648 noset) USE_ATOMIC_H=$HAVE_ATOMIC_H;;
649 no) USE_ATOMIC_H=no;;
650 *) AC_MSG_ERROR(bad value ${enableval} for --enable-atomic) ;;
652 [USE_ATOMIC_H=$HAVE_ATOMIC_H]) dnl Default value
654 AC_ARG_ENABLE(plugin-srcdir,
655 [ --enable-plugin-srcdir allow tests/demos to use non-installed plugins ],
656 [case "${enableval}" in
657 yes) PLUGINS_USE_SRCDIR=yes ;;
658 no) PLUGINS_USE_SRCDIR=no ;;
659 *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugin-srcdir) ;;
661 [PLUGINS_USE_SRCDIR=no]) dnl Default value
664 [ --enable-debug compile with -g debugging info],
665 [case "${enableval}" in
666 yes) USE_DEBUG=yes ;;
668 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
670 [USE_DEBUG=no]) dnl Default value
672 AC_ARG_ENABLE(debug-verbose,
673 [ --enable-debug-verbose spews lots of useless debugging info at runtime],
674 [case "${enableval}" in
675 yes) USE_DEBUG_VERBOSE=yes ;;
676 no) USE_DEBUG_VERBOSE=no ;;
677 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug-verbose) ;;
679 [USE_DEBUG_VERBOSE=no]) dnl Default value
682 [ --enable-info turns verbose info at runtime on by default],
683 [case "${enableval}" in
684 yes) USE_DEBUG_INFO_VERBOSE=yes ;;
685 no) USE_DEBUG_INFO_VERBOSE=no ;;
686 *) AC_MSG_ERROR(bad value ${enableval} for --enable-info) ;;
688 [USE_DEBUG_INFO_VERBOSE=no]) dnl Default value
690 AC_ARG_ENABLE(info-system,
691 [ --disable-info-system entirely disables the info debugging system],
692 [case "${enableval}" in
693 yes) DISABLE_DEBUG_INFO=no ;;
694 no) DISABLE_DEBUG_INFO=yes ;;
695 *) AC_MSG_ERROR(bad value ${enableval} for --disable-info) ;;
697 [DISABLE_DEBUG_INFO=no]) dnl Default value
699 AC_ARG_ENABLE(debug-color,
700 [ --disable-debug-color disables color output of DEBUG and INFO output],
701 [case "${enableval}" in
702 yes) DISABLE_DEBUG_COLOR=no ;;
703 no) DISABLE_DEBUG_COLOR=yes ;;
704 *) AC_MSG_ERROR(bad value ${enableval} for --disable-info) ;;
706 [DISABLE_DEBUG_COLOR=no]) dnl Default value
708 AC_ARG_ENABLE(profiling,
709 [ --enable-profiling adds -pg to compiler commandline, for profiling],
710 [case "${enableval}" in
711 yes) USE_PROFILING=yes ;;
712 no) UES_PROFILING=no ;;
713 *) AC_MSG_ERROR(bad value ${enableval} for --enable-profiling) ;;
715 [USE_PROFILING=no]) dnl Default value
718 GST_CONFIG_DIR="/etc/gstreamer"
719 AC_ARG_WITH(configdir,
720 [ --with-configdir specify path to use for configdir],
721 [case "${withval}" in
722 yes) AC_MSG_ERROR(bad value ${withval} for --with-configdir) ;;
723 no) AC_MSG_ERROR(bad value ${withval} for --with-configdir) ;;
724 *) GST_CONFIG_DIR="${withval}" ;;
726 [:]) dnl Default value
729 GST_WIN32_LIBDIR="/usr/lib/win32"
730 AC_ARG_WITH(win32_libdir,
731 [ --with-win32-libdir specify location for win32 DLLs],
732 [case "${withval}" in
733 yes) AC_MSG_ERROR(bad value ${withval} for --with-win32-libdir) ;;
734 no) AC_MSG_ERROR(bad value ${withval} for --with-win32-libdir) ;;
735 *) GST_WIN32_LIBDIR="${withval}" ;;
737 [:]) dnl Default value
739 AC_ARG_ENABLE(docs-build,
740 [ --enable-docs-build enable building of documentation],
741 [case "${enableval}" in
742 yes) BUILD_DOCS=yes ;;
744 *) AC_MSG_ERROR(bad value ${enableval} for --enable-docs-build) ;;
746 [BUILD_DOCS=no]) dnl Default value
748 AC_ARG_ENABLE(plugin-docs,
749 [ --enable-plugin-docs enable the building of plugin documentation
750 (this is currently broken, so off by default)],
751 [case "${enableval}" in
752 yes) BUILD_PLUGIN_DOCS=yes ;;
753 no) BUILD_PLUGIN_DOCS=no ;;
754 *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugin-docs) ;;
756 [BUILD_PLUGIN_DOCS=no]) dnl Default value
761 dnl ################################################
762 dnl # Set defines according to variables set above #
763 dnl ################################################
766 dnl These should be "USE_*" instead of "HAVE_*", but some packages expect
767 dnl HAVE_ and it is likely to be easier to stick with the old name
768 if test "x$USE_GDK_PIXBUF" = xyes; then
769 AC_DEFINE(HAVE_GDK_PIXBUF, 1, [Define if GDK pixbuf library is available])
772 if test "x$USE_LIBGHTTP" = xyes; then
773 AC_DEFINE(HAVE_LIBGHTTP, 1, [Define if ghttp library is available])
776 if test "x$USE_LIBMMX" = xyes; then
777 AC_DEFINE(HAVE_LIBMMX, 1, [Define if libmmx is available])
780 if test "x$USE_ATOMIC_H" = xyes; then
781 AC_DEFINE(HAVE_ATOMIC_H, 1, [Define if atomic.h header file is available])
784 if test "x$PLUGINS_USE_SRCDIR" = xyes; then
785 AC_DEFINE(PLUGINS_USE_SRCDIR, 1, [Define if plugins should be loaded from the build tree - only developers should use this])
788 if test "x$USE_DEBUG" = xyes; then
792 if test "x$USE_DEBUG_VERBOSE" = xyes; then
793 AC_DEFINE(GST_DEBUG_ENABLED, 1, [Define if code to assist debugging should be compiled in])
796 if test "x$DISABLE_DEBUG_INFO" = xno; then
797 AC_DEFINE(GST_INFO_ENABLED, 1, [Define if code to produce informative messages should be compiled])
798 if test "x$USE_DEBUG_INFO_VERBOSE" = xyes; then
799 AC_DEFINE(GST_INFO_ENABLED_VERBOSE, 1, [Define if default should be to display all informative messages])
803 if test "x$DISABLE_DEBUG_COLOR" = xno; then
804 AC_DEFINE(GST_DEBUG_COLOR, 1, [Define if debugging messages should be colorised])
807 if test "x$USE_PROFILING" = xyes; then
809 FOMIT_FRAME_POINTER=""
811 FOMIT_FRAME_POINTER="-fomit-frame-pointer"
814 if test "x$HAVE_LIBXV" = xyes; then
815 AC_DEFINE(HAVE_LIBXV)
818 if test "x$HAVE_OSS" = xyes; then
822 if test "x$HAVE_XAUDIO" = xyes; then
823 AC_DEFINE(HAVE_XAUDIO)
826 if test "x$HAVE_LIBMAD" = xyes; then
827 AC_DEFINE(HAVE_LIBMAD)
830 if test "x$HAVE_VORBIS" = xyes; then
831 AC_DEFINE(HAVE_VORBIS)
834 if test "x$HAVE_LIBJPEG" = xyes; then
835 AC_DEFINE(HAVE_LIBJPEG)
838 if test "x$HAVE_LIBSDL" = xyes; then
839 AC_DEFINE(HAVE_LIBSDL)
842 if test "x$HAVE_LIBHERMES" = "xyes"; then
843 AC_DEFINE(HAVE_LIBHERMES)
846 if test "x$HAVE_CSSAUTH" = xyes; then
847 AC_DEFINE(HAVE_CSSAUTH)
850 if test "x$HAVE_LINUX_CDROM" = xyes; then
851 AC_DEFINE(HAVE_LINUX_CDROM)
854 if test "x$HAVE_LINUX_VIDEODEV" = xyes; then
855 AC_DEFINE(HAVE_LINUX_VIDEODEV)
858 if test "x$HAVE_MPEG2DEC" = xyes; then
859 AC_DEFINE(HAVE_MPEG2DEC)
862 if test "x$HAVE_LIBAUDIOFILE" = xyes; then
863 AC_DEFINE(HAVE_LIBAUDIOFILE)
866 if test "x$HAVE_LIBGSM" = xyes; then
867 AC_DEFINE(HAVE_LIBGSM)
870 dnl #############################
871 dnl # Set automake conditionals #
872 dnl #############################
874 dnl These should be "USE_*" instead of "HAVE_*", but some packages expect
875 dnl HAVE_ and it is likely to be easier to stick with the old name
876 AM_CONDITIONAL(HAVE_CPU_I386, test "x$HAVE_CPU_I386" = "xyes")
877 AM_CONDITIONAL(HAVE_CPU_PPC, test "x$HAVE_CPU_PPC" = "xyes")
878 AM_CONDITIONAL(HAVE_CPU_ALPHA, test "x$HAVE_CPU_ALPHA" = "xyes")
879 AM_CONDITIONAL(HAVE_CPU_ARM, test "x$HAVE_CPU_ARM" = "xyes")
880 AM_CONDITIONAL(HAVE_CPU_SPARC, test "x$HAVE_CPU_SPARC" = "xyes")
881 AM_CONDITIONAL(HAVE_GDK_PIXBUF, test "x$USE_GDK_PIXBUF" = "xyes")
882 AM_CONDITIONAL(HAVE_LIBGHTTP, test "x$USE_LIBGHTTP" = "xyes")
883 AM_CONDITIONAL(HAVE_LIBAUDIOFILE, test "x$HAVE_LIBAUDIOFILE" = "xyes")
884 AM_CONDITIONAL(HAVE_LIBMMX, test "x$USE_LIBMMX" = "xyes")
885 AM_CONDITIONAL(HAVE_ATOMIC_H, test "x$USE_ATOMIC_H" = "xyes")
886 AM_CONDITIONAL(HAVE_OSS, test "x$HAVE_OSS" = "xyes")
887 AM_CONDITIONAL(HAVE_XAUDIO, test "x$HAVE_XAUDIO" = "xyes")
888 AM_CONDITIONAL(HAVE_LIBMAD, test "x$HAVE_LIBMAD" = "xyes")
889 AM_CONDITIONAL(HAVE_LINUX_CDROM, test "x$HAVE_LINUX_CDROM" = "xyes")
890 AM_CONDITIONAL(HAVE_LINUX_VIDEODEV, test "x$HAVE_LINUX_VIDEODEV" = "xyes")
891 AM_CONDITIONAL(HAVE_CSSAUTH, test "x$HAVE_CSSAUTH" = "xyes")
892 AM_CONDITIONAL(HAVE_VORBIS, test "x$HAVE_VORBIS" = "xyes")
893 AM_CONDITIONAL(HAVE_LIBJPEG, test "x$HAVE_LIBJPEG" = "xyes")
894 AM_CONDITIONAL(HAVE_LIBSDL, test "x$HAVE_LIBSDL" = "xyes")
895 AM_CONDITIONAL(HAVE_LIBHERMES, test "x$HAVE_LIBHERMES" = "xyes")
896 AM_CONDITIONAL(HAVE_NASM, test "x$HAVE_NASM" = "xyes")
897 AM_CONDITIONAL(HAVE_LIBGLADE_GNOME, test "x$HAVE_LIBGLADE_GNOME" = "xyes")
898 AM_CONDITIONAL(HAVE_GNOME, test "x$HAVE_GNOME" = "xyes")
899 AM_CONDITIONAL(HAVE_LIBXV, test "x$HAVE_LIBXV" = "xyes")
900 AM_CONDITIONAL(HAVE_GTK_DOC, $HAVE_GTK_DOC)
901 AM_CONDITIONAL(BUILD_DOCS, test "x$BUILD_DOCS" = "xyes")
902 AM_CONDITIONAL(BUILD_PLUGIN_DOCS, test "x$BUILD_PLUGIN_DOCS" = "xyes")
903 AM_CONDITIONAL(HAVE_DB2HTML, $HAVE_DB2HTML)
904 AM_CONDITIONAL(HAVE_DB2PS, $HAVE_DB2PS)
905 AM_CONDITIONAL(HAVE_PS2PDF, $HAVE_PS2PDF)
906 AM_CONDITIONAL(HAVE_FIG2DEV_PNG, $HAVE_FIG2DEV_PNG)
907 AM_CONDITIONAL(HAVE_FIG2DEV_EPS, $HAVE_FIG2DEV_EPS)
908 AM_CONDITIONAL(HAVE_CDPARANOIA, test "x$HAVE_CDPARANOIA" = "xyes")
909 AM_CONDITIONAL(HAVE_LIBLAME, test "x$HAVE_LIBLAME" = "xyes")
910 AM_CONDITIONAL(HAVE_LIBSHOUT, test "x$HAVE_LIBSHOUT" = "xyes")
911 AM_CONDITIONAL(HAVE_LIBESD, test "x$HAVE_LIBESD" = "xyes")
912 AM_CONDITIONAL(HAVE_ARTSC, test "x$HAVE_ARTSC" = "xyes")
913 AM_CONDITIONAL(HAVE_LIBASOUND, test "x$HAVE_LIBASOUND" = "xyes")
914 AM_CONDITIONAL(HAVE_MPEG2DEC, test "x$HAVE_MPEG2DEC" = "xyes")
915 AM_CONDITIONAL(HAVE_LIBXMMS, test "x$HAVE_LIBXMMS" = "xyes")
916 AM_CONDITIONAL(HAVE_LIBRTP, test "x$HAVE_LIBRTP" = "xyes")
917 AM_CONDITIONAL(HAVE_ARTS, test "x$HAVE_ARTS" = "xyes")
918 AM_CONDITIONAL(HAVE_RAW1394, test "x$HAVE_RAW1394" = "xyes")
919 AM_CONDITIONAL(HAVE_LIBDV, test "x$HAVE_LIBDV" = "xyes")
920 AM_CONDITIONAL(HAVE_LIBAA, test "x$HAVE_LIBAA" = "xyes")
921 AM_CONDITIONAL(HAVE_GNOME_VFS, test "x$HAVE_GNOME_VFS" = "xyes")
922 AM_CONDITIONAL(HAVE_LIBOPENQUICKTIME, test "x$HAVE_LIBOPENQUICKTIME" = "xyes")
923 AM_CONDITIONAL(HAVE_LIBGSM, test "x$HAVE_LIBGSM" = "xyes")
924 AM_CONDITIONAL(PLUGINS_USE_SRCDIR, test "x$PLUGINS_USE_SRCDIR" = "xyes")
927 dnl ############################
928 dnl # Set up some more defines #
929 dnl ############################
931 dnl Set location of configuration dir.
932 AC_DEFINE_UNQUOTED(GST_CONFIG_DIR,"$GST_CONFIG_DIR")
933 AC_SUBST(GST_CONFIG_DIR)
935 dnl Set location of windows dll dir.
936 AC_DEFINE_UNQUOTED(GST_WIN32_LIBDIR,"$GST_WIN32_LIBDIR")
937 AC_SUBST(GST_WIN32_LIBDIR)
939 dnl Set location of plugin directory
940 if test "x${prefix}" = "xNONE"; then
941 PLUGINS_DIR=${ac_default_prefix}/lib/gst
943 PLUGINS_DIR=${prefix}/lib/gst
945 AC_DEFINE_UNQUOTED(PLUGINS_DIR,"$PLUGINS_DIR")
946 AC_SUBST(PLUGINS_DIR)
948 dnl Set location of uninstalled plugin directory
949 PLUGINS_SRCDIR=`pwd`/$srcdir
950 AC_DEFINE_UNQUOTED(PLUGINS_SRCDIR,"$PLUGINS_SRCDIR")
951 AC_SUBST(PLUGINS_SRCDIR)
955 dnl ##############################
956 dnl # Set up the defaults cflags #
957 dnl ##############################
959 if test "x$USE_PROFILING" = xyes; then
960 CFLAGS="$CORE_CFLAGS $CFLAGS -Wall"
962 CFLAGS="$CORE_CFLAGS $CFLAGS -O6 -Wall"
964 LIBS="$CORE_LIBS $LIBS"
966 AC_SUBST(CORE_CFLAGS)
968 dnl Vars for everyone else
969 GST_LIBS="\$(top_builddir)/gst/libgst.la"
970 GST_CFLAGS="-I\$(top_srcdir) -I\$(top_srcdir)/include"
974 dnl Private vars for libgst only
976 LIBGST_CFLAGS="$CFLAGS $GST_CFLAGS"
977 AC_SUBST(LIBGST_LIBS)
978 AC_SUBST(LIBGST_CFLAGS)
980 dnl CFLAGS for everyone else
981 CFLAGS="$CFLAGS $GST_CFLAGS"
983 dnl Needed to make automake 1.4g happy.
984 dnl FIXME: find as properly, rather than just using CC
987 dnl Having to AC_SUBST these is messy, but doesn't seem to do any harm.
988 dnl I'm not sure whether it's really necessary, but it removes some warnings
989 dnl when automake 1.4g runs, and may be beneficial elsewhere.
998 dnl #############################
999 dnl # Configure the subpackages #
1000 dnl #############################
1002 dnl AC_CONFIG_SUBDIRS(gist)
1003 dnl AC_CONFIG_SUBDIRS(plugins/mp3decode/xing/libxing)
1005 dnl ##################################################
1006 dnl # Prepare informative messages to display at end #
1007 dnl ##################################################
1011 if test "x$PLUGINS_USE_SRCDIR" = xyes; then
1012 infomessages="$infomessages
1013 *** Warning: You have configured using the --enable-plugin-srcdir option.
1015 This option is for development purposes only: binaries built with
1016 it should be used with code in the build tree only. To build an
1017 installable version, use ./configure without the --enable-plugin-srcdir
1018 option. Note that the autogen.sh script supplies the plugin srcdir
1019 option automatically - it cannot be used to configure installable builds.
1024 dnl #########################
1025 dnl # Make the output files #
1026 dnl #########################
1028 SUBSTFOR configure.ac:AC_OUTPUT(
1029 SUBSTFOR configure.ac:Makefile
1030 SUBSTFOR configure.in:AC_OUTPUT([Makefile
1032 include/wine/Makefile
1036 gst/elements/Makefile
1037 gst/autoplug/Makefile
1040 libs/colorspace/Makefile
1041 libs/videoscale/Makefile
1042 libs/getbits/Makefile
1043 libs/putbits/Makefile
1044 libs/winloader/Makefile
1047 plugins/aasink/Makefile
1048 plugins/alsa/Makefile
1050 plugins/audiofile/Makefile
1051 plugins/audioscale/Makefile
1052 plugins/avi/Makefile
1053 plugins/avi/wincodec/Makefile
1054 plugins/flx/Makefile
1055 plugins/jpeg/Makefile
1056 plugins/mp3decode/Makefile
1057 plugins/mp3decode/types/Makefile
1058 plugins/mp3decode/xa/Makefile
1059 plugins/mp3decode/mpg123/Makefile
1060 plugins/mp3decode/mad/Makefile
1061 plugins/mp3decode/parse/Makefile
1062 plugins/mp3encode/Makefile
1063 plugins/mp3encode/lame/Makefile
1064 plugins/mpeg2/Makefile
1065 plugins/mpeg2/parse/Makefile
1066 plugins/mpeg2/ac3parse/Makefile
1067 plugins/mpeg2/ac3dec/Makefile
1068 plugins/mpeg2/video/Makefile
1069 plugins/mpeg2/mpeg2enc/Makefile
1070 plugins/mpeg2/mpeg2dec/Makefile
1071 plugins/mpeg2/subtitles/Makefile
1072 plugins/mpeg2/videoparse/Makefile
1073 plugins/mpeg2/mpegtypes/Makefile
1074 plugins/mpeg1/Makefile
1075 plugins/mpeg1/mpegtypes/Makefile
1076 plugins/mpeg1/mpeg_play/Makefile
1077 plugins/mpeg1/mpegaudio/Makefile
1078 plugins/mpeg1/parse/Makefile
1079 plugins/mpeg1/system_encode/Makefile
1080 plugins/mpeg1/mpeg1encoder/Makefile
1081 plugins/mpeg1video/Makefile
1082 plugins/mpeg1video/parse/Makefile
1083 plugins/oss/Makefile
1084 plugins/rtp/Makefile
1085 plugins/rtp/rtpsend/Makefile
1086 plugins/mulaw/Makefile
1087 plugins/alaw/Makefile
1088 plugins/filters/Makefile
1089 plugins/filters/smooth/Makefile
1090 plugins/filters/median/Makefile
1091 plugins/filters/ladspa/Makefile
1092 plugins/filters/stereo2mono/Makefile
1093 plugins/filters/mono2stereo/Makefile
1094 plugins/filters/intfloatconvert/Makefile
1095 plugins/filters/passthrough/Makefile
1096 plugins/filters/adder/Makefile
1097 plugins/filters/colorspace/Makefile
1098 plugins/filters/volenv/Makefile
1099 plugins/filters/level/Makefile
1100 plugins/gnomevfs/Makefile
1101 plugins/icecast/Makefile
1102 plugins/icecast/icecastsend/Makefile
1103 plugins/effects/Makefile
1104 plugins/effects/stereo/Makefile
1105 plugins/effects/volume/Makefile
1106 plugins/visualization/Makefile
1107 plugins/visualization/spectrum/Makefile
1108 plugins/visualization/vumeter/Makefile
1109 plugins/visualization/synaesthesia/Makefile
1110 plugins/visualization/smoothwave/Makefile
1111 plugins/videoscale/Makefile
1112 plugins/xvideosink/Makefile
1113 plugins/wav/Makefile
1114 plugins/dvdsrc/Makefile
1115 plugins/vcdsrc/Makefile
1116 plugins/rtjpeg/Makefile
1117 plugins/vorbis/Makefile
1118 plugins/capture/Makefile
1119 plugins/capture/v4l/Makefile
1120 plugins/cdparanoia/Makefile
1121 plugins/esd/Makefile
1122 plugins/esd/esdsink/Makefile
1123 plugins/artsd/Makefile
1124 plugins/quicktime/Makefile
1125 plugins/xmms/Makefile
1126 plugins/arts/Makefile
1127 plugins/gsm/Makefile
1128 plugins/1394/Makefile
1129 plugins/sdlsink/Makefile
1132 dnl components/bonobo-gstmediaplay/Makefile
1135 test/bindings/Makefile
1137 tests/sched/Makefile
1140 testsuite/capsnego/Makefile
1141 testsuite/refcounting/Makefile
1144 examples/autoplug/Makefile
1145 examples/helloworld/Makefile
1146 examples/helloworld2/Makefile
1147 examples/launch/Makefile
1148 examples/queue/Makefile
1149 examples/queue2/Makefile
1150 examples/queue3/Makefile
1151 examples/queue4/Makefile
1152 examples/thread/Makefile
1153 examples/mixer/Makefile
1154 examples/launch/Makefile
1155 examples/xml/Makefile
1156 examples/plugins/Makefile
1157 examples/typefind/Makefile
1158 examples/mixer/Makefile
1160 editor/pixmaps/Makefile
1164 docs/gst/gstreamer.types
1166 docs/plugins/Makefile
1167 docs/plugins/gstreamer-plugins.types
1168 docs/manual/Makefile
1174 gstreamer-uninstalled.pc
1175 SUBSTFOR configure.in:gstreamer.spec])
1176 SUBSTFOR configure.in:AC_OUTPUT_COMMANDS([chmod +x gstreamer-config;
1177 SUBSTFOR configure.in:echo "$infomessages"])
1178 SUBSTFOR configure.ac:gstreamer.spec,
1179 SUBSTFOR configure.ac:chmod +x gstreamer-config
1180 SUBSTFOR configure.ac:echo "$infomessages"
1181 SUBSTFOR configure.ac:)