]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools: fix multi-word arguments for EXTRA_OECONF
authorChristopher Larson <kergoth@gmail.com>
Mon, 10 Oct 2011 21:13:05 +0000 (14:13 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Oct 2011 11:53:21 +0000 (12:53 +0100)
This is needed to better support things like the following (with a
multi-word BUILD_CC):

    EXTRA_OECONF += '"ac_cv_prog_CC_FOR_BUILD=${BUILD_CC}"'

Signed-off-by: Christopher Larson <kergoth@gmail.com>
meta/classes/autotools.bbclass

index 041332208e4299fc3e8d3be30c4b0c46ccca4c52..451c7fcc1ed26e56830a5974b869af1d610c5706 100644 (file)
@@ -71,10 +71,8 @@ CONFIGUREOPT_DEPTRACK = "--disable-dependency-tracking"
 
 oe_runconf () {
        if [ -x ${S}/configure ] ; then
-               cfgcmd="${S}/configure \
-               ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
-               bbnote "Running $cfgcmd..."
-               $cfgcmd || bbfatal "oe_runconf failed" 
+               bbnote "Running ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
+               ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed"
        else
                bbfatal "no configure script found"
        fi