On 12/02/2012 05:39 PM, Tomáš Chvátal wrote: > There are better ways to do this. > > For example you can just grep through the configure file, not having > to invoke it, see the xorg-2.elass >
--- games.eclass +++ games.eclass @@ -39,12 +39,21 @@ } egamesconf() { + # handle verbose build log pre-EAPI5 + local _gamesconf="" + if has "${EAPI:-0}" 0 1 2 3 4 ; then + if grep -q -s "disable-silent-rules" "${ECONF_SOURCE:-.}/configure"; then + _gamesconf="--disable-silent-rules" + fi + fi + econf \ --prefix="${GAMES_PREFIX}" \ --libdir="$(games_get_libdir)" \ --datadir="${GAMES_DATADIR}" \ --sysconfdir="${GAMES_SYSCONFDIR}" \ --localstatedir="${GAMES_STATEDIR}" \ + ${_gamesconf} \ "$@" }