mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
autotools.bbclass: Only include aclocal directories if the exist, no point in creating them
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -109,9 +109,12 @@ autotools_do_configure() {
|
|||||||
AUTOV=`automake --version |head -n 1 |sed "s/.* //;s/\.[0-9]\+$//"`
|
AUTOV=`automake --version |head -n 1 |sed "s/.* //;s/\.[0-9]\+$//"`
|
||||||
automake --version
|
automake --version
|
||||||
echo "AUTOV is $AUTOV"
|
echo "AUTOV is $AUTOV"
|
||||||
install -d ${STAGING_DATADIR}/aclocal
|
if [ -d ${STAGING_DATADIR}/aclocal-$AUTOV ]; then
|
||||||
install -d ${STAGING_DATADIR}/aclocal-$AUTOV
|
acpaths="$acpaths -I${STAGING_DATADIR}/aclocal-$AUTOV"
|
||||||
acpaths="$acpaths -I${STAGING_DATADIR}/aclocal-$AUTOV -I ${STAGING_DATADIR}/aclocal"
|
fi
|
||||||
|
if [ -d ${STAGING_DATADIR}/aclocal ]; then
|
||||||
|
acpaths="$acpaths -I ${STAGING_DATADIR}/aclocal"
|
||||||
|
fi
|
||||||
# autoreconf is too shy to overwrite aclocal.m4 if it doesn't look
|
# 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
|
# like it was auto-generated. Work around this by blowing it away
|
||||||
# by hand, unless the package specifically asked not to run aclocal.
|
# by hand, unless the package specifically asked not to run aclocal.
|
||||||
|
|||||||
Reference in New Issue
Block a user