]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools.bbclass: Introduce CACHED_CONFIGUREVARS
authorKhem Raj <raj.khem@gmail.com>
Mon, 9 Jan 2012 19:39:48 +0000 (11:39 -0800)
committerSaul Wold <sgw@linux.intel.com>
Tue, 10 Jan 2012 05:51:50 +0000 (21:51 -0800)
This variable is for holding the cached configure variables
to be specified in recipes. e.g.

CACHED_CONFIGUREVARS += "ac_cv_foo=yes ac_cv_bar=no"

This will make sure that the variables are not detected
by configure. This is useful in cross builds where
some features can not be detected correctly by configure
and having it as a variables gives us capability to
override it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/classes/autotools.bbclass

index 2f462ff93b5c49b1067a9d5416b7b6fbd6661660..5d743338fca1d59d3c9284a4a8bf2f8504934d8c 100644 (file)
@@ -73,7 +73,7 @@ oe_runconf () {
        cfgscript="${S}/configure"
        if [ -x "$cfgscript" ] ; then
                bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
-               $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed"
+               ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed"
        else
                bbfatal "no configure script found at $cfgscript"
        fi