add versioned aclocal directory to acpaths for autoreconf
authorPhil Blundell <philb@gnu.org>
Sat, 16 Apr 2005 07:14:45 +0000 (07:14 +0000)
committerPhil Blundell <philb@gnu.org>
Sat, 16 Apr 2005 07:14:45 +0000 (07:14 +0000)
BKrev: 4260bb65qQlKjLMowOfitF_BjV8z_w

classes/autotools.bbclass

index 85d96e0..7e81a68 100644 (file)
@@ -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.