summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-01-28 04:13:00 +0000
committerMike Frysinger <vapier@gentoo.org>2013-01-28 04:13:00 +0000
commitfc45419d5de4cef6c98a59afff0f43d7383eb7e4 (patch)
tree3f80289bb8d6ce5a2264e45b657f9ca16c0e4636 /eclass
parentMarked ~hppa (bug #454264). (diff)
downloadgentoo-2-fc45419d5de4cef6c98a59afff0f43d7383eb7e4.tar.gz
gentoo-2-fc45419d5de4cef6c98a59afff0f43d7383eb7e4.tar.bz2
gentoo-2-fc45419d5de4cef6c98a59afff0f43d7383eb7e4.zip
use -l to set the macro dir when using autoconf-2.13 #448986 by Ryan Sleevi
Diffstat (limited to 'eclass')
-rw-r--r--eclass/autotools.eclass13
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