[oe] [PATCH 2/3] autotools.bblass: mkdir also AC_CONFIG_MACRO_DIR

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Jan 12 20:15:51 UTC 2011


Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 classes/autotools.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass
index 77bd37d..45b75df 100644
--- a/classes/autotools.bbclass
+++ b/classes/autotools.bbclass
@@ -176,7 +176,9 @@ autotools_do_configure() {
 			fi
 
 			fi
-			mkdir -p m4
+			for aux in m4 `sed -n -e '/^[[:space:]]*AC_CONFIG_MACRO_DIR/s|[^(]*([[]*\([^])]*\)[]]*)|\1|p' $CONFIGURE_AC`; do
+				mkdir -p ${aux}
+			done
 			oenote Executing autoreconf --verbose --install --force ${EXTRA_AUTORECONF} $acpaths
 			autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || oefatal "autoreconf execution failed."
 			if grep "^[[:space:]]*[AI][CT]_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then
-- 
1.7.2.3





More information about the Openembedded-devel mailing list