autotools: Silence warnings from autoreconf
Previously invoking ./bootstrap.sh would output:
$ ./bootstrap.sh
+ AUTOCONF_FILES=Makefile.in aclocal.m4 ar-lib autom4te.cache compile
config.guess config.h.in config.sub configure depcomp install-sh
ltmain.sh missing *libtoo
l test-driver
+ autoreconf -i
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:22: installing './compile'
configure.ac:22: installing './config.guess'
configure.ac:22: installing './config.sub'
configure.ac:5: installing './install-sh'
configure.ac:5: installing './missing'
Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
+ echo Run "./configure ${CONFIGURE_FLAGS} && make"
Run "./configure ${CONFIGURE_FLAGS} && make"
Address the three lines:
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
Change-Id: I0e4b4318ff5cd3775455e7c7514609060375f24d
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/Makefile.am b/Makefile.am
index 38ef2ad..4ea52cb 100755
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,7 @@
AM_DEFAULT_SOURCE_EXT = .cpp
+ACLOCAL_AMFLAGS = -Im4
+
sbin_PROGRAMS = \
openpower-version-host-software-manager \
openpower-update-manager
diff --git a/configure.ac b/configure.ac
index 9c0b406..c8c90a7 100755
--- a/configure.ac
+++ b/configure.ac
@@ -5,6 +5,8 @@
AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
AM_SILENT_RULES([yes])
+AC_CONFIG_MACRO_DIRS([m4])
+
# Checks for programs
AC_PROG_CXX
AC_PROG_INSTALL #Checks/sets the install variable to be used
diff --git a/m4/.gitkeep b/m4/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/m4/.gitkeep