Steven Feltner created TS-4773:
----------------------------------

             Summary: AM_EXTRA_RECURSIVE_TARGETS not available in CentOS 
automake
                 Key: TS-4773
                 URL: https://issues.apache.org/jira/browse/TS-4773
             Project: Traffic Server
          Issue Type: Bug
          Components: Build
            Reporter: Steven Feltner


Trying to build master branch on CentOS 6.7 - while doing 
{code:}
autoreconf -if
{code}
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:
{code:}
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])
 
 {code}
as a temporary workaround.  This change allowed autoreconf and configure to 
complete successfully.  




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to