diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-01-28 04:13:00 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-01-28 04:13:00 +0000 |
commit | 14bee5ef21b2840036aec267465b2adfb4afa3ef (patch) | |
tree | 1258251f93a2192b893052964ea35fbcf6ab1fdd /eclass/autotools.eclass | |
parent | Marked ~hppa (bug #454264). (diff) | |
download | historical-14bee5ef21b2840036aec267465b2adfb4afa3ef.tar.gz historical-14bee5ef21b2840036aec267465b2adfb4afa3ef.tar.bz2 historical-14bee5ef21b2840036aec267465b2adfb4afa3ef.zip |
use -l to set the macro dir when using autoconf-2.13 #448986 by Ryan Sleevi
Diffstat (limited to 'eclass/autotools.eclass')
-rw-r--r-- | eclass/autotools.eclass | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass index 2b92cfb2b2cd..9ec87d006531 100644 --- a/eclass/autotools.eclass +++ b/eclass/autotools.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.150 2013/01/05 02:27:16 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.151 2013/01/28 04:13:00 vapier Exp $ # @ECLASS: autotools.eclass # @MAINTAINER: @@ -537,15 +537,20 @@ autotools_check_macro_val() { } _autotools_m4dir_include() { - local x include_opts + local x include_opts flag + + # Use the right flag to autoconf based on the version #448986 + [[ ${WANT_AUTOCONF} == "2.1" ]] \ + && flag="l" \ + || flag="I" for x in "$@" ; do case ${x} in # We handle it below - -I) ;; + -${flag}) ;; *) [[ ! -d ${x} ]] && ewarn "autotools.eclass: '${x}' does not exist" - include_opts+=" -I ${x}" + include_opts+=" -${flag} ${x}" ;; esac done |