diff -r 000000000000 -r be87d28e8371 gst-gpac/configure.ac --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gst-gpac/configure.ac Thu Feb 21 17:44:16 2008 +0000 @@ -0,0 +1,132 @@ +dnl fill in your package name and version here +dnl autoconf configuration files for gst-plugins-dspbin +AC_INIT +AC_CANONICAL_TARGET + +AC_CONFIG_MACRO_DIR([m4]) +dnl We disable static building for development, for time savings +dnl this goes before AS_LIBTOOL to appease autoconf +dnl *NOTE*: dnl this line before release, so release does static too +AM_DISABLE_STATIC + +dnl AM_MAINTAINER_MODE only provides the option to configure to enable it +AM_MAINTAINER_MODE + +dnl when going to/from release please set the nano (fourth number) right ! +dnl releases only do Wall, cvs and prerelease does Werror too +AS_VERSION(gst-indt-plugins, GST_PLUGINS_VERSION, 0, 10, 0, 1, GST_CVS="no", GST_CVS="yes") + +AM_INIT_AUTOMAKE($PACKAGE, $VERSION) + +AM_PROG_LIBTOOL + +AM_CONFIG_HEADER(config.h) + +dnl make aclocal work in maintainer mode +AC_SUBST(ACLOCAL_AMFLAGS, "-I m4") + +dnl check for tools +AC_PROG_CC +AC_PROG_CC_STDC +AM_PROG_AS + +dnl decide on error flags +AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no") + +if test "x$GST_WALL" = "xyes"; then + ERROR_CFLAGS="$GST_ERROR -Wall" + + if test "x$GST_CVS" = "xyes"; then + AS_COMPILER_FLAG(-Werror,ERROR_CFLAGS="$ERROR_CFLAGS -Werror",ERROR_CFLAGS="$ERROR_CFLAGS") + fi +fi + +AC_SUBST(ERROR_CFLAGS) + +dnl determine c++ compiler +AC_PROG_CXX +dnl determine if c++ is available on this system +AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no) +dnl determine c++ preprocessor +AC_PROG_CXXCPP +AC_ISC_POSIX + +AC_HEADER_STDC([]) +AC_C_INLINE + +dnl Check for pkgconfig first +AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no) + +dnl Give error and exit if we don't have pkgconfig +if test "x$HAVE_PKGCONFIG" = "xno"; then + AC_MSG_ERROR(you need to have pkgconfig installed !) +fi + +dnl Now we're ready to ask for gstreamer libs and cflags +dnl And we can also ask for the right version of gstreamer + +GST_REQUIRED=0.10.14 +GST_MAJORMINOR=0.10 + +PKG_CHECK_MODULES(GST, \ + gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED, + HAVE_GST=yes,HAVE_GST=no) + +dnl Give error and exit if we don't have gstreamer +if test "x$HAVE_GST" = "xno"; then + AC_MSG_ERROR(you need gstreamer development packages installed !) +fi + +if test "x$USE_DEBUG" = xyes; then + GST_CFLAGS="$GST_CFLAGS -g" +fi + +dnl added because of the i18n headers +GST_CFLAGS="-I\$(top_builddir)/gst-libs $GST_CFLAGS" + +dnl make GST_CFLAGS and GST_LIBS available +AC_SUBST(GST_CFLAGS) +AC_SUBST(GST_LIBS) + +dnl make GST_MAJORMINOR available in Makefile.am +AC_SUBST(GST_MAJORMINOR) + +dnl check for gstreamer-base; uninstalled is selected preferentially +PKG_CHECK_MODULES(GST_BASE, gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED, + HAVE_GST_BASE="yes", HAVE_GST_BASE="no") + +if test "x$HAVE_GST_BASE" = "xno"; then + AC_MSG_ERROR(no GStreamer Base Libs found) +fi + +AC_SUBST(GST_BASE_LIBS) +AC_SUBST(GST_BASE_CFLAGS) + +dnl check for gstreamer-libs; uinstalled is selected preferentially +PKG_CHECK_MODULES(GST_PLUGINS_BASE, gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED, + HAVE_GST_PLUGINS="yes", HAVE_GST_PLUGINS="no") + +if test "x$HAVE_GST_PLUGINS" = "xno"; then + AC_MSG_ERROR(no GStreamer Plugins Libs found) +fi + +AC_SUBST(GST_PLUGINS_BASE_LIBS) +AC_SUBST(GST_PLUGINS_BASE_CFLAGS) + +dnl set the plugindir where plugins should be installed +plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR" +AC_SUBST(plugindir) + +dnl set proper LDFLAGS for plugins +GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*' +AC_SUBST(GST_PLUGIN_LDFLAGS) + +AC_DEFINE(GST_LICENSE, "LGPL", [License for Distribution]) +AC_DEFINE(GST_PACKAGE_NAME, "INdT plugins to Gstreamer ", [package name]) +AC_DEFINE(GST_PACKAGE_ORIGIN, "https://svn.sourceforge.net/svnroot/gmyth/gst-gpac", [Origin of this package] ) + +AC_OUTPUT( \ + Makefile \ + src/Makefile +) +