mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-29 23:32:33 +00:00
new autogen
Original commit message from CVS: new autogen
This commit is contained in:
parent
fd3e3a16d2
commit
1ab92b50b1
1 changed files with 17 additions and 12 deletions
25
autogen.sh
25
autogen.sh
|
@ -28,6 +28,7 @@ version_check ()
|
||||||
MINOR=$4
|
MINOR=$4
|
||||||
MICRO=$5
|
MICRO=$5
|
||||||
|
|
||||||
|
WRONG=
|
||||||
|
|
||||||
debug "major $MAJOR minor $MINOR micro $MICRO"
|
debug "major $MAJOR minor $MINOR micro $MICRO"
|
||||||
VERSION=$MAJOR
|
VERSION=$MAJOR
|
||||||
|
@ -35,7 +36,7 @@ version_check ()
|
||||||
if test ! -z "$MICRO"; then VERSION=$VERSION.$MICRO; else MICRO=0; fi
|
if test ! -z "$MICRO"; then VERSION=$VERSION.$MICRO; else MICRO=0; fi
|
||||||
|
|
||||||
debug "major $MAJOR minor $MINOR micro $MICRO"
|
debug "major $MAJOR minor $MINOR micro $MICRO"
|
||||||
echo -n "+ checking for $1 > $VERSION ... "
|
echo -n "+ checking for $1 >= $VERSION ... "
|
||||||
($PACKAGE --version) < /dev/null > /dev/null 2>&1 ||
|
($PACKAGE --version) < /dev/null > /dev/null 2>&1 ||
|
||||||
{
|
{
|
||||||
echo
|
echo
|
||||||
|
@ -96,7 +97,7 @@ fi
|
||||||
version_check "autoconf" "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 52 || DIE=1
|
version_check "autoconf" "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 52 || DIE=1
|
||||||
version_check "automake" "ftp://ftp.gnu.org/pub/gnu/automake/" 1 5 || DIE=1
|
version_check "automake" "ftp://ftp.gnu.org/pub/gnu/automake/" 1 5 || DIE=1
|
||||||
version_check "libtool" "ftp://ftp.gnu.org/pub/gnu/libtool/" 1 4 0 || DIE=1
|
version_check "libtool" "ftp://ftp.gnu.org/pub/gnu/libtool/" 1 4 0 || DIE=1
|
||||||
version_check "pkg-config" "http://www.freedesktop.org/software/pkgconfig" 0 7 0 || DIE=1
|
version_check "pkg-config" "http://www.freedesktop.org/software/pkgconfig" 0 8 0 || DIE=1
|
||||||
|
|
||||||
if test "$DIE" -eq 1; then
|
if test "$DIE" -eq 1; then
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -112,9 +113,8 @@ if test -z "$*"; then
|
||||||
echo "to pass any to it, please specify them on the $0 command line."
|
echo "to pass any to it, please specify them on the $0 command line."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# FIXME : why does libtoolize keep complaining about aclocal ?
|
echo "+ creating acinclude.m4"
|
||||||
echo "+ running libtoolize ..."
|
cat m4/*.m4 > acinclude.m4
|
||||||
libtoolize --copy --force
|
|
||||||
|
|
||||||
echo "+ running aclocal ..."
|
echo "+ running aclocal ..."
|
||||||
aclocal $ACLOCAL_FLAGS || {
|
aclocal $ACLOCAL_FLAGS || {
|
||||||
|
@ -122,6 +122,11 @@ aclocal $ACLOCAL_FLAGS || {
|
||||||
echo "aclocal failed - check that all needed development files are present on system"
|
echo "aclocal failed - check that all needed development files are present on system"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# FIXME : why does libtoolize keep complaining about aclocal ?
|
||||||
|
echo "+ running libtoolize ..."
|
||||||
|
libtoolize --copy --force
|
||||||
|
|
||||||
echo "+ running autoheader ... "
|
echo "+ running autoheader ... "
|
||||||
autoheader || {
|
autoheader || {
|
||||||
echo
|
echo
|
||||||
|
@ -132,18 +137,18 @@ echo "+ running autoconf ... "
|
||||||
autoconf || {
|
autoconf || {
|
||||||
echo
|
echo
|
||||||
echo "autoconf failed"
|
echo "autoconf failed"
|
||||||
#exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
echo "+ running automake ... "
|
echo "+ running automake ... "
|
||||||
automake --add-missing || {
|
automake -a -c || {
|
||||||
echo
|
echo
|
||||||
echo "automake failed"
|
echo "automake failed"
|
||||||
#exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# now remove the cache, because it can be considered dangerous in this case
|
# now remove the cache, because it can be considered dangerous in this case
|
||||||
echo "+ removing config.cache ... "
|
#echo "+ removing config.cache ... "
|
||||||
rm -f config.cache
|
#rm -f config.cache
|
||||||
|
|
||||||
CONFIGURE_OPT='--enable-maintainer-mode --enable-plugin-builddir --enable-debug --enable-DEBUG'
|
CONFIGURE_OPT='--enable-maintainer-mode --enable-plugin-builddir --enable-debug --enable-DEBUG'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue