[PATCH 1/5] build: use AC_CONFIG_MACRO_DIR as per libtoolize warning

Jan Engelhardt jengelh at medozas.de
Sun Nov 28 06:46:59 PST 2010


libtoolize: Consider adding "AC_CONFIG_MACRO_DIR([m4])" to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding "-I m4" to ACLOCAL_AMFLAGS in Makefile.am.

Signed-off-by: Jan Engelhardt <jengelh at medozas.de>
---
 Makefile.am   |    2 ++
 configure.ac  |    1 +
 m4/.gitignore |    2 ++
 3 files changed, 5 insertions(+), 0 deletions(-)
 create mode 100644 m4/.gitignore

diff --git a/Makefile.am b/Makefile.am
index 6c97739..80a4553 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
+ACLOCAL_AMFLAGS = -I m4
+
 SUBDIRS = include src test
 
 pkgconfigdir = $(libdir)/pkgconfig
diff --git a/configure.ac b/configure.ac
index 670700f..7669027 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,7 @@ AC_INIT([libxkbcommon], [0.1.0],
 AM_INIT_AUTOMAKE([dist-bzip2 foreign])
 AM_SILENT_RULES([yes])
 AC_CONFIG_HEADERS([src/config.h])
+AC_CONFIG_MACRO_DIR([m4])
 
 AC_PROG_LIBTOOL
 AC_PROG_CC
diff --git a/m4/.gitignore b/m4/.gitignore
new file mode 100644
index 0000000..8d0c756
--- /dev/null
+++ b/m4/.gitignore
@@ -0,0 +1,2 @@
+/lt*.m4
+/libtool.m4
-- 
1.7.1




More information about the xorg mailing list