From b8d1b5effcc7eac360a1748c27a860ccc39a4aa2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 26 Apr 2005 01:19:16 +0000 Subject: make config.{sub,guess} (FEATURES=autoconfig) always be replaced #81822 --- bin/ebuild-functions.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'bin') diff --git a/bin/ebuild-functions.sh b/bin/ebuild-functions.sh index f879ade..1cd1e61 100755 --- a/bin/ebuild-functions.sh +++ b/bin/ebuild-functions.sh @@ -2,7 +2,7 @@ # ebuild-functions.sh; ebuild env functions, saved with the ebuild (not specific to the portage version). # Copyright 2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -$Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/ebuild-functions.sh,v 1.8 2005/03/29 00:22:28 ferringb Exp $ +$Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/ebuild-functions.sh,v 1.9 2005/04/26 01:19:16 vapier Exp $ use() { if useq ${1}; then @@ -73,15 +73,14 @@ econf() { local ret ECONF_SOURCE="${ECONF_SOURCE:-.}" if [ -x "${ECONF_SOURCE}/configure" ]; then - if hasq autoconfig $FEATURES && ! hasq autoconfig $RESTRICT; then - if [ -e /usr/share/gnuconfig/ ]; then - local x - for x in $(find ${WORKDIR} -type f -name config.guess -o -name config.sub); do - echo " * econf: updating ${x/${WORKDIR}\/} with /usr/share/gnuconfig/${x##*/}" - cp -f "/usr/share/gnuconfig/${x##*/}" "${x}" - done - fi + if [ -e /usr/share/gnuconfig/ ]; then + local x + for x in $(find "${WORKDIR}" -type f -name config.guess -o -name config.sub) ; do + echo " * econf: updating ${x/${WORKDIR}\/} with /usr/share/gnuconfig/${x##*/}" + cp -f "/usr/share/gnuconfig/${x##*/}" "${x}" + done fi + if [ ! -z "${CBUILD}" ]; then EXTRA_ECONF="--build=${CBUILD} ${EXTRA_ECONF}" fi -- cgit v1.2.3-65-gdbad