I ran across this same error while updating amanda's packages.

On 06/11/2012 09:16 AM, John Hein wrote:
I see no reference to m4_divert_diversion in AMANDA_INIT_VERSION ...
<snip>
Ah... from the autoconf info pages...

========================
  .
  .
    Unfortunately older versions of Automake (e.g., Automake 1.4) did
not quote the names of these macros.  Therefore, when `m4' finds
something like `AC_DEFUN(AM_TYPE_PTRDIFF_T, ...)' in `aclocal.m4',
`AM_TYPE_PTRDIFF_T' is expanded, replaced with its Autoconf definition.

    Fortunately Autoconf catches pre-`AC_INIT' expansions, and
complains, in its own words:

      $ cat configure.ac
      AC_INIT([Example], [1.0], [[email protected]])
      AM_TYPE_PTRDIFF_T
      $ aclocal-1.4
      $ autoconf
      aclocal.m4:17: error: m4_defn: undefined macro: _m4_divert_diversion
      aclocal.m4:17: the top level
      autom4te: m4 failed with exit status: 1
      $

    Modern versions of Automake no longer define most of these macros,
and properly quote the names of the remaining macros.  If you must use
an old Automake, do not depend upon macros from Automake as it is
simply not its job to provide macros (but the one it requires itself):
  .
  .
========================
This gives a hint that I needed to...

Investigate your automake installation.
Specifically, it seems that with AMANDA_INIT_VERSION, we now require autoconf >=2.64. I actually tested 2.60, 2.61, 2.63, 2.64, and 2.68. The first 3 versions failed, the last two worked.

I'll update configure.in to reflect the finding. Hopefully we prevent some unnecessary pain for some other source builders.

Dan Locks

Reply via email to