summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2020-03-10 16:00:32 +0000
committerEmmanuele Bassi <ebassi@gmail.com>2020-03-10 16:00:32 +0000
commite7df2e365fa8d1f96fc4252fb342ab0e5de0dbb9 (patch)
tree265befe655da47a788ffa617f6d9be1122ee5e92
parentc6d0544568107b3f867311532d10bf9210cec43c (diff)
parent49ef0aaac52f6adb51a72a2ae4d6148b26e37ccf (diff)
downloadcogl-e7df2e365fa8d1f96fc4252fb342ab0e5de0dbb9.tar.gz
Merge branch 'wip/smcv/automake' into 'cogl-1.22'
autogen.sh: Stop checking for specific versions of Automake See merge request GNOME/cogl!20
-rwxr-xr-xautogen.sh18
1 files changed, 5 insertions, 13 deletions
diff --git a/autogen.sh b/autogen.sh
index d972a24a..e15f49d6 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -16,21 +16,13 @@ test $TEST_TYPE $FILE || {
exit 1
}
-AUTOMAKE_VERSIONS="1.16 1.15 1.14 1.13 1.12 1.11"
-for version in $AUTOMAKE_VERSIONS; do
- if automake-$version --version < /dev/null > /dev/null 2>&1 ; then
- AUTOMAKE=automake-$version
- ACLOCAL=aclocal-$version
- export AUTOMAKE ACLOCAL
- break
- fi
-done
-
-if test -z "$AUTOMAKE"; then
+if ! command -v "${AUTOMAKE-automake}" >/dev/null; then
echo
- echo "You must have one of automake $AUTOMAKE_VERSIONS to compile $PROJECT."
+ echo "You must have automake >= 1.11 to compile $PROJECT."
echo "Install the appropriate package for your distribution,"
echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
+ echo "To use a non-default version, set the AUTOMAKE and ACLOCAL"
+ echo "environment variables."
exit 1
fi
@@ -49,7 +41,7 @@ if test -z "$NOCONFIGURE"; then
fi
if test -z "$ACLOCAL_FLAGS"; then
- acdir=`$ACLOCAL --print-ac-dir`
+ acdir=`${ACLOCAL-aclocal} --print-ac-dir`
m4list="glib-2.0.m4"
for file in $m4list; do
if [ ! -f "$acdir/$file" ]; then