1 dnl Note: this file is now the main autoconf file
3 AC_CONFIG_SRCDIR([gst/gstobject.h])
5 AC_CANONICAL_TARGET([])
7 AM_CONFIG_HEADER(config.h)
13 dnl we use the release tag during CVS development
14 GST_VERSION_RELEASE=`date +%Y%m%d`
16 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_MICRO
21 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
22 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
25 AC_DEFINE_UNQUOTED(GST_VERSION_RELEASE, "$GST_VERSION_RELEASE")
26 AC_SUBST(GST_VERSION_RELEASE)
32 GST_LIBVERSION=$GST_CURRENT:$GST_REVISION:$GST_AGE
34 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
35 dnl Add parameters for aclocal
36 dnl (This must come after AM_INIT_AUTOMAKE, since it modifies ACLOCAL)
37 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
39 AC_SUBST(GST_VERSION_MAJOR)
40 AC_SUBST(GST_VERSION_MINOR)
41 AC_SUBST(GST_VERSION_MICRO)
45 AC_SUBST(GST_REVISION)
47 AC_SUBST(GST_LIBVERSION)
59 dnl We disable static building for development, for time savings
60 dnl *NOTE*: dnl this line before release, so release does static too
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])
86 dnl fix pkg-config's broken default search path
87 if test -z $PKG_CONFIG_PATH; then
88 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
90 export PKG_CONFIG_PATH
92 dnl Check for pkgconfig
93 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, true, false)
96 AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ])
98 if test "x$with_html_dir" = "x" ; then
99 HTML_DIR='${datadir}/gst/html'
101 HTML_DIR=$with_html_dir
106 AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-mkdb, true, false)
107 gtk_doc_min_version=0.6
108 if $HAVE_GTK_DOC ; then
109 gtk_doc_version=`gtkdoc-mkdb --version`
110 AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version])
112 exit (("$gtk_doc_version" =~ /^[[0-9]]+\.[[0-9]]+$/) &&
113 ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1);
121 GTK_DOC_SCANOBJ=gtkdoc-scanobj
123 AC_SUBST(HAVE_GTK_DOC)
124 AC_SUBST(GTK_DOC_SCANOBJ)
126 dnl check for docbook tools
127 AC_CHECK_PROG(HAVE_XSLTPROC, xsltproc, true, false)
128 AC_CHECK_PROG(HAVE_PDFTOPS, pdftops, true, false)
129 dnl this does not yet work properly, at least on debain -- wingo
132 dnl check for image conversion tool
133 AC_CHECK_PROG(HAVE_FIG2DEV, fig2dev, true, false)
135 dnl The following is a hack: if fig2dev doesn't display an error message
136 dnl for the desired type, we assume it supports it.
137 HAVE_FIG2DEV_PNG=false
138 if test "x$HAVE_FIG2DEV" = "xtrue" ; then
139 fig2dev_quiet=`fig2dev -L png </dev/null 2>&1 >/dev/null`
140 if test "x$fig2dev_quiet" = "x" ; then
141 HAVE_FIG2DEV_PNG=true
144 HAVE_FIG2DEV_PDF=false
145 if test "x$HAVE_FIG2DEV" = "xtrue" ; then
146 fig2dev_quiet=`fig2dev -L pdf </dev/null 2>&1 >/dev/null`
147 if test "x$fig2dev_quiet" = "x" ; then
148 HAVE_FIG2DEV_PDF=true
153 dnl Set up conditionals for (target) architecture:
154 dnl ==============================================
157 case "x${target_cpu}" in
158 xi?86 | k?) HAVE_CPU_I386=yes
159 AC_DEFINE(HAVE_CPU_I386, 1, [Define if the target CPU is an x86])
160 dnl FIXME could use some better detection
162 case "x${target_cpu}" in
164 *) AC_DEFINE(HAVE_RDTSC) ;;
166 xpowerpc) HAVE_CPU_PPC=yes
167 AC_DEFINE(HAVE_CPU_PPC, 1, [Define if the target CPU is a PPC]) ;;
168 xalpha) HAVE_CPU_ALPHA=yes
169 AC_DEFINE(HAVE_CPU_ALPHA, 1, [Define if the target CPU is an Alpha]) ;;
170 xarm*) HAVE_CPU_ARM=yes
171 AC_DEFINE(HAVE_CPU_ARM, 1, [Define if the target CPU is an ARM]) ;;
172 xsparc*) HAVE_CPU_SPARC=yes
173 AC_DEFINE(HAVE_CPU_SPARC, 1, [Define if the target CPU is a PPC]) ;;
174 xmips*) HAVE_CPU_MIPS=yes
175 AC_DEFINE(HAVE_CPU_MIPS, 1, [Define if the target CPU is a MIPS]) ;;
176 xhppa*) HAVE_CPU_HPPA=yes
177 AC_DEFINE(HAVE_CPU_HPPA, 1, [Define if the target CPU is a HPPA]) ;;
180 dnl Determine endianness
183 dnl Check for MMX-capable compiler
184 AC_MSG_CHECKING(for MMX-capable compiler)
186 #include "include/mmx.h"
189 { movq_r2r(mm0, mm1); return 0; }
203 dnl We should really use AC_SYS_LARGEFILE, but the problem is
204 dnl many of the plugins don't include "config.h". To assure
205 dnl binary compatibility, it is necessary that all gstreamer
206 dnl code be compiled with the same sizeof(off_t), so we use
207 dnl the following crude hack.
210 AC_MSG_CHECKING(for large file support)
212 #define _LARGEFILE_SOURCE
213 #define _FILE_OFFSET_BITS 64
214 #include <sys/types.h>
215 int main () { return !(sizeof(off_t) == 8); }
219 GST_CFLAGS="$GST_CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
228 dnl Check for essential libraries first:
229 dnl ====================================
232 translit(dnm, m, l) AM_CONDITIONAL(USE_GLIB2, true)
233 GST_CHECK_FEATURE(GLIB2, [use of glib-2.0 and GObject], , [
234 PKG_CHECK_MODULES(GLIB2, glib-2.0 gobject-2.0 gthread-2.0 gmodule-2.0,
235 HAVE_GLIB2=yes,HAVE_GLIB2=no)
236 GLIB_LIBS=$GLIB2_LIBS
237 GLIB_CFLAGS=$GLIB2_CFLAGS
239 AC_SUBST(GLIB_CFLAGS)
242 GST_CFLAGS="$GST_CFLAGS -DUSE_GLIB2"
246 if test x$USE_GLIB2 = xno; then
247 GST_PKG_DEPS="glib >= 1.2.0, gtk+ >= 1.2.0"
249 dnl Check for glib and gtk
251 AC_MSG_ERROR(Cannot find glib: Is glib-config in path?),
252 glib gmodule gthread)
254 AC_MSG_ERROR(Cannot find gtk: Is gtk-config in path?))
257 GLIB_LIBS="$GLIB_LIBS $GTK_LIBS"
258 GLIB_CFLAGS="$GLIB_CFLAGS $GTK_CFLAGS"
260 GST_PKG_DEPS="glib-2.0, gobject-2.0, gmodule-2.0, gthread-2.0"
262 PKG_CHECK_MODULES(GTK2, gtk+-2.0, HAVE_GTK=yes, HAVE_GTK=no)
264 GTK_CFLAGS=$GTK2_CFLAGS
267 if $HAVE_GTK_DOC; then
268 AC_CHECK_PROG(HAVE_GTK_DOC, gtkdoc-scangobj, true, false)
269 if $HAVE_GTK_DOC; then
270 GTK_DOC_SCANOBJ=gtkdoc-scangobj
274 dnl FIXME: check for gnome2 - this conditional is currently
276 AM_CONDITIONAL(USE_GNOME2, test "x$USE_GNOME2" = "xyes")
280 AC_SUBST(GST_PKG_DEPS)
285 if test x$USE_GLIB2 = xno; then
286 LIBXML_PKG=', libxml >= 1.8.1'
287 AC_PATH_PROG(XML_CONFIG, xml-config, no)
288 if test x$XML_CONFIG = xno; then
289 AC_MSG_ERROR(Couldn't find $LIBXML_PKG)
291 XML_LIBS="`xml-config --libs`"
292 XML_CFLAGS="`xml-config --cflags`"
293 AC_CHECK_LIB(xml, xmlDocGetRootElement, :,
294 [ AC_MSG_ERROR(Need version 1.8.1 or better of libxml) ],
297 LIBXML_PKG=', libxml-2.0'
298 PKG_CHECK_MODULES(XML, $LIBXML_PKG, XML_CONFIG=yes, XML_CONFIG=no)
299 AC_PATH_PROG(XML_CONFIG, xml-config, no)
300 AC_DEFINE(HAVE_LIBXML2)
301 GST_CFLAGS="$GST_CFLAGS -DHAVE_LIBXML2"
307 if test x$USE_GLIB2 = xyes; then
308 dnl we don't support gnome/gtk with glib2.0 yet
312 AC_MSG_WARN(gnome disabled for glib2.0)
314 dnl Check for libgnome
315 GST_CHECK_CONFIGPROG(GNOME, gnome-config, gnome gnomeui)
318 AC_SUBST(GNOME_CFLAGS)
321 dnl Check for libglade with gnome support; no libglade for glib2.0
322 HAVE_LIBGLADE_GNOME="no"
323 if test x$USE_GLIB2 = xyes; then
324 AC_MSG_WARN(libglade disabled for glib2.0)
325 PKG_CHECK_MODULES(LIBGLADE_GNOME, libglade-2.0 libgnomeui-2.0, HAVE_LIBGLADE_GNOME=yes, HAVE_LIBGLADE_GNOME=no)
326 if test x$HAVE_LIBGLADE_GNOME = xno; then
327 AC_MSG_WARN(Couldn't find libglade-2.0 - Can't build gstplay)
329 LIBGLADE_GNOME_CFLAGS=
332 AM_PATH_LIBGLADE(HAVE_LIBGLADE_GNOME="yes", HAVE_LIBGLADE_GNOME="no", gnome)
333 if test x$HAVE_LIBGLADE_GNOME = xno; then
334 AC_MSG_WARN(Couldn't find libglade-config - Can't build gstplay)
336 LIBGLADE_GNOME_LIBS=$LIBGLADE_LIBS
337 LIBGLADE_GNOME_CFLAGS=$LIBGLADE_CFLAGS
338 AC_TRY_LINK([#include <glade/glade.h>],[glade_gnome_init();],
339 HAVE_LIBGLADE_GNOME="yes"
341 [Couldn't find gnome libraries for libglade - Can't build gstmediaplay and gsteditor])
345 AC_SUBST(HAVE_LIBGLADE_GNOME)
346 AC_SUBST(LIBGLADE_GNOME_LIBS)
347 AC_SUBST(LIBGLADE_GNOME_CFLAGS)
349 dnl Check for atomic.h
350 dnl Note: use AC_CHECK_HEADER not AC_CHECK_HEADERS, because the latter
351 dnl defines the wrong default symbol as well (HAVE_ASM_ATOMIC_H)
352 AC_CHECK_HEADER(asm/atomic.h, HAVE_ATOMIC_H=yes, HAVE_ATOMIC_H=no)
353 dnl Do a compile to check that it has atomic_set (eg, linux 2.0 didn't)
354 if test x$HAVE_ATOMIC_H = xyes; then
356 #include "asm/atomic.h"
357 main() { atomic_t t; atomic_set(&t,0); atomic_inc(&t); atomic_add(1,&t);return 0;}
360 if test x$HAVE_ATOMIC_H = xyes; then
361 AC_MSG_WARN(Atomic reference counting is out of date: doing without.)
367 AC_MSG_WARN(Can't check properly for atomic reference counting. Assuming OK.)
372 dnl ######################################################################
373 dnl # Check command line parameters, and set shell variables accordingly #
374 dnl ######################################################################
376 AC_ARG_ENABLE(libmmx,
377 [ --enable-libmmx use libmmx, if available],
378 [case "${enableval}" in
379 yes) USE_LIBMMX=$HAVE_LIBMMX ;;
381 *) AC_MSG_ERROR(bad value ${enableval} for --enable-libmmx) ;;
383 [USE_LIBMMX=$HAVE_LIBMMX]) dnl Default value
385 AC_ARG_ENABLE(atomic,
386 [ --enable-atomic use atomic reference counting header],
387 [case "${enableval}" in
388 yes) USE_ATOMIC_H=$HAVE_ATOMIC_H;;
389 noset) USE_ATOMIC_H=$HAVE_ATOMIC_H;;
390 no) USE_ATOMIC_H=no;;
391 *) AC_MSG_ERROR(bad value ${enableval} for --enable-atomic) ;;
393 [USE_ATOMIC_H=$HAVE_ATOMIC_H]) dnl Default value
395 AC_ARG_ENABLE(plugin-builddir,
396 [ --enable-plugin-builddir allow tests/demos to use non-installed plugins ],
397 [case "${enableval}" in
398 yes) PLUGINS_USE_BUILDDIR=yes ;;
399 no) PLUGINS_USE_BUILDDIR=no ;;
400 *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugin-builddir) ;;
402 [PLUGINS_USE_BUILDDIR=no]) dnl Default value
405 [ --enable-debug compile with -g debugging info],
406 [case "${enableval}" in
407 yes) USE_DEBUG=yes ;;
409 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
411 [USE_DEBUG=no]) dnl Default value
414 [ --enable-DEBUG compiles in a large number of debugging messages],
415 [case "${enableval}" in
416 yes) ENABLE_DEBUG=yes ;;
417 no) ENABLE_DEBUG=no ;;
418 *) AC_MSG_ERROR(bad value ${enableval} for --enable-DEBUG) ;;
420 [ENABLE_DEBUG=no]) dnl Default value
421 if test x$ENABLE_DEBUG = xyes; then
422 AC_DEFINE(GST_DEBUG_ENABLED, 1, [Define if DEBUG statements should be compiled in])
426 [ --disable-INFO disables compilation of informational messages],
427 [case "${enableval}" in
428 yes) ENABLE_INFO=yes ;;
429 no) ENABLE_INFO=no ;;
430 *) AC_MSG_ERROR(bad value ${enableval} for --enable-INFO) ;;
432 [ENABLE_INFO=yes]) dnl Default value
433 if test x$ENABLE_INFO = xyes; then
434 AC_DEFINE(GST_INFO_ENABLED, 1, [Define if INFO statements should be compiled in])
437 AC_ARG_ENABLE(debug-color,
438 [ --disable-debug-color disables color output of DEBUG and INFO output],
439 [case "${enableval}" in
440 yes) ENABLE_DEBUG_COLOR=yes ;;
441 no) ENABLE_DEBUG_COLOR=no ;;
442 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug-color) ;;
444 [ENABLE_DEBUG_COLOR=yes]) dnl Default value
445 if test "x$ENABLE_DEBUG_COLOR" = xyes; then
446 AC_DEFINE(GST_DEBUG_COLOR, 1, [Define if debugging messages should be colorized])
449 AC_ARG_ENABLE(profiling,
450 [ --enable-profiling adds -pg to compiler commandline, for profiling],
451 [case "${enableval}" in
452 yes) USE_PROFILING=yes ;;
453 no) UES_PROFILING=no ;;
454 *) AC_MSG_ERROR(bad value ${enableval} for --enable-profiling) ;;
456 [USE_PROFILING=no]) dnl Default value
458 dnl default to building registry in the source tree if we are enabling plugin build dir
459 if test "x$PLUGINS_USE_BUILDDIR"="xyes"; then
462 GST_CONFIG_DIR=/etc/gstreamer
464 AC_ARG_WITH(configdir,
465 [ --with-configdir specify path to use for configdir],
466 [case "${withval}" in
467 yes) AC_MSG_ERROR(bad value ${withval} for --with-configdir) ;;
468 no) AC_MSG_ERROR(bad value ${withval} for --with-configdir) ;;
469 *) GST_CONFIG_DIR="${withval}" ;;
471 [:]) dnl Default value
474 GST_WIN32_LIBDIR="/usr/lib/win32"
475 AC_ARG_WITH(win32_libdir,
476 [ --with-win32-libdir specify location for win32 DLLs],
477 [case "${withval}" in
478 yes) AC_MSG_ERROR(bad value ${withval} for --with-win32-libdir) ;;
479 no) AC_MSG_ERROR(bad value ${withval} for --with-win32-libdir) ;;
480 *) GST_WIN32_LIBDIR="${withval}" ;;
482 [:]) dnl Default value
484 AC_ARG_ENABLE(docs-build,
485 [ --enable-docs-build enable building of documentation],
486 [case "${enableval}" in
487 yes) if $HAVE_GTK_DOC; then BUILD_DOCS=yes; else AC_MSG_ERROR([you don't have gtk-doc, so don't use --docs-build]); fi; ;;
489 *) AC_MSG_ERROR(bad value ${enableval} for --enable-docs-build) ;;
491 [BUILD_DOCS=no]) dnl Default value
493 AC_ARG_ENABLE(plugin-docs,
494 [ --enable-plugin-docs enable the building of plugin documentation
495 (this is currently broken, so off by default)],
496 [case "${enableval}" in
497 yes) BUILD_PLUGIN_DOCS=yes ;;
498 no) BUILD_PLUGIN_DOCS=no ;;
499 *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugin-docs) ;;
501 [BUILD_PLUGIN_DOCS=no]) dnl Default value
504 [ --disable-tests disable building test apps],
505 [case "${enableval}" in
506 yes) BUILD_TESTS=yes ;;
507 no) BUILD_TESTS=no ;;
508 *) AC_MSG_ERROR(bad value ${enableval} for --disable-tests) ;;
510 [BUILD_TESTS=yes]) dnl Default value
512 AC_ARG_ENABLE(examples,
513 [ --disable-examples disable building examples],
514 [case "${enableval}" in
515 yes) BUILD_EXAMPLES=yes ;;
516 no) BUILD_EXAMPLES=no ;;
517 *) AC_MSG_ERROR(bad value ${enableval} for --disable-examples) ;;
519 [BUILD_EXAMPLES=yes]) dnl Default value
521 dnl Next, check for the optional components:
522 dnl ========================================
525 AC_DEFUN(GST_SUBSYSTEM_DISABLE,
527 dnl Add a subsystem --disable flag and all the necessary symbols and substitions
529 AC_ARG_ENABLE(translit([$1], A-Z, a-z),
530 [ ]builtin(format, --disable-%-17s disable %s, translit([$1], A-Z, a-z), $2),
531 [ case "${enableval}" in
532 yes) GST_DISABLE_[$1]=no ;;
533 no) GST_DISABLE_[$1]=yes ;;
534 *) AC_MSG_ERROR(bad value ${enableval} for --enable-translit([$1], A-Z, a-z)) ;;
536 [GST_DISABLE_[$1]=no]) dnl Default value
537 if test x$GST_DISABLE_[$1] = xyes; then
538 AC_DEFINE(GST_DISABLE_[$1], 1, [Disable $2])
539 GST_DISABLE_[$1]_DEFINE=-DGST_DISABLE_[$1]
541 AM_CONDITIONAL(GST_DISABLE_[$1], test x$GST_DISABLE_[$1] = xyes)
542 AC_SUBST(GST_DISABLE_[$1]_DEFINE)
543 GST_SUBSYSTEM_DISABLE_DEFINES="$GST_SUBSYTEM_DISABLE_DEFINES $GST_DISABLE_[$1]_DEFINE"
546 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_LOADSAVE, true)
547 GST_SUBSYSTEM_DISABLE(LOADSAVE,[pipeline XML load/save])
548 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_TYPEFIND, true)
549 GST_SUBSYSTEM_DISABLE(TYPEFIND,[typefind plugin],)
550 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_AUTOPLUG, true)
551 GST_SUBSYSTEM_DISABLE(AUTOPLUG,[autoplugger subsystem])
552 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_PARSE, true)
553 GST_SUBSYSTEM_DISABLE(PARSE,[command-line parser])
554 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_TRACE, true)
555 GST_SUBSYSTEM_DISABLE(TRACE,[tracing subsystem])
556 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_REGISTRY, true)
557 GST_SUBSYSTEM_DISABLE(REGISTRY,[plugin registry])
559 GST_CFLAGS="$GST_CFLAGS $GST_SUBSYSTEM_DISABLE_DEFINES"
562 GST_PKG_CFLAGS=$GST_CFLAGS
563 AC_SUBST(GST_PKG_CFLAGS)
565 dnl ################################################
566 dnl # Set defines according to variables set above #
567 dnl ################################################
570 dnl These should be "USE_*" instead of "HAVE_*", but some packages expect
571 dnl HAVE_ and it is likely to be easier to stick with the old name
572 if test "x$USE_LIBGHTTP" = xyes; then
573 AC_DEFINE(HAVE_LIBGHTTP, 1, [Define if ghttp library is available])
576 if test "x$USE_LIBMMX" = xyes; then
577 AC_DEFINE(HAVE_LIBMMX, 1, [Define if libmmx is available])
580 if test "x$USE_ATOMIC_H" = xyes; then
581 AC_DEFINE(HAVE_ATOMIC_H, 1, [Define if atomic.h header file is available])
584 if test "x$PLUGINS_USE_BUILDDIR" = xyes; then
585 AC_DEFINE(PLUGINS_USE_BUILDDIR, 1, [Define if plugins should be loaded from the build tree - only developers should use this])
588 dnl if test "x$USE_DEBUG" = xyes; then
589 dnl CFLAGS="$CFLAGS -g"
592 if test "x$USE_PROFILING" = xyes; then
593 dnl CFLAGS="$CFLAGS -pg -fprofile-arcs"
594 FOMIT_FRAME_POINTER=""
596 FOMIT_FRAME_POINTER="-fomit-frame-pointer"
600 dnl AC_SUBST(FOMIT_FRAME_POINTER)
603 if test "x$HAVE_LIBXV" = xyes; then
604 AC_DEFINE(HAVE_LIBXV)
607 dnl #############################
608 dnl # Set automake conditionals #
609 dnl #############################
611 dnl These should be "USE_*" instead of "HAVE_*", but some packages expect
612 dnl HAVE_ and it is likely to be easier to stick with the old name
613 AM_CONDITIONAL(HAVE_CPU_I386, test "x$HAVE_CPU_I386" = "xyes")
614 AM_CONDITIONAL(HAVE_CPU_PPC, test "x$HAVE_CPU_PPC" = "xyes")
615 AM_CONDITIONAL(HAVE_CPU_ALPHA, test "x$HAVE_CPU_ALPHA" = "xyes")
616 AM_CONDITIONAL(HAVE_CPU_ARM, test "x$HAVE_CPU_ARM" = "xyes")
617 AM_CONDITIONAL(HAVE_CPU_SPARC, test "x$HAVE_CPU_SPARC" = "xyes")
618 AM_CONDITIONAL(HAVE_LIBMMX, test "x$USE_LIBMMX" = "xyes")
620 AM_CONDITIONAL(HAVE_ATOMIC_H, test "x$USE_ATOMIC_H" = "xyes")
622 AM_CONDITIONAL(EXPERIMENTAL, test "$EXPERIMENTAL" = "$xyes")
623 AM_CONDITIONAL(BROKEN, test "$BROKEN" = "$xyes")
625 AM_CONDITIONAL(HAVE_NASM, test "x$HAVE_NASM" = "xyes")
626 AM_CONDITIONAL(HAVE_LIBGLADE_GNOME, test "x$HAVE_LIBGLADE_GNOME" = "xyes")
627 AM_CONDITIONAL(HAVE_GNOME, test "x$HAVE_GNOME" = "xyes")
628 AM_CONDITIONAL(HAVE_LIBXV, test "x$HAVE_LIBXV" = "xyes")
629 AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
630 AM_CONDITIONAL(HAVE_GTK_DOC, $HAVE_GTK_DOC)
631 AM_CONDITIONAL(BUILD_DOCS, test "x$BUILD_DOCS" = "xyes")
632 AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" = "xyes")
633 AM_CONDITIONAL(BUILD_EXAMPLES, test "x$BUILD_EXAMPLES" = "xyes")
634 AM_CONDITIONAL(BUILD_PLUGIN_DOCS, test "x$BUILD_PLUGIN_DOCS" = "xyes")
635 AM_CONDITIONAL(HAVE_PDFXMLTEX, $HAVE_PDFXMLTEX)
636 AM_CONDITIONAL(HAVE_PDFTOPS, $HAVE_PDFTOPS)
637 AM_CONDITIONAL(HAVE_XSLTPROC, $HAVE_XSLTPROC)
638 AM_CONDITIONAL(HAVE_FIG2DEV_PNG, $HAVE_FIG2DEV_PNG)
639 AM_CONDITIONAL(HAVE_FIG2DEV_PDF, $HAVE_FIG2DEV_PDF)
640 AM_CONDITIONAL(PLUGINS_USE_BUILDDIR, test "x$PLUGINS_USE_BUILDDIR" = "xyes")
643 dnl ############################
644 dnl # Set up some more defines #
645 dnl ############################
647 dnl Set location of configuration dir.
648 AC_DEFINE_UNQUOTED(GST_CONFIG_DIR,"$GST_CONFIG_DIR")
649 AC_SUBST(GST_CONFIG_DIR)
651 dnl Set location of windows dll dir.
652 AC_DEFINE_UNQUOTED(GST_WIN32_LIBDIR,"$GST_WIN32_LIBDIR")
653 AC_SUBST(GST_WIN32_LIBDIR)
655 dnl Set location of plugin directory
656 if test "x${prefix}" = "xNONE"; then
657 PLUGINS_DIR=${ac_default_prefix}/lib/gst
659 PLUGINS_DIR=${prefix}/lib/gst
661 AC_DEFINE_UNQUOTED(PLUGINS_DIR,"$PLUGINS_DIR")
662 AC_SUBST(PLUGINS_DIR)
664 dnl Set location of uninstalled plugin directory
665 PLUGINS_BUILDDIR=`pwd`
666 AC_DEFINE_UNQUOTED(PLUGINS_BUILDDIR,"$PLUGINS_BUILDDIR")
667 AC_SUBST(PLUGINS_BUILDDIR)
669 dnl Private vars for libgst only
670 LIBGST_LIBS="$GST_LIBS $XML_LIBS $GLIB_LIBS"
671 LIBGST_CFLAGS="$GST_CFLAGS $XML_CFLAGS $GLIB_CFLAGS"
672 AC_SUBST(LIBGST_LIBS)
673 AC_SUBST(LIBGST_CFLAGS)
675 dnl Vars for everyone else
676 GST_LIBS="\$(top_builddir)/gst/libgst.la $LIBGST_LIBS"
677 GST_CFLAGS="-I\$(top_srcdir) -I\$(top_srcdir)/libs -I\$(top_srcdir)/include $LIBGST_CFLAGS"
681 dnl ##################################################
682 dnl # Prepare informative messages to display at end #
683 dnl ##################################################
687 if test "x$PLUGINS_USE_BUILDDIR" = xyes; then
688 infomessages="$infomessages
689 *** Warning: You have configured using the --enable-plugin-builddir option.
691 This option is for development purposes only: binaries built with
692 it should be used with code in the build tree only. To build an
693 installable version, use ./configure without the --enable-plugin-builddir
694 option. Note that the autogen.sh script supplies the plugin builddir
695 option automatically - it cannot be used to configure installable builds.
700 dnl #########################
701 dnl # Make the output files #
702 dnl #########################
704 dnl until ffmpeg is handled by configure plugins/ffmpeg/Makefile
705 dnl components/bonobo-gstmediaplay/Makefile
706 dnl someone should fix this test/misc/Makefile
707 dnl wtay fix this: testsuite/threads/Makefile
708 dnl testsuite/refcounting/Makefile
715 gst/elements/Makefile
716 gst/autoplug/Makefile
717 gst/schedulers/Makefile
720 libs/gst/bytestream/Makefile
721 libs/gst/getbits/Makefile
722 libs/gst/putbits/Makefile
723 libs/gst/control/Makefile
727 test/bindings/Makefile
728 test/memchunk/Makefile
733 tests/muxing/Makefile
735 testsuite/bytestream/Makefile
736 testsuite/capsnego/Makefile
737 testsuite/plugin/Makefile
738 testsuite/cleanup/Makefile
741 examples/autoplug/Makefile
742 examples/helloworld/Makefile
743 examples/helloworld2/Makefile
744 examples/launch/Makefile
745 examples/queue/Makefile
746 examples/queue2/Makefile
747 examples/queue3/Makefile
748 examples/queue4/Makefile
749 examples/thread/Makefile
750 examples/mixer/Makefile
751 examples/cutter/Makefile
752 examples/launch/Makefile
753 examples/xml/Makefile
754 examples/plugins/Makefile
755 examples/typefind/Makefile
756 examples/mixer/Makefile
758 editor/pixmaps/Makefile
762 docs/gst/gstreamer.types
764 docs/plugins/Makefile
765 docs/plugins/gstreamer-plugins.types
770 gstreamer-uninstalled.pc
772 echo "$infomessages", infomessages="$infomessages"