# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.126 2004/12/08 01:31:38 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.127 2004/12/11 21:09:23 vapier Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
# Many configure scripts wrongly bail when a C++ compiler
# could not be detected. #73450
epunt_cxx() {
- EPATCH_SINGLE_MSG="Removing useless C++ checks ..." \
- epatch "${PORTDIR}/eclass/ELT-patches/nocxx/nocxx.patch"
+ local dir=$1
+ [[ -z ${dir} ]] && dir=${S}
+ ebegin "Removing useless C++ checks"
+ local f
+ for f in $(find ${dir} -name configure) ; do
+ patch -p0 "${f}" "${PORTDIR}/eclass/ELT-patches/nocxx/nocxx.patch" > /dev/null
+ done
+ eend 0
}