summaryrefslogtreecommitdiff
path: root/classes/autotools.bbclass
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2005-04-16 07:14:45 +0000
committerPhil Blundell <philb@gnu.org>2005-04-16 07:14:45 +0000
commit111379fb08ecbacc5120720652b3ce6ecbb528df (patch)
treec47e66c984c3c068fa4463d565231f9a39001440 /classes/autotools.bbclass
parent05d52e72ab8a7368bc7b637086f4098f14c7a5a3 (diff)
add versioned aclocal directory to acpaths for autoreconf
BKrev: 4260bb65qQlKjLMowOfitF_BjV8z_w
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.