[gmime] autogen: accept automake through 1.13
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] autogen: accept automake through 1.13
- Date: Sat, 29 Jun 2013 17:45:52 +0000 (UTC)
commit 16b8558bb64226778b9453440f4d5df1d3cb60dd
Author: Evan Nemerson <evan coeus-group com>
Date: Wed Jun 26 14:43:39 2013 -0700
autogen: accept automake through 1.13
autogen.sh | 24 ++++++++++--------------
1 files changed, 10 insertions(+), 14 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 7e37eea..7bfe6bf 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -45,21 +45,17 @@ fi
DIE=1
}
-if automake-1.8 --version < /dev/null > /dev/null 2>&1 ; then
- AUTOMAKE=automake-1.8
- ACLOCAL=aclocal-1.8
-elif automake-1.9 --version < /dev/null > /dev/null 2>&1 ; then
- AUTOMAKE=automake-1.9
- ACLOCAL=aclocal-1.9
-elif automake-1.10 --version < /dev/null > /dev/null 2>&1 ; then
- AUTOMAKE=automake-1.10
- ACLOCAL=aclocal-1.10
-elif automake-1.11 --version < /dev/null > /dev/null 2>&1 ; then
- AUTOMAKE=automake-1.11
- ACLOCAL=aclocal-1.11
-else
+for automake_version in 1.8 1.9 1.10 1.11 1.12 1.13; do
+ if automake-${automake_version} --version < /dev/null > /dev/null 2>&1 ; then
+ AUTOMAKE=automake-${automake_version}
+ ACLOCAL=aclocal-${automake_version}
+ break
+ fi
+done
+
+if test -z "${AUTOMAKE}"; then
echo
- echo "You must have automake 1.8.x installed to compile $PROJECT."
+ echo "You must have automake >= 1.8.x installed to compile $PROJECT."
echo "Install the appropriate package for your distribution,"
echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/";
DIE=1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]