mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
don't use AS_LIBTOOL_TAGS, it doesn't work
Original commit message from CVS: don't use AS_LIBTOOL_TAGS, it doesn't work
This commit is contained in:
parent
dd812c1e80
commit
d9f72b4194
2 changed files with 127 additions and 73 deletions
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit e430cd53b02f6d37da6200ac81c89c588f99b089
|
Subproject commit 6f7101e2227975fa8a134358362dd4b55e326b4c
|
196
configure.ac
196
configure.ac
|
@ -1,96 +1,150 @@
|
||||||
dnl autoconf configuration file for gst-ffmpeg
|
AC_PREREQ(2.52)
|
||||||
AC_INIT
|
|
||||||
AC_CANONICAL_TARGET
|
|
||||||
|
|
||||||
dnl We disable static building for development, for time savings
|
dnl initialize autoconf
|
||||||
dnl this goes before AS_LIBTOOL to appease autoconf
|
dnl when going to/from release please set the nano (fourth number) right !
|
||||||
dnl *NOTE*: dnl this line before release, so release does static too
|
dnl releases only do Wall, cvs and prerelease does Werror too
|
||||||
AM_DISABLE_STATIC
|
AC_INIT(GStreamer FFMpeg, 0.10.1.1,
|
||||||
|
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
|
||||||
|
gst-ffmpeg)
|
||||||
|
|
||||||
|
dnl initialize automake
|
||||||
|
AM_INIT_AUTOMAKE
|
||||||
|
|
||||||
|
dnl define PACKAGE_VERSION_* variables
|
||||||
|
AS_VERSION
|
||||||
|
|
||||||
|
dnl check if this is a release version
|
||||||
|
AS_NANO(GST_CVS="no", GST_CVS="yes")
|
||||||
|
|
||||||
|
dnl can autoconf find the source ?
|
||||||
|
AC_CONFIG_SRCDIR([ext/ffmpeg/gstffmpeg.c])
|
||||||
|
|
||||||
|
dnl define the output header for config
|
||||||
|
AM_CONFIG_HEADER([config.h])
|
||||||
|
|
||||||
dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
|
dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
dnl when going to/from release please set the nano (fourth number) right !
|
dnl sets host_* variables
|
||||||
dnl releases only do Wall, cvs and prerelease does Werror too
|
AC_CANONICAL_HOST
|
||||||
AS_VERSION(gst-ffmpeg, GST_FFMPEG_VERSION, 0, 10, 1, 1,
|
|
||||||
GST_CVS="no", GST_CVS="yes")
|
|
||||||
|
|
||||||
dnl we cheat here so we don't have to change the actual configure code bit
|
|
||||||
GST_PLUGINS_VERSION_NANO=$GST_FFMPEG_VERSION_NANO
|
|
||||||
|
|
||||||
dnl required GStreamer version
|
|
||||||
GST_REQ=0.10.0
|
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
|
|
||||||
|
|
||||||
dnl our libraries and install dirs use major.minor as a version
|
dnl our libraries and install dirs use major.minor as a version
|
||||||
#GST_MAJORMINOR=$GST_FFMPEG_VERSION_MAJOR.$GST_FFMPEG_VERSION_MINOR
|
GST_MAJORMINOR=$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR
|
||||||
dnl hack while GST_MAJORMINOR doesn't match the release
|
dnl we override it here if we need to for the release candidate of new series
|
||||||
GST_MAJORMINOR=0.10
|
GST_MAJORMINOR=0.10
|
||||||
AC_SUBST(GST_MAJORMINOR)
|
AC_SUBST(GST_MAJORMINOR)
|
||||||
|
|
||||||
dnl CURRENT, REVISION, AGE
|
AM_PROG_LIBTOOL
|
||||||
dnl - library source changed -> increment REVISION
|
|
||||||
dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
|
|
||||||
dnl - interfaces added -> increment AGE
|
|
||||||
dnl - interfaces removed -> AGE = 0
|
|
||||||
AS_LIBTOOL(GST_FFMPEG, 0, 0, 0)
|
|
||||||
AM_PROG_LIBTOOL()
|
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(configure.ac)
|
dnl *** required versions of GStreamer stuff ***
|
||||||
AM_CONFIG_HEADER(config.h)
|
GST_REQ=0.10.4.1
|
||||||
|
|
||||||
|
dnl *** autotools stuff ****
|
||||||
|
|
||||||
|
dnl allow for different autotools
|
||||||
|
AS_AUTOTOOLS_ALTERNATE
|
||||||
|
|
||||||
dnl Add parameters for aclocal
|
dnl Add parameters for aclocal
|
||||||
AC_SUBST(ACLOCAL_AMFLAGS, "-I common/m4")
|
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4")
|
||||||
|
|
||||||
|
dnl *** check for arguments to configure ***
|
||||||
|
|
||||||
|
GST_ARG_WITH_PACKAGE_NAME
|
||||||
|
GST_ARG_WITH_PACKAGE_ORIGIN
|
||||||
|
|
||||||
|
dnl *** checks for platform ***
|
||||||
|
|
||||||
|
dnl * hardware/architecture *
|
||||||
|
|
||||||
|
dnl common/m4/gst-arch.m4
|
||||||
|
dnl check CPU type
|
||||||
|
GST_ARCH
|
||||||
|
|
||||||
|
dnl *** checks for programs ***
|
||||||
|
|
||||||
|
dnl find a compiler
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
|
||||||
|
# FIXME: are these two lines needed ?
|
||||||
AM_PROG_CC_STDC
|
AM_PROG_CC_STDC
|
||||||
AS="${CC}"
|
AS="${CC}"
|
||||||
|
|
||||||
dnl decide on error flags
|
|
||||||
AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no")
|
|
||||||
|
|
||||||
if test "x$GST_WALL" = "xyes"; then
|
|
||||||
GST_ERROR="$GST_ERROR -Wall"
|
|
||||||
|
|
||||||
if test "x$GST_CVS" = "xyes"; then
|
|
||||||
AS_COMPILER_FLAG(-Werror,GST_ERROR="$GST_ERROR -Werror",GST_ERROR="$GST_ERROR")
|
|
||||||
GST_ERROR="$GST_ERROR -DG_DISABLE_DEPRECATED"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_HEADER_STDC([])
|
|
||||||
|
|
||||||
GST_ARG_WITH_PKG_CONFIG_PATH
|
|
||||||
|
|
||||||
dnl check for gstreamer
|
|
||||||
dnl uninstalled is selected preferentially -- see pkg-config(1)
|
|
||||||
GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ])
|
|
||||||
GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ])
|
|
||||||
GST_CHECK_GST_PLUGINS_BASE($GST_MAJORMINOR, [$GST_REQ])
|
|
||||||
|
|
||||||
if test "x$HAVE_GST" = "xno"; then
|
|
||||||
AC_MSG_ERROR(no GStreamer found)
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl ============================= gst plug-ins ================================
|
|
||||||
|
|
||||||
plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
|
|
||||||
AC_SUBST(plugindir)
|
|
||||||
|
|
||||||
GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).* -no-undefined'
|
|
||||||
AC_SUBST(GST_PLUGIN_LDFLAGS)
|
|
||||||
|
|
||||||
dnl Determine CPU
|
|
||||||
GST_ARCH()
|
|
||||||
|
|
||||||
dnl check for documentation tools
|
dnl check for documentation tools
|
||||||
GTK_DOC_CHECK([1.3])
|
GTK_DOC_CHECK([1.3])
|
||||||
AS_PATH_PYTHON([2.1])
|
AS_PATH_PYTHON([2.1])
|
||||||
|
|
||||||
dnl ###########################
|
dnl *** checks for libraries ***
|
||||||
dnl # Configure external libs #
|
|
||||||
dnl ###########################
|
dnl *** checks for header files ***
|
||||||
|
|
||||||
|
dnl check if we have ANSI C header files
|
||||||
|
AC_HEADER_STDC
|
||||||
|
|
||||||
|
dnl *** checks for types/defines ***
|
||||||
|
|
||||||
|
dnl *** checks for structures ***
|
||||||
|
|
||||||
|
dnl *** checks for compiler characteristics ***
|
||||||
|
|
||||||
|
dnl *** checks for library functions ***
|
||||||
|
|
||||||
|
dnl *** checks for dependancy libraries ***
|
||||||
|
|
||||||
|
dnl checks for gstreamer
|
||||||
|
dnl uninstalled is selected preferentially -- see pkg-config(1)
|
||||||
|
GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ])
|
||||||
|
GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ])
|
||||||
|
GST_CHECK_GST_PLUGINS_BASE($GST_MAJORMINOR, [$GST_REQ])
|
||||||
|
|
||||||
|
dnl *** set variables based on configure arguments ***
|
||||||
|
|
||||||
|
dnl set location of plugin directory
|
||||||
|
GST_SET_PLUGINDIR
|
||||||
|
|
||||||
|
dnl define an ERROR_CFLAGS Makefile variable
|
||||||
|
GST_SET_ERROR_CFLAGS($GST_CVS)
|
||||||
|
|
||||||
|
dnl define correct level for debugging messages
|
||||||
|
GST_SET_LEVEL_DEFAULT($GST_CVS)
|
||||||
|
|
||||||
|
dnl *** finalize CFLAGS, LDFLAGS, LIBS ***
|
||||||
|
|
||||||
|
dnl Overview:
|
||||||
|
dnl GST_OPTION_CFLAGS: common flags for profiling, debugging, errors, ...
|
||||||
|
dnl GST_*: flags shared by built objects to link against GStreamer
|
||||||
|
dnl GST_ALL_LDFLAGS: linker flags shared by all
|
||||||
|
dnl GST_LIB_LDFLAGS: additional linker flags for all libaries
|
||||||
|
dnl GST_LT_LDFLAGS: library versioning of our libraries
|
||||||
|
dnl GST_PLUGIN_LDFLAGS: flags to be used for all plugins
|
||||||
|
|
||||||
|
dnl GST_OPTION_CFLAGS
|
||||||
|
if test "x$USE_DEBUG" = xyes; then
|
||||||
|
PROFILE_CFLAGS="-g"
|
||||||
|
fi
|
||||||
|
AC_SUBST(PROFILE_CFLAGS)
|
||||||
|
|
||||||
|
DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
|
||||||
|
AC_SUBST(DEPRECATED_CFLAGS)
|
||||||
|
|
||||||
|
dnl every flag in GST_OPTION_CFLAGS can be overridden at make time
|
||||||
|
GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
|
||||||
|
|
||||||
|
AC_SUBST(GST_OPTION_CFLAGS)
|
||||||
|
|
||||||
|
dnl FIXME: do we want to rename to GST_ALL_* ?
|
||||||
|
dnl prefer internal headers to already installed ones
|
||||||
|
dnl also add builddir include for enumtypes and marshal
|
||||||
|
dnl add GST_OPTION_CFLAGS, but overridable
|
||||||
|
GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
|
||||||
|
AC_SUBST(GST_CFLAGS)
|
||||||
|
AC_SUBST(GST_LIBS)
|
||||||
|
|
||||||
|
dnl this really should only contain flags, not libs - they get added before
|
||||||
|
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
|
||||||
|
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
|
||||||
|
AC_SUBST(GST_PLUGIN_LDFLAGS)
|
||||||
|
|
||||||
|
dnl *** configure external libs ***
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(HAVE_FFMPEG_UNINSTALLED, 1,
|
AC_DEFINE_UNQUOTED(HAVE_FFMPEG_UNINSTALLED, 1,
|
||||||
[Defined if building against uninstalled FFmpeg source])
|
[Defined if building against uninstalled FFmpeg source])
|
||||||
|
|
Loading…
Reference in a new issue