Description
Trying to build master branch on CentOS 6.7 - while doing
autoreconf -if
I received the error configure.ac:52: warning: macro `AM_EXTRA_RECURSIVE_TARGETS' not found in library
The AM_EXTRA_RECURSIVE_TARGETS macro was introduced into automake 1.13. CentOS only has version 1.11 through normal channels. There is not a newer version available in either devtoolset-3 or devtoolset-4. A newer version can be downloaded and compiled, but that is not a standard package.
@jpeach suggested:
diff --git a/configure.ac b/configure.ac index 7e4adf6..5878756 100644 --- a/configure.ac +++ b/configure.ac @@ -49,7 +49,7 @@ AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability tar-ustar foreign no-installinf AM_MAINTAINER_MODE([enable]) # Enable a recursive "tidy" rule for clang-tidy. -AM_EXTRA_RECURSIVE_TARGETS([tidy]) +m4_ifdef([AM_EXTRA_RECURSIVE_TARGETS], [AM_EXTRA_RECURSIVE_TARGETS([tidy]]) AC_CONFIG_HEADERS([lib/ink_autoconf.h])
as a temporary workaround. This change allowed autoreconf and configure to complete successfully.