build: Make autoreconf honour ACLOCAL_FLAGS
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 25 Oct 2012 23:51:46 +0000 (00:51 +0100)
committerRan Benita <ran234@gmail.com>
Tue, 30 Oct 2012 13:08:14 +0000 (15:08 +0200)
When running autoreconf, it's possible to give flags to the underlying
aclocal by declaring a ACLOCAL_AMFLAGS variable in the top level
Makefile.am.

Putting ${ACLOCAL_FLAGS} there allows the user to set an environment
variable up before running autogen.sh and pull in the right directories
to look for m4 macros, say an up-to-date version of the xorg-util macros.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Cc: Daniel Stone <daniel@fooishbar.org>
Makefile.am

index 46f7a5f..6ecb8f5 100644 (file)
@@ -1,4 +1,4 @@
-ACLOCAL_AMFLAGS = -I m4
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = xkbcommon.pc