diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-05-24 01:13:32 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-05-24 01:13:32 +0000 |
commit | 65b5b184956ea1622f357e115c1c12e23c53379c (patch) | |
tree | d7230c612ba596046799d71c55448d341f9a2376 /eclass | |
parent | Version bump with ~ppc/~ppc64 keywording. Require at least Python 2.6 and res... (diff) | |
download | gentoo-2-65b5b184956ea1622f357e115c1c12e23c53379c.tar.gz gentoo-2-65b5b184956ea1622f357e115c1c12e23c53379c.tar.bz2 gentoo-2-65b5b184956ea1622f357e115c1c12e23c53379c.zip |
do not require aclocal.m4 to trace macros as simpler packages might not end up generating one, yet will expand autoconf macros all the time that might be the ones we are looking for #417275 by Rick Farina
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/autotools.eclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass index da4b6135bc55..2d165e0def5a 100644 --- a/eclass/autotools.eclass +++ b/eclass/autotools.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.141 2012/05/21 18:13:10 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.142 2012/05/24 01:13:32 vapier Exp $ # @ECLASS: autotools.eclass # @MAINTAINER: @@ -210,11 +210,11 @@ eautoreconf() { # @INTERNAL # See if the specified macros are enabled. _at_uses_pkg() { - if [[ -e aclocal.m4 ]] ; then - # If aclocal.m4 exists, trust the trace data. - [[ -n $(autotools_check_macro "${@}") ]] + if [[ -n $(autotools_check_macro "$@") ]] ; then + return 0 else - # If aclocal.m4 hasn't been generated yet, cheat, but be conservative. + # If the trace didn't find it (perhaps because aclocal.m4 hasn't + # been generated yet), cheat, but be conservative. local macro args=() for macro ; do args+=( -e "^[[:space:]]*${macro}\>" ) |