diff options
author | Darren Hart <dvhart@linux.intel.com> | 2011-11-30 13:49:44 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-30 22:20:49 +0000 |
commit | 8cdee4c9b8ffcba69134258eff72eede61acd12f (patch) | |
tree | 6d9017ee680fcb35cc7969dbf654c73408d8d48b /meta | |
parent | 278febfc6d8f35f00f770db519e5a5d4040ae39c (diff) | |
download | openembedded-core-8cdee4c9b8ffcba69134258eff72eede61acd12f.tar.gz openembedded-core-8cdee4c9b8ffcba69134258eff72eede61acd12f.tar.bz2 openembedded-core-8cdee4c9b8ffcba69134258eff72eede61acd12f.zip |
autotools.bbclass: Report the missing configure path
If the configure script isn't found, report the explicit path tried.
This can help debug subtle errors where the ${S} sourcedir may not
be exactly what is expected.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/autotools.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 37e7d4b482..7536bac396 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass @@ -70,11 +70,12 @@ CONFIGUREOPT_DEPTRACK = "--disable-dependency-tracking" oe_runconf () { - if [ -x ${S}/configure ] ; then - bbnote "Running ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" - ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed" + cfgscript="${S}/configure" + if [ -x "$cfgscript" ] ; then + bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" + $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed" else - bbfatal "no configure script found" + bbfatal "no configure script found at $cfgscript" fi } |