Check is we should use -mregnames on PowerPC
[platform/upstream/gstreamer.git] / configure.ac
1 AC_INIT
2 AC_CANONICAL_TARGET([])
3
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 AS_VERSION(gstreamer, GST_VERSION, 0, 7, 0, 1, GST_CVS="no", GST_CVS="yes")
7
8 if test x$program_suffix = xNONE ; then
9   program_suffix=-$GST_VERSION_MAJOR.$GST_VERSION_MINOR
10 fi
11
12 dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
13 AM_MAINTAINER_MODE
14 AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
15
16 dnl our libraries and install dirs use major.minor as a version
17 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
18 AC_SUBST(GST_MAJORMINOR)
19
20 AC_PROG_CC
21 dnl For interactive UNIX (a Sun thing)
22 AC_ISC_POSIX
23
24 dnl CURRENT, REVISION, AGE
25 dnl - library source changed -> increment REVISION
26 dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
27 dnl - interfaces added -> increment AGE
28 dnl - interfaces removed -> AGE = 0
29 AS_LIBTOOL(GST, 3, 0, 0)
30
31 AC_CONFIG_SRCDIR([gst/gst.c])
32 AM_CONFIG_HEADER(config.h)
33
34 dnl Add parameters for aclocal
35 dnl (This must come after AM_INIT_AUTOMAKE, since it modifies ACLOCAL)
36 ACLOCAL="$ACLOCAL -I common/m4 $ACLOCAL_FLAGS"
37
38 AM_PROG_CC_STDC
39 AM_PROG_AS
40 AS="${CC}"
41
42 dnl AC_PROC_INTLTOOL([0.26])
43 dnl AM_GNU_GETTEXT([external])
44 ALL_LINGUAS="de"
45 GETTEXT_PACKAGE=gstreamer-$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46 AC_SUBST(GETTEXT_PACKAGE)
47 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],"$GETTEXT_PACKAGE",[gettext package name])
48 AM_GLIB_GNU_GETTEXT
49
50 AM_GLIB_DEFINE_LOCALEDIR(GST_LOCALEDIR)
51
52 dnl decide on error flags
53 AS_COMPILER_FLAG(-Wall,GST_ERROR="$GST_ERROR -Wall",GST_ERROR="$GST_ERROR")
54 if test "x$GST_CVS" = "xyes"; then
55   AS_COMPILER_FLAG(-Werror,GST_ERROR="$GST_ERROR -Werror",GST_ERROR="$GST_ERROR")
56 fi
57
58 dnl We disable static building for development, for time savings
59 dnl *NOTE*: dnl this line before release, so release does static too
60 dnl AM_DISABLE_STATIC
61
62 AC_HEADER_STDC([])
63
64
65 dnl ##############################
66 dnl # Do automated configuration #
67 dnl ##############################
68
69 dnl Check for tools:
70 dnl ================
71
72 dnl allow for different autotools
73 AS_AUTOTOOLS_ALTERNATE()
74
75 dnl modify pkg-config path
76 AC_ARG_WITH(pkg-config-path, 
77    AC_HELP_STRING([--with-pkg-config-path],
78                   [colon-separated list of pkg-config(1) dirs]),
79    [export PKG_CONFIG_PATH=${withval}])
80
81 GST_DOC()
82 GST_ARCH()
83
84 dnl Perl is used in building documentation
85 AC_PATH_PROG(PERL_PATH, perl, no)
86 if test x$PERL_PATH = xno; then
87   AC_MSG_ERROR(Could not find perl)
88 fi
89
90 dnl we require bison for building of some of the marshal files
91 dnl FIXME: check if AC_PROG_YACC is suitable here
92 AC_PATH_PROG(BISON_PATH, bison, no)
93 if test x$BISON_PATH = xno; then
94   AC_MSG_ERROR(Could not find bison)
95 fi
96
97 dnl we require flex for building the parser
98 dnl FIXME: check if AC_PROG_LEX is suitable here
99 AC_PATH_PROG(FLEX_PATH, flex, no)
100 if test x$FLEX_PATH = xno; then
101   AC_MSG_ERROR(Could not find flex)
102 fi
103
104 dnl
105 dnl We should really use AC_SYS_LARGEFILE, but the problem is
106 dnl many of the plugins don't include "config.h".  To assure
107 dnl binary compatibility, it is necessary that all gstreamer
108 dnl code be compiled with the same sizeof(off_t), so we use
109 dnl the following crude hack.
110 dnl
111
112 dnl
113 dnl GST_CFLAGS are split up as GST_EXT_CFLAGS and GST_INT_CFLAGS
114 dnl same for libs
115 dnl this is so we can make GST_CFLAGS for external modules available
116 dnl without mixing in internal (uninstalled) CFLAGS
117 dnl
118
119 dnl disable deprecated functions internally
120 GST_INT_CFLAGS="-DGST_DISABLE_DEPRECATED"
121
122 AC_MSG_CHECKING(for large file support)
123 AC_TRY_RUN([
124 #define _LARGEFILE_SOURCE
125 #define _FILE_OFFSET_BITS 64
126 #include <sys/types.h>
127 int main () { return !(sizeof(off_t) == 8); }
128 ],
129 [
130 AC_MSG_RESULT(yes)
131 GST_EXT_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
132 ],
133 [
134 AC_MSG_RESULT(no)
135 ],
136 [
137 AC_MSG_RESULT(no)
138 ])
139
140 dnl check for makecontext and define HAVE_MAKECONTEXT if we have it
141 AC_CHECK_MCSC()
142 if test "$ac_cv_check_mcsc" == "yes"; then
143   AC_DEFINE_UNQUOTED(HAVE_MAKECONTEXT, $HAVE_MAKECONTEXT,
144                      [defined if we have makecontext ()])
145 fi
146
147 dnl Check for a way to display the function name in debug output
148 GST_CHECK_FUNCTION()
149
150 dnl check if we should use -Wa,-mregnames on PowerPC, so we can use
151 dnl symbolic register names in inline asm
152 if test x$HAVE_CPU_PPC = xyes ; then
153   AS_COMPILER_FLAG(["-Wa,-mregnames"],
154     [GST_INT_CFLAGS="$GST_INT_CFLAGS -Wa,-mregnames"],
155     true)
156 fi
157
158
159 dnl Check for essential libraries first:
160 dnl ====================================
161
162 dnl === GLib 2 ===
163 dnl Minimum required version of GLib2
164 dnl required for compilation without warnings
165 GLIB2_REQ="2.0.1"
166 AC_SUBST(GLIB2_REQ)
167
168 dnl Check for glib2
169 PKG_CHECK_MODULES(GLIB2, glib-2.0 >= $GLIB2_REQ gobject-2.0 gthread-2.0 gmodule-2.0,HAVE_GLIB2=yes,HAVE_GLIB2=no)
170 GLIB_LIBS=$GLIB2_LIBS
171 GLIB_CFLAGS=$GLIB2_CFLAGS
172 AC_SUBST(GLIB_LIBS)
173 AC_SUBST(GLIB_CFLAGS)
174
175 if test "x$HAVE_GLIB2" = "xno"; then
176   AC_MSG_ERROR([GStreamer requires GLib 2.0 to compile.])
177 fi
178
179 GST_PKG_DEPS="glib-2.0, gobject-2.0, gmodule-2.0, gthread-2.0"
180 AC_SUBST(GST_PKG_DEPS)
181   
182 dnl === libxml 2 ===
183 dnl Minimum required version of libxml2
184 LIBXML2_REQ="2.4.9"
185 AC_SUBST(LIBXML2_REQ)
186
187 dnl check for libxml2
188 GST_LIBXML2_CHECK()
189
190 dnl popt checks
191 dnl FIXME: This test passes on popt 1.6.2, maybe earlier, but popt 1.6.2
192 dnl        causes segfaults on gst_init. Write a working test if possible.
193 GST_CHECK_LIBHEADER(POPT, popt, poptStrippedArgv,, popt.h, POPT_LIBS="-lpopt",
194   AC_MSG_ERROR([popt 1.6.3 or newer is required to build gstreamer. You can
195                 download the latest version from 
196                 ftp://ftp.rpm.org/pub/rpm/dist/])
197 )
198 AC_MSG_NOTICE(Checking for POPT_TABLEEND)
199 AC_COMPILE_IFELSE([
200 #include <popt.h>
201 int main ()
202 {
203 #ifndef POPT_TABLEEND
204 #error
205 #else
206   return 0;
207 #endif
208 }
209 ],, [
210   dnl it failed
211   AC_MSG_ERROR([popt 1.6.3 or newer is required to build gstreamer. You can
212                 download the latest version from 
213                 ftp://ftp.rpm.org/pub/rpm/dist/])
214 ])
215
216 dnl Check for atomic.h
217 dnl Note: use AC_CHECK_HEADER not AC_CHECK_HEADERS, because the latter
218 dnl defines the wrong default symbol as well (HAVE_ASM_ATOMIC_H)
219 AC_CHECK_HEADER(asm/atomic.h, HAVE_ATOMIC_H=yes, HAVE_ATOMIC_H=no)
220 dnl Do a compile to check that it has atomic_set (eg, linux 2.0 didn't)
221 if test x$HAVE_ATOMIC_H = xyes; then
222   AC_LINK_IFELSE([
223 #include "asm/atomic.h"
224 main() {atomic_t t; atomic_set(&t,0); atomic_inc(&t); atomic_add(1,&t);return 0;}
225   ],, [
226     # Not successful
227     if test x$HAVE_ATOMIC_H = xyes; then
228       AC_MSG_WARN(Atomic reference counting is out of date: doing without.)
229     fi
230     HAVE_ATOMIC_H=no
231   ])
232 fi
233
234 dnl Check for ucontext.h
235 AC_CHECK_HEADER(ucontext.h, AC_DEFINE(HAVE_UCONTEXT_H, 1, [defined if we have ucontext.h]))
236
237 dnl ######################################################################
238 dnl # Check command line parameters, and set shell variables accordingly #
239 dnl ######################################################################
240
241 dnl FIXME: simplify all this down using a few m4 macros
242
243 AC_ARG_ENABLE(libmmx,
244 AC_HELP_STRING([--enable-libmmx],[use libmmx, if available]),
245 [case "${enableval}" in
246   yes) USE_LIBMMX=$HAVE_LIBMMX ;;
247   no)  USE_LIBMMX=no ;;
248   *) AC_MSG_ERROR(bad value ${enableval} for --enable-libmmx) ;;
249 esac], 
250 [USE_LIBMMX=$HAVE_LIBMMX]) dnl Default value
251
252 AC_ARG_ENABLE(atomic,
253 AC_HELP_STRING([--enable-atomic],[use atomic reference counting header]),
254 [case "${enableval}" in
255   yes) USE_ATOMIC_H=$HAVE_ATOMIC_H;;
256   noset) USE_ATOMIC_H=$HAVE_ATOMIC_H;;
257   no)  USE_ATOMIC_H=no;;
258   *) AC_MSG_ERROR(bad value ${enableval} for --enable-atomic) ;;
259 esac], 
260 [USE_ATOMIC_H=$HAVE_ATOMIC_H]) dnl Default value
261
262 AC_ARG_ENABLE(fast-stack-trash,
263 AC_HELP_STRING([--enable-fast-stack-trash],[use fast memory allocator (i586 or above)]),
264 [case "${enableval}" in
265   yes) USE_FAST_STACK_TRASH=yes;;
266   noset) USE_FAST_STACK_TRASH=no;;
267   no)  USE_FAST_STACK_TRASH=no;;
268   *) AC_MSG_ERROR(bad value ${enableval} for --enable-atomic) ;;
269 esac], 
270 [USE_FAST_STACK_TRASH=yes]) dnl Default value
271
272 AC_ARG_ENABLE(plugin-builddir,
273 AC_HELP_STRING([--enable-plugin-builddir],[allow tests/demos to use non-installed plugins]),
274 [case "${enableval}" in
275   yes) PLUGINS_USE_BUILDDIR=yes ;;
276   no)  PLUGINS_USE_BUILDDIR=no ;;
277   *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugin-builddir) ;;
278 esac], 
279 [PLUGINS_USE_BUILDDIR=no]) dnl Default value
280
281 AC_ARG_ENABLE(profiling,
282 AC_HELP_STRING([--enable-profiling],[adds -pg to compiler commandline, for profiling]),
283 [case "${enableval}" in
284   yes) USE_PROFILING=yes ;;
285   no)  UES_PROFILING=no ;;
286   *) AC_MSG_ERROR(bad value ${enableval} for --enable-profiling) ;;
287 esac], 
288 [USE_PROFILING=no]) dnl Default value
289
290 dnl use a cache dir for storing element registry info.
291 dnl default to building registry in the source tree if we are enabling plugin build dir
292 if test "x$PLUGINS_USE_BUILDDIR" = "xyes"; then
293   GST_CACHE_DIR=`pwd`
294 else
295   dnl ${localstatedir} points to PREFIX/var
296   GST_CACHE_DIR=${localstatedir}/cache/gstreamer-$GST_MAJORMINOR
297 fi
298 AC_ARG_WITH(cachedir,
299 AC_HELP_STRING([--with-cachedir],[specify path to use for plugin and command completion registries]),
300 [case "${withval}" in
301   yes) AC_MSG_ERROR(bad value ${withval} for --with-cachedir) ;;
302   no) AC_MSG_ERROR(bad value ${withval} for --with-cachedir) ;;
303   *) GST_CACHE_DIR="${withval}" ;;
304 esac], 
305 [:]) dnl Default value
306
307 AS_AC_EXPAND(GST_CACHE_DIR, $GST_CACHE_DIR)
308 AC_MSG_NOTICE(Using $GST_CACHE_DIR as registry cache dir)
309
310
311 dnl building of tests
312 AC_ARG_ENABLE(tests,
313 AC_HELP_STRING([--disable-tests],[disable building test apps]),
314 [case "${enableval}" in
315   yes) BUILD_TESTS=yes ;;
316   no)  BUILD_TESTS=no ;;
317   *) AC_MSG_ERROR(bad value ${enableval} for --disable-tests) ;;
318 esac], 
319 [BUILD_TESTS=yes]) dnl Default value
320 AM_CONDITIONAL(BUILD_TESTS,         test "x$BUILD_TESTS" = "xyes")
321
322 dnl tests known to fail
323 AC_ARG_ENABLE(failing-tests,
324 AC_HELP_STRING([--disable-failing-tests],[disable building tests known to fail]),
325 [case "${enableval}" in
326   yes) BUILD_FAILING_TESTS=yes ;;
327   no)  BUILD_FAILING_TESTS=no ;;
328   *) AC_MSG_ERROR(bad value ${enableval} for --disable-failing-tests) ;;
329 esac], 
330 [BUILD_FAILING_TESTS=no]) dnl Default value
331 AM_CONDITIONAL(BUILD_FAILING_TESTS, test "x$BUILD_FAILING_TESTS" = "xyes")
332 if test x$BUILD_FAILING_TESTS = xyes; then
333   AC_MSG_WARN([building tests known to fail, use --disable-failing-tests to disable])
334 else
335   AC_MSG_WARN([Sissy ! By asking to not build the tests known to fail, you hereby waive your right to customer support.  If you do not agree with this EULA, please press Ctrl-C before the next line is printed.  By allowing the next line to be printed, you expressly acknowledge your acceptance of this EULA.])
336 fi
337
338 AC_ARG_ENABLE(examples,
339 AC_HELP_STRING([--disable-examples],[disable building examples]),
340 [case "${enableval}" in
341   yes) BUILD_EXAMPLES=yes ;;
342   no)  BUILD_EXAMPLES=no ;;
343   *) AC_MSG_ERROR(bad value ${enableval} for --disable-examples) ;;
344 esac], 
345 [BUILD_EXAMPLES=yes]) dnl Default value
346 AM_CONDITIONAL(BUILD_EXAMPLES,      test "x$BUILD_EXAMPLES" = "xyes")
347
348 dnl poison destroyed objects
349 AC_ARG_ENABLE(poisoning,
350 AC_HELP_STRING([--enable-poisoning],[enable poisoning of deallocated objects]),
351 [case "${enableval}" in
352   yes) USE_POISONING=yes ;;
353   no)  USE_POISONING=no ;;
354   *) AC_MSG_ERROR(bad value ${enableval} for --enable-poisoning) ;;
355 esac], 
356 [USE_POISONING=no]) dnl Default value
357
358 dnl Next, check for the optional components:
359 dnl ========================================
360
361 dnl debugging stuff
362 AC_ARG_ENABLE(debug,
363 AC_HELP_STRING([--disable-debug],[disable addition of -g debugging info]),
364 [case "${enableval}" in
365   yes) USE_DEBUG=yes ;;
366   no)  USE_DEBUG=no ;;
367   *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
368 esac],
369 [USE_DEBUG=yes]) dnl Default value
370 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_GST_DEBUG, true)
371 GST_SUBSYSTEM_DISABLE(GST_DEBUG,[debugging subsystem])
372
373 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_LOADSAVE, true)
374 GST_SUBSYSTEM_DISABLE(LOADSAVE,[pipeline XML load/save])
375 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_TYPEFIND, true)
376 GST_SUBSYSTEM_DISABLE(TYPEFIND,[typefind plugin],)
377 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_AUTOPLUG, true)
378 GST_SUBSYSTEM_DISABLE(AUTOPLUG,[autoplugger subsystem])
379 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_PARSE, true)
380 GST_SUBSYSTEM_DISABLE(PARSE,[command-line parser])
381 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_TRACE, true)
382 GST_SUBSYSTEM_DISABLE(TRACE,[tracing subsystem])
383 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_ALLOC_TRACE, true)
384 GST_SUBSYSTEM_DISABLE(ALLOC_TRACE,[allocation tracing])
385
386 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_REGISTRY, true)
387 GST_SUBSYSTEM_DISABLE(REGISTRY,[plugin registry])
388 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_ENUMTYPES, true)
389 GST_SUBSYSTEM_DISABLE(ENUMTYPES,[enum types])
390 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_INDEX, true)
391 GST_SUBSYSTEM_DISABLE(INDEX,[index])
392 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_PLUGIN, true)
393 GST_SUBSYSTEM_DISABLE(PLUGIN,[plugin])
394 translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_URI, true)
395 GST_SUBSYSTEM_DISABLE(URI,[uri handlers])
396
397 dnl ################################################
398 dnl # Set defines according to variables set above #
399 dnl ################################################
400
401
402 dnl These should be "USE_*" instead of "HAVE_*", but some packages expect
403 dnl HAVE_ and it is likely to be easier to stick with the old name
404 if test "x$USE_LIBMMX" = xyes; then
405   AC_DEFINE(HAVE_LIBMMX, 1, [Define if libmmx is available])
406 fi
407
408 if test "x$USE_ATOMIC_H" = xyes; then
409   AC_DEFINE(HAVE_ATOMIC_H, 1, [Define if atomic.h header file is available])
410 fi
411
412 if test "x$USE_FAST_STACK_TRASH" = xyes; then
413   AC_DEFINE(USE_FAST_STACK_TRASH, 1, [Define if we should use i586 optimized stack functions])
414 fi
415
416 if test "x$USE_POISONING" = xyes; then
417   AC_DEFINE(USE_POISONING, 1, [Define if we should poison deallocated memory])
418 fi
419
420 dnl test if we have pthread_attr_setstack; if not use the older calls
421 AC_CHECK_LIB(pthread, pthread_attr_setstack, 
422    AC_DEFINE(HAVE_PTHREAD_ATTR_SETSTACK, 1, 
423              [Defined if libpthread has pthread_attr_setstack ()]))
424
425 dnl test if we have posix_memalign; FreeBSD doesn't
426 AC_CHECK_FUNC(posix_memalign,
427    AC_DEFINE(HAVE_POSIX_MEMALIGN, 1,
428              [Defined if we have posix_memalign ()]))
429
430 dnl test for sigaction()
431 AC_CHECK_FUNC(sigaction,
432    AC_DEFINE(HAVE_SIGACTION, 1,
433              [Defined if we have sigaction ()]))
434
435 dnl test if we have dladdr(); we use it for debugging
436 save_cflags="$CFLAGS"
437 CFLAGS="$CFLAGS -D_GNU_SOURCE"
438 AC_CHECK_LIB(dl, dladdr,
439    AC_DEFINE(HAVE_DLADDR, 1,
440              [Defined if we have dladdr ()]))
441 CFLAGS="$save_cflags"
442
443 if test "x$PLUGINS_USE_BUILDDIR" = xyes; then
444   AC_DEFINE(PLUGINS_USE_BUILDDIR, 1, [Define if plugins should be loaded from the build tree - only developers should use this])
445 fi
446
447 if test "x$USE_DEBUG" = xyes; then
448    GST_INT_CFLAGS="$GST_INT_CFLAGS -g"
449 fi
450
451 dnl #############################
452 dnl # Set automake conditionals #
453 dnl #############################
454
455 dnl These should be "USE_*" instead of "HAVE_*", but some packages expect
456 dnl HAVE_ and it is likely to be easier to stick with the old name
457 AM_CONDITIONAL(HAVE_ATOMIC_H,       test "x$USE_ATOMIC_H" = "xyes")
458
459 AM_CONDITIONAL(EXPERIMENTAL,        test "$EXPERIMENTAL" = "$xyes")
460 AM_CONDITIONAL(BROKEN,              test "$BROKEN" = "$xyes")
461
462 AM_CONDITIONAL(PLUGINS_USE_BUILDDIR,  test "x$PLUGINS_USE_BUILDDIR" = "xyes")
463
464
465 dnl ############################
466 dnl # Set up some more defines #
467 dnl ############################
468
469 dnl Set location of registry dir.
470 AC_DEFINE_UNQUOTED(GST_CACHE_DIR, "$GST_CACHE_DIR", [Define the registry directory])
471 AC_SUBST(GST_CACHE_DIR)
472
473 dnl Set location of plugin directory
474 if test "x${prefix}" = "xNONE"; then
475   PLUGINS_DIR=${ac_default_prefix}/lib/gstreamer-$GST_MAJORMINOR
476 else
477   PLUGINS_DIR=${prefix}/lib/gstreamer-$GST_MAJORMINOR
478 fi
479 AC_DEFINE_UNQUOTED(PLUGINS_DIR, "$PLUGINS_DIR", [Define the plugin directory])
480 AC_SUBST(PLUGINS_DIR)
481
482 dnl Set location of uninstalled plugin directory
483 PLUGINS_BUILDDIR=`pwd`
484 AC_DEFINE_UNQUOTED(PLUGINS_BUILDDIR, "$PLUGINS_BUILDDIR", [Define the uninstalled plugin directory])
485 AC_SUBST(PLUGINS_BUILDDIR)
486
487 dnl since glib and xml are package deps, there's no need to include their cflags
488 dnl in the pkg-config file
489
490 dnl for pkg-config
491 GST_PKG_CFLAGS=$GST_EXT_CFLAGS
492 GST_PKG_LIBS=$GST_EXT_LIBS
493 AC_SUBST(GST_PKG_CFLAGS)
494 AC_SUBST(GST_PKG_LIBS)
495
496 dnl finalize _CFLAGS and _LIBS
497 dnl add GLIB and XML if necessary to EXT_*
498 GST_CFLAGS="$GST_EXT_CFLAGS $XML_CFLAGS $GLIB_CFLAGS"
499 GST_LIBS="$GST_EXT_LIBS $XML_LIBS $GLIB_LIBS -lpopt"
500
501 dnl Private vars for libgst only
502 LIBGST_LIBS="$GST_LIBS"
503 LIBGST_CFLAGS="$GST_CFLAGS -I\$(top_srcdir) $GST_ERROR"
504 AC_SUBST(LIBGST_LIBS)
505 AC_SUBST(LIBGST_CFLAGS)
506
507 dnl Vars for everyone else
508 GST_INT_LIBS="\$(top_builddir)/gst/libgstreamer-$GST_MAJORMINOR.la"
509 GST_INT_CFLAGS="$GST_INT_CFLAGS -I\$(top_srcdir)/libs -I\$(top_srcdir)/include"
510
511 AC_SUBST(GST_CFLAGS, "$LIBGST_CFLAGS $GST_INT_CFLAGS")
512 AC_SUBST(GST_LIBS, "$LIBGST_LIBS $GST_INT_LIBS")
513
514 GST_PLUGIN_LDFLAGS="-module -avoid-version"
515 AC_SUBST(GST_PLUGIN_LDFLAGS, "$GST_PLUGIN_LDFLAGS")
516
517
518 dnl ##################################################
519 dnl # deps for examples from manual                  #
520 dnl ##################################################
521
522 PKG_CHECK_MODULES(LIBGNOMEUI, libgnomeui-2.0,
523                   HAVE_LIBGNOMEUI="yes", HAVE_LIBGNOMEUI="no")
524 AC_SUBST(LIBGNOMEUI_CFLAGS)
525 AC_SUBST(LIBGNOMEUI_LIBS)
526 AM_CONDITIONAL(HAVE_LIBGNOMEUI, test "x$HAVE_LIBGNOMEUI" = "xyes")
527
528 dnl ##################################################
529 dnl # Prepare informative messages to display at end #
530 dnl ##################################################
531
532 infomessages=
533
534 if test "x$PLUGINS_USE_BUILDDIR" = xyes; then
535   infomessages="$infomessages
536 *** Warning: You have configured using the --enable-plugin-builddir option.
537
538 This option is for development purposes only: binaries built with
539 it should be used with code in the build tree only.  To build an
540 installable version, use ./configure without the --enable-plugin-builddir
541 option.  Note that the autogen.sh script supplies the plugin builddir
542 option automatically -- run ./autogen.sh -- --disable-plugin-builddir to make
543 an installable build.
544
545 "
546 fi
547
548 dnl #########################
549 dnl # Make the output files #
550 dnl #########################
551
552 dnl libs/ext/Makefile
553 dnl nothing there yet !
554 AC_OUTPUT(
555 Makefile
556 include/Makefile
557 gst/Makefile
558 gst/gstconfig.h
559 gst/gstversion.h
560 gst/autoplug/Makefile
561 gst/indexers/Makefile
562 gst/elements/Makefile
563 gst/parse/Makefile
564 gst/schedulers/Makefile
565 gst/types/Makefile
566 gst/registries/Makefile
567 libs/Makefile
568 libs/gst/Makefile
569 libs/gst/getbits/Makefile
570 libs/gst/control/Makefile
571 libs/ext/Makefile
572 po/Makefile.in
573 tests/Makefile
574 tests/bufspeed/Makefile
575 tests/memchunk/Makefile
576 tests/muxing/Makefile
577 tests/seeking/Makefile
578 tests/sched/Makefile
579 tests/threadstate/Makefile
580 testsuite/Makefile
581 testsuite/bytestream/Makefile
582 testsuite/caps/Makefile
583 testsuite/cleanup/Makefile
584 testsuite/clock/Makefile
585 testsuite/debug/Makefile
586 testsuite/dynparams/Makefile
587 testsuite/elements/Makefile
588 testsuite/indexers/Makefile
589 testsuite/parse/Makefile
590 testsuite/plugin/Makefile
591 testsuite/refcounting/Makefile
592 testsuite/threads/Makefile
593 examples/Makefile
594 examples/autoplug/Makefile
595 examples/cutter/Makefile
596 examples/helloworld/Makefile
597 examples/helloworld2/Makefile
598 examples/launch/Makefile
599 examples/manual/Makefile
600 examples/mixer/Makefile
601 examples/pingpong/Makefile
602 examples/plugins/Makefile
603 examples/queue/Makefile
604 examples/queue2/Makefile
605 examples/queue3/Makefile
606 examples/queue4/Makefile
607 examples/thread/Makefile
608 examples/typefind/Makefile
609 examples/xml/Makefile
610 tools/Makefile
611 docs/Makefile
612 docs/faq/Makefile
613 docs/gst/Makefile
614 docs/libs/Makefile
615 docs/manual/Makefile
616 docs/pwg/Makefile
617 docs/plugins/Makefile
618 docs/plugins/gstreamer-plugins.types
619 docs/xsl/Makefile
620 pkgconfig/Makefile
621 stamp.h
622 pkgconfig/gstreamer.pc
623 pkgconfig/gstreamer-uninstalled.pc
624 pkgconfig/gstreamer-control.pc
625 pkgconfig/gstreamer-control-uninstalled.pc
626 gstreamer.spec,
627 echo "$infomessages", infomessages="$infomessages"
628 )
629