autotools: use oe_runconf from newer OE
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 19 Oct 2014 20:37:59 +0000 (23:37 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 19 Oct 2014 20:37:59 +0000 (23:37 +0300)
classes/autotools.bbclass

index 31d3578..4a4cc18 100644 (file)
@@ -44,30 +44,27 @@ def autotools_set_crosscompiling(d):
 
 # EXTRA_OECONF_append = "${@autotools_set_crosscompiling(d)}"
 
+CONFIGUREOPTS = " --build=${BUILD_SYS} \
+                 --host=${HOST_SYS} \
+                 --target=${TARGET_SYS} \
+                 --prefix=${prefix} \
+                 --exec_prefix=${exec_prefix} \
+                 --bindir=${bindir} \
+                 --sbindir=${sbindir} \
+                 --libexecdir=${libexecdir} \
+                 --datadir=${datadir} \
+                 --sysconfdir=${sysconfdir} \
+                 --sharedstatedir=${sharedstatedir} \
+                 --localstatedir=${localstatedir} \
+                 --libdir=${libdir} \
+                 --includedir=${includedir} \
+                 --oldincludedir=${oldincludedir} \
+                 --infodir=${infodir} \
+                 --mandir=${mandir}"
+
 oe_runconf () {
        if [ -x ${S}/configure ] ; then
-               cfgcmd="${S}/configure \
-                   --build=${BUILD_SYS} \
-                   --host=${HOST_SYS} \
-                   --target=${TARGET_SYS} \
-                   --prefix=${prefix} \
-                   --exec_prefix=${exec_prefix} \
-                   --bindir=${bindir} \
-                   --sbindir=${sbindir} \
-                   --libexecdir=${libexecdir} \
-                   --datadir=${datadir} \
-                   --sysconfdir=${sysconfdir} \
-                   --sharedstatedir=${sharedstatedir} \
-                   --localstatedir=${localstatedir} \
-                   --libdir=${libdir} \
-                   --includedir=${includedir} \
-                   --oldincludedir=${oldincludedir} \
-                   --infodir=${infodir} \
-                   --mandir=${mandir} \
-                       ${EXTRA_OECONF} \
-                   $@"
-               oenote "Running $cfgcmd..."
-               $cfgcmd || oefatal "oe_runconf failed" 
+               ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@"
        else
                oefatal "no configure script found"
        fi