Honor ACLOCAL_FLAGS in autogen.sh
authorOwen W. Taylor <otaylor@fishsoup.net>
Fri, 13 Feb 2009 19:14:43 +0000 (14:14 -0500)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Sat, 14 Feb 2009 12:52:13 +0000 (12:52 +0000)
autoreconf doesn't pay attention to the ACLOCAL_FLAGS variable that
jhbuild (for example) sets. Pass those flags into autoreconf by
setting ACLOCAL appropriately.

autogen.sh

index 4787182..a6ab478 100755 (executable)
@@ -33,7 +33,7 @@ if test -z $AUTORECONF; then
         echo "*** No autoreconf found ***"
         exit 1
 else
-        autoreconf -v --install || exit $?
+        ACLOCAL="${ACLOCAL-aclocal} $ACLOCAL_FLAGS" autoreconf -v --install || exit $?
 fi
 
 ./configure "$@" && echo "Now type 'make' to compile $PROJECT."