3 AC_INIT([gst-openmax], m4_esyscmd([build-aux/git-version-gen]),
4 [http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer&component=gst-openmax])
6 AC_CONFIG_AUX_DIR([build-aux])
7 AM_INIT_AUTOMAKE([-Wall -Wno-portability])
8 AC_CONFIG_HEADERS([config.h])
10 dnl versions of GStreamer
14 dnl AM_MAINTAINER_MODE provides the option to enable maintainer mode
23 PKG_CHECK_MODULES([CHECK], [check], HAVE_CHECK=yes, HAVE_CHECK=no)
25 dnl Keep correct libtool macros in-tree.
26 AC_CONFIG_MACRO_DIR([m4])
28 dnl initialize GStreamer macros
31 dnl define an ERROR_CFLAGS Makefile variable
33 AG_GST_SET_ERROR_CFLAGS($GST_CVS)
35 dnl add GStreamer arguments
41 AG_GST_ARG_WITH_PKG_CONFIG_PATH
42 AG_GST_ARG_WITH_PACKAGE_NAME
43 AG_GST_ARG_WITH_PACKAGE_ORIGIN
45 AC_ARG_ENABLE([experimental], AC_HELP_STRING([--enable-experimental]), [EXPERIMENTAL=$enableval], [EXPERIMENTAL=no])
46 AM_CONDITIONAL([EXPERIMENTAL], [test x$EXPERIMENTAL = xyes])
47 if test x$EXPERIMENTAL = xyes; then
48 AC_DEFINE([EXPERIMENTAL], , [Enable experimental elements])
54 PKG_CHECK_MODULES([GTHREAD], [gthread-2.0])
56 dnl Check for GStreamer
57 AG_GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQUIRED])
58 AG_GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQUIRED])
59 AG_GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQUIRED], [no])
63 dnl set license and copyright notice
65 AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
68 dnl set GStreamer plug-in dir
72 if test "x$USE_DEBUG" = xyes; then
75 AC_SUBST(PROFILE_CFLAGS)
77 DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
78 AC_SUBST(DEPRECATED_CFLAGS)
80 dnl every flag in GST_OPTION_CFLAGS can be overridden at make time
81 GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
82 AC_SUBST(GST_OPTION_CFLAGS)
84 dnl our libraries need to be versioned correctly
85 AC_SUBST(GST_LT_LDFLAGS)
87 dnl FIXME: do we want to rename to GST_ALL_* ?
88 dnl prefer internal headers to already installed ones
89 dnl also add builddir include for enumtypes and marshal
90 dnl add GST_OPTION_CFLAGS, but overridable
91 GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
95 dnl LDFLAGS really should only contain flags, not libs - they get added before
96 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
97 GST_ALL_LDFLAGS="-no-undefined"
98 AC_SUBST(GST_ALL_LDFLAGS)
100 dnl this really should only contain flags, not libs - they get added before
101 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
102 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
103 AC_SUBST(GST_PLUGIN_LDFLAGS)
106 AC_CONFIG_FILES([shave shave-libtool])
108 AC_CONFIG_FILES([Makefile \
112 tests/standalone/Makefile \