[svn r56] Minor fixes.
1 dnl fill in your package name and version here
2 dnl autoconf configuration files for gst-plugins-dspbin
6 AC_CONFIG_MACRO_DIR([m4])
7 dnl We disable static building for development, for time savings
8 dnl this goes before AS_LIBTOOL to appease autoconf
9 dnl *NOTE*: dnl this line before release, so release does static too
12 dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
15 dnl when going to/from release please set the nano (fourth number) right !
16 dnl releases only do Wall, cvs and prerelease does Werror too
17 AS_VERSION(gst-plugins-nuvdemux, GST_PLUGINS_VERSION, 0, 10, 0, 1, GST_CVS="no", GST_CVS="yes")
19 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
23 AM_CONFIG_HEADER(config.h)
25 dnl make aclocal work in maintainer mode
26 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
33 dnl decide on error flags
34 AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no")
36 if test "x$GST_WALL" = "xyes"; then
37 ERROR_CFLAGS="$GST_ERROR -Wall"
39 if test "x$GST_CVS" = "xyes"; then
40 AS_COMPILER_FLAG(-Werror,ERROR_CFLAGS="$ERROR_CFLAGS -Werror",ERROR_CFLAGS="$ERROR_CFLAGS")
44 AC_SUBST(ERROR_CFLAGS)
46 dnl determine c++ compiler
48 dnl determine if c++ is available on this system
49 AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
50 dnl determine c++ preprocessor
57 dnl Check for pkgconfig first
58 AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
60 dnl Give error and exit if we don't have pkgconfig
61 if test "x$HAVE_PKGCONFIG" = "xno"; then
62 AC_MSG_ERROR(you need to have pkgconfig installed !)
65 dnl Now we're ready to ask for gstreamer libs and cflags
66 dnl And we can also ask for the right version of gstreamer
71 PKG_CHECK_MODULES(GST, \
72 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED,
73 HAVE_GST=yes,HAVE_GST=no)
75 dnl Give error and exit if we don't have gstreamer
76 if test "x$HAVE_GST" = "xno"; then
77 AC_MSG_ERROR(you need gstreamer development packages installed !)
80 if test "x$USE_DEBUG" = xyes; then
81 GST_CFLAGS="$GST_CFLAGS -g"
84 dnl make GST_CFLAGS and GST_LIBS available
88 dnl make GST_MAJORMINOR available in Makefile.am
89 AC_SUBST(GST_MAJORMINOR)
91 dnl check for gstreamer-base; uninstalled is selected preferentially
92 PKG_CHECK_MODULES(GST_BASE, gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED,
93 HAVE_GST_BASE="yes", HAVE_GST_BASE="no")
95 if test "x$HAVE_GST_BASE" = "xno"; then
96 AC_MSG_ERROR(no GStreamer Base Libs found)
99 AC_SUBST(GST_BASE_LIBS)
100 AC_SUBST(GST_BASE_CFLAGS)
102 dnl check for gstreamer-libs; uinstalled is selected preferentially
103 PKG_CHECK_MODULES(GST_PLUGINS_BASE, gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED,
104 HAVE_GST_PLUGINS="yes", HAVE_GST_PLUGINS="no")
106 if test "x$HAVE_GST_PLUGINS" = "xno"; then
107 AC_MSG_ERROR(no GStreamer Plugins Libs found)
110 AC_SUBST(GST_PLUGINS_BASE_LIBS)
111 AC_SUBST(GST_PLUGINS_BASE_CFLAGS)
113 dnl set the plugindir where plugins should be installed
114 plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
117 dnl set proper LDFLAGS for plugins
118 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
119 AC_SUBST(GST_PLUGIN_LDFLAGS)