For bug #179380, make support for ECONF_SOURCE in the default src_compile() condition...
authorZac Medico <zmedico@gentoo.org>
Tue, 22 May 2007 05:15:39 +0000 (05:15 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 22 May 2007 05:15:39 +0000 (05:15 -0000)
svn path=/main/trunk/; revision=6565

bin/ebuild.sh

index 8e88756fcc7a8c9532148ee58a7ad050a36e7495..27dce2e28045a28aaa938be6bc0bc229b2d16a8f 100755 (executable)
@@ -565,7 +565,9 @@ src_unpack() {
 }
 
 src_compile() {
-       if [ -x "${ECONF_SOURCE:-.}/configure" ] ; then
+       if [ -x ./configure ] ; then
+               econf
+       elif [ "${EAPI:-0}" != 0 ] && [ -x "${ECONF_SOURCE:-.}/configure" ] ; then
                econf
        fi
        if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then