summaryrefslogtreecommitdiff
path: root/classes/autotools.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/autotools.bbclass')
-rw-r--r--classes/autotools.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass
index 85d96e0028..7e81a68a9d 100644
--- a/classes/autotools.bbclass
+++ b/classes/autotools.bbclass
@@ -90,8 +90,11 @@ autotools_do_configure() {
else
acpaths="${acpaths}"
fi
+ AUTOV=`automake --version |head -n 1 |sed "s/.* //;s/\.[0-9]\+$//"`
+ automake --version
+ echo "AUTOV is $AUTOV"
install -d ${STAGING_DIR}/${HOST_SYS}/share/aclocal
- acpaths="$acpaths -I ${STAGING_DIR}/${HOST_SYS}/share/aclocal"
+ acpaths="$acpaths -I ${STAGING_DIR}/${HOST_SYS}/share/aclocal-$AUTOV -I ${STAGING_DIR}/${HOST_SYS}/share/aclocal"
# autoreconf is too shy to overwrite aclocal.m4 if it doesn't look
# like it was auto-generated. Work around this by blowing it away
# by hand, unless the package specifically asked not to run aclocal.