Hi,
When running autogen.sh with a recent version of autoconf installed the
following warnings are given:
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.
configure.ac:8: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms
are deprecated. For more info, see:
configure.ac:8:
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
The followig patch fixes these warnings:
---
Makefile.am | 2 +-
configure.ac| 7 +++
libev.m4 => m4/libev.m4 | 0
3 files changed, 4 insertions(+), 5 deletions(-)
rename libev.m4 => m4/libev.m4 (100%)
diff --git a/Makefile.am b/Makefile.am
index 059305b..0e8b20c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-AUTOMAKE_OPTIONS = foreign
+ACLOCAL_AMFLAGS = -I m4
VERSION_INFO = 4:0:0
diff --git a/configure.ac b/configure.ac
index 2590f8f..e11c21b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,11 +1,12 @@
-AC_INIT
+AC_INIT(libev,4.24)
orig_CFLAGS="$CFLAGS"
AC_CONFIG_SRCDIR([ev_epoll.c])
dnl also update ev.h!
-AM_INIT_AUTOMAKE(libev,4.24)
+AM_INIT_AUTOMAKE(foreign)
+AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
@@ -21,7 +22,5 @@ fi
AC_PROG_INSTALL
AC_PROG_LIBTOOL
-m4_include([libev.m4])
-
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
diff --git a/libev.m4 b/m4/libev.m4
similarity index 100%
rename from libev.m4
rename to m4/libev.m4
--___
libev mailing list
libev@lists.schmorp.de
http://lists.schmorp.de/mailman/listinfo/libev