[PATCH libxkbcommon 1/2] build: Make autoreconf honour ACLOCAL_FLAGS

Damien Lespiau damien.lespiau at gmail.com
Thu Oct 25 16:51:46 PDT 2012


From: Damien Lespiau <damien.lespiau at intel.com>

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 at intel.com>
Cc: Daniel Stone <daniel at fooishbar.org>
---
 Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index c08bca1..8f10bbb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-ACLOCAL_AMFLAGS = -I m4
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = xkbcommon.pc
-- 
1.7.7.5



More information about the xorg-devel mailing list