1 dnl required version of autoconf
4 dnl TODO: fill in your package name and package version here
5 AC_INIT([my-plugin-package],[0.10.0])
7 dnl required versions of gstreamer and plugins-base
11 AC_CONFIG_SRCDIR([src/gstemul.c])
12 AC_CONFIG_HEADERS([config.h])
14 dnl required version of automake
15 AM_INIT_AUTOMAKE([1.10])
17 dnl enable mainainer mode by default
18 AM_MAINTAINER_MODE([enable])
20 dnl check for tools (compiler etc.)
23 dnl required version of libtool
27 dnl give error and exit if we don't have pkgconfig
28 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, [ ], [
29 AC_MSG_ERROR([You need to have pkg-config installed!])
32 dnl Check for the required version of GStreamer core (and gst-plugins-base)
33 dnl This will export GST_CFLAGS and GST_LIBS variables for use in Makefile.am
35 dnl If you need libraries from gst-plugins-base here, also add:
36 dnl for libgstaudio-0.10: gstreamer-audio-0.10 >= $GST_REQUIRED
37 dnl for libgstvideo-0.10: gstreamer-video-0.10 >= $GST_REQUIRED
38 dnl for libgsttag-0.10: gstreamer-tag-0.10 >= $GST_REQUIRED
39 dnl for libgstpbutils-0.10: gstreamer-pbutils-0.10 >= $GST_REQUIRED
40 dnl for libgstfft-0.10: gstreamer-fft-0.10 >= $GST_REQUIRED
41 dnl for libgstinterfaces-0.10: gstreamer-interfaces-0.10 >= $GST_REQUIRED
42 dnl for libgstrtp-0.10: gstreamer-rtp-0.10 >= $GST_REQUIRED
43 dnl for libgstrtsp-0.10: gstreamer-rtsp-0.10 >= $GST_REQUIRED
45 PKG_CHECK_MODULES(GST, [
46 gstreamer-0.10 >= $GST_REQUIRED
47 gstreamer-base-0.10 >= $GST_REQUIRED
48 gstreamer-controller-0.10 >= $GST_REQUIRED
54 You need to install or upgrade the GStreamer development
55 packages on your system. On debian-based systems these are
56 libgstreamer0.10-dev and libgstreamer-plugins-base0.10-dev.
57 on RPM-based systems gstreamer0.10-devel, libgstreamer0.10-devel
58 or similar. The minimum version required is $GST_REQUIRED.
62 dnl check if compiler understands -Wall (if yes, add -Wall to GST_CFLAGS)
63 AC_MSG_CHECKING([to see if compiler understands -Wall])
65 CFLAGS="$CFLAGS -Wall"
66 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ ], [ ])], [
67 GST_CFLAGS="$GST_CFLAGS -Wall"
73 dnl set the plugindir where plugins should be installed (for src/Makefile.am)
74 if test "x${prefix}" = "x$HOME"; then
75 plugindir="$HOME/.gstreamer-0.10/plugins"
77 plugindir="\$(libdir)/gstreamer-0.10"
81 dnl set proper LDFLAGS for plugins
82 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
83 AC_SUBST(GST_PLUGIN_LDFLAGS)
85 AC_CONFIG_FILES([Makefile src/Makefile])