--- ebuild.sh.orig 2008-08-22 00:52:24.000000000 +0200 +++ ebuild.sh 2008-08-22 01:24:18.000000000 +0200 @@ -411,6 +411,16 @@ if [ -z "${ECONF_SOURCE}" ]; then ECONF_SOURCE="." fi + + if [ -f "${ECONF_SOURCE}/configure" ]; then + if [ ! -e "${ECONF_SOURCE}/configure" ]; then + vecho " * econf: configure is not executable: fixing it..." + chmod +x "${ECONF_SOURCE:-.}/configure" + fi + else + vecho " * econf: no configure script found: skipping configure stage" && return 0 + fi + if [ -x "${ECONF_SOURCE}/configure" ]; then if [ -e /usr/share/gnuconfig/ ]; then find "${WORKDIR}" -type f '(' \ @@ -512,10 +522,6 @@ fi die "econf failed" fi - elif [ -f "${ECONF_SOURCE:-.}/configure" ]; then - die "configure is not executable" - else - die "no configure script found" fi }