commit: 509275acfc734c578754f3f57f0c710e9b98329c Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> AuthorDate: Thu Dec 3 00:00:00 2020 +0000 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> CommitDate: Wed Dec 9 14:17:56 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=509275ac
autotools.eclass: eautoconf(): Install config.guess and config.sub. Bug: https://bugs.gentoo.org/757996 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org> Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> eclass/autotools.eclass | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass index 625abd0e9d1..adeef7b17be 100644 --- a/eclass/autotools.eclass +++ b/eclass/autotools.eclass @@ -357,6 +357,18 @@ eautoconf() { eqawarn "when it finds this file. See https://bugs.gentoo.org/426262 for details." fi + # Install config.guess and config.sub which are required by many macros in Autoconf >=2.70. + case ${EAPI:-0} in + 0|1|2|3|4|5|6) + cp "${EPREFIX}/usr/share/gnuconfig/config.guess" . || die + cp "${EPREFIX}/usr/share/gnuconfig/config.sub" . || die + ;; + *) + cp "${BROOT}/usr/share/gnuconfig/config.guess" . || die + cp "${BROOT}/usr/share/gnuconfig/config.sub" . || die + ;; + esac + autotools_run_tool --at-m4flags autoconf "$@" }