mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 10:38:27 +00:00
configure: Modernize autotools setup a bit
Also we now only create tar.bz2 and tar.xz tarballs.
This commit is contained in:
parent
cd81485330
commit
c31d275aff
2 changed files with 11 additions and 19 deletions
10
autogen.sh
10
autogen.sh
|
@ -39,14 +39,14 @@ autogen_options $@
|
|||
|
||||
printf "+ check for build tools"
|
||||
if test ! -z "$NOCHECK"; then echo " skipped"; else echo; fi
|
||||
version_check "autoconf" "$AUTOCONF autoconf autoconf270 autoconf269 autoconf268 autoconf267 autoconf266 autoconf265 autoconf264 autoconf263 autoconf262 autoconf261 autoconf260" \
|
||||
"ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 60 || DIE=1
|
||||
version_check "automake" "$AUTOMAKE automake automake-1.11 automake-1.10" \
|
||||
"ftp://ftp.gnu.org/pub/gnu/automake/" 1 10 || DIE=1
|
||||
version_check "autoconf" "$AUTOCONF autoconf autoconf270 autoconf269 autoconf268 autoconf267 autoconf266 autoconf265 autoconf264 autoconf263 autoconf262" \
|
||||
"ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 62 || DIE=1
|
||||
version_check "automake" "$AUTOMAKE automake automake-1.11" \
|
||||
"ftp://ftp.gnu.org/pub/gnu/automake/" 1 11 || DIE=1
|
||||
version_check "autopoint" "autopoint" \
|
||||
"ftp://ftp.gnu.org/pub/gnu/gettext/" 0 17 || DIE=1
|
||||
version_check "libtoolize" "$LIBTOOLIZE libtoolize glibtoolize" \
|
||||
"ftp://ftp.gnu.org/pub/gnu/libtool/" 1 5 0 || DIE=1
|
||||
"ftp://ftp.gnu.org/pub/gnu/libtool/" 2 2 6 || DIE=1
|
||||
version_check "pkg-config" "" \
|
||||
"http://www.freedesktop.org/software/pkgconfig" 0 8 0 || DIE=1
|
||||
|
||||
|
|
20
configure.ac
20
configure.ac
|
@ -1,4 +1,4 @@
|
|||
AC_PREREQ(2.60)
|
||||
AC_PREREQ(2.62)
|
||||
|
||||
dnl initialize autoconf
|
||||
dnl when going to/from release please set the nano (fourth number) right !
|
||||
|
@ -10,7 +10,7 @@ AC_INIT(GStreamer Bad Plug-ins, 0.11.90.1,
|
|||
AG_GST_INIT
|
||||
|
||||
dnl initialize automake
|
||||
AM_INIT_AUTOMAKE([-Wno-portability 1.10])
|
||||
AM_INIT_AUTOMAKE([-Wno-portability 1.11 no-dist-gzip dist-xz tar-ustar])
|
||||
|
||||
dnl define PACKAGE_VERSION_* variables
|
||||
AS_VERSION
|
||||
|
@ -25,7 +25,7 @@ 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
|
||||
AM_MAINTAINER_MODE
|
||||
AM_MAINTAINER_MODE([enable])
|
||||
|
||||
dnl sets host_* variables
|
||||
AC_CANONICAL_HOST
|
||||
|
@ -42,6 +42,8 @@ AC_SUBST(GST_API_VERSION)
|
|||
AC_DEFINE_UNQUOTED(GST_API_VERSION, "$GST_API_VERSION",
|
||||
[GStreamer API Version])
|
||||
|
||||
AG_GST_LIBTOOL_PREPARE
|
||||
|
||||
dnl CURRENT, REVISION, AGE
|
||||
dnl - library source changed -> increment REVISION
|
||||
dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
|
||||
|
@ -50,16 +52,6 @@ dnl - interfaces removed -> AGE = 0
|
|||
dnl sets GST_LT_LDFLAGS
|
||||
AS_LIBTOOL(GST, 0, 0, 0)
|
||||
|
||||
AG_GST_LIBTOOL_PREPARE
|
||||
|
||||
dnl FIXME: this macro doesn't actually work;
|
||||
dnl the generated libtool script has no support for the listed tags.
|
||||
dnl So this needs to be fixed first if we want to use this
|
||||
dnl AS_LIBTOOL_TAGS([CXX])
|
||||
|
||||
AC_LIBTOOL_WIN32_DLL
|
||||
AM_PROG_LIBTOOL
|
||||
|
||||
dnl *** required versions of GStreamer stuff ***
|
||||
GST_REQ=0.11.90
|
||||
GSTPB_REQ=0.11.90
|
||||
|
@ -141,7 +133,7 @@ AG_GST_PLUGIN_DOCS([1.3],[2.1])
|
|||
dnl *** checks for libraries ***
|
||||
|
||||
dnl check for libm, for sin() etc.
|
||||
AC_CHECK_LIBM
|
||||
LT_LIB_M
|
||||
AC_SUBST(LIBM)
|
||||
|
||||
AC_FUNC_MMAP
|
||||
|
|
Loading…
Reference in a new issue