diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-10-25 18:30:01 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-10-25 18:30:01 +0000 |
commit | ba091d4cd3859831fe8bac4470bc8768414ff07d (patch) | |
tree | bc6120b669d4f2940ac8544d37dd8691fd309698 /eclass/autotools.eclass | |
parent | Unbreaking kdrive, part 3: Build fbdev and vesa for all cases in which other ... (diff) | |
download | gentoo-2-ba091d4cd3859831fe8bac4470bc8768414ff07d.tar.gz gentoo-2-ba091d4cd3859831fe8bac4470bc8768414ff07d.tar.bz2 gentoo-2-ba091d4cd3859831fe8bac4470bc8768414ff07d.zip |
Implement a better way to find the latest autotools to use.
Diffstat (limited to 'eclass/autotools.eclass')
-rw-r--r-- | eclass/autotools.eclass | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass index 70746482adc8..552ccee90b7a 100644 --- a/eclass/autotools.eclass +++ b/eclass/autotools.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.51 2006/10/17 19:17:31 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.52 2006/10/25 18:30:01 flameeyes Exp $ # # Author: Diego Pettenò <flameeyes@gentoo.org> # Enhancements: Martin Schlemmer <azarah@gentoo.org> @@ -201,9 +201,12 @@ autotools_set_versions() { if [[ -n ${WANT_AUTOMAKE} ]]; then if [[ ${WANT_AUTOMAKE} == "latest" ]]; then - # Consider starting from 1.9, as that is stable everywhere. - has_version '=sys-devel/automake-1.9*' && WANT_AUTOMAKE="1.9" - has_version '=sys-devel/automake-1.10*' && WANT_AUTOMAKE="1.10" + for amver in 1.10 1.9 1.8 1.7 1.6; do + WANT_AUTOMAKE="${amver}" + if WANT_AUTOMAKE="${amver}" automake --version &> /dev/null; then + break + fi + done fi export WANT_AUTOMAKE einfo "Requested automake ${WANT_AUTOMAKE}" |