crfsuite
crfsuite copied to clipboard
./autogen.sh fails on error: automatic de-ANSI-fication support has been removed
On Ubuntu 13.10, after downloading and unpacking crfsuite master:
./autogen.sh
...
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:33: error: automatic de-ANSI-fication support has been removed
/usr/share/aclocal-1.13/obsolete.m4:26: AM_C_PROTOTYPES is expanded from...
configure.in:33: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
aclocal failed!
removing the offending macro by replacing
AM_C_PROTOTYPES
with
dnl AM_C_PROTOTYPES
in configure.in
fixes the (immediate) issue.
this can also be solved by replacing the deprecated macro:
diff --git a/configure.in b/configure.in
index dafbcf6..b5838bb 100644
--- a/configure.in
+++ b/configure.in
@@ -30,7 +30,10 @@ dnl ------------------------------------------------------------------
AM_INIT_AUTOMAKE(crfsuite, 0.12)
AC_CONFIG_HEADERS(config.h)
AM_MAINTAINER_MODE
-AM_C_PROTOTYPES
+AC_C_PROTOTYPES
+AC_HEADER_STDC
+AC_CHECK_HEADERS("string.h")
+
dnl ------------------------------------------------------------------
This has also been fixed in the unmerged pull-request #29.
This has been fixed problem.Thx