I see no reference to m4_divert_diversion in AMANDA_INIT_VERSION ...

AC_DEFUN([AMANDA_INIT_VERSION],
[
    m4_syscmd([test -f FULL_VERSION])
    m4_if(m4_sysval, [0],
    [
        m4_define([AMANDA_F_VERSION], m4_chomp(m4_include([FULL_VERSION])))
    ],
    [
        m4_define([AMANDA_F_VERSION], m4_chomp(m4_include([VERSION])))

    ])
    VERSION=AMANDA_F_VERSION
])

And those all look like pretty standard macros (defined by the
autoconf package) that are referenced in AMANDA_INIT_VERSION.

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):
 .
 .
========================

Investigate your automake installation.


Kervin L. Pierre wrote at 13:19 +0000 on Jun 11, 2012:
 > Hello Jean-Louis,
 > 
 > The error is from autogen.  I believe the error is at least related
 > to the new AMANDA_INIT_VERSION macro in configure.in.  If I remove
 > that first line in configure.in the then the error goes away and
 > Amanda builds.
 > 
 > # ./autogen 
 > See DEVELOPING for instructions on updating:
 >  * gettext macros
 >  * gnulib
 >  * libtool files
 > ..creating file lists
 > ..aclocal
 > configure.in:1: error: m4_defn: undefined macro: _m4_divert_diversion
 > configure.in:1: the top level
 > autom4te: /usr/bin/m4 failed with exit status: 1
 > aclocal: autom4te failed with exit status: 1
 > aclocal failed
 > 
 > # aclocal --version
 > aclocal (GNU automake) 1.11.1
 > 
 > Best regards,
 > Kervin
 > 
 > 
 > Adevsoft Inc
 > Business Software Development
 > http://adevsoft.com/
 > 
 > 
 > > -----Original Message-----
 > > From: Jean-Louis Martineau [mailto:[email protected]]
 > > Sent: Monday, June 11, 2012 8:24 AM
 > > To: Kervin L. Pierre
 > > Cc: [email protected]
 > > Subject: Re: aclocal fails since AMANDA_INIT_VERSION call in
 > > configure.in
 > > 
 > > On 06/09/2012 12:08 PM, Kervin L. Pierre wrote:
 > > > I'm building on a stock Amazon Linux server with all available
 > > patches.
 > > >
 > > > But it seems that since the new AMANDA_INIT_VERSION macro call was
 > > added a few weeks ago to configure.in, I haven't been able to run
 > > autogen.sh without error.
 > > >
 > > > Removing the AMANDA_INIT_VERSION call before AC_INIT seems to be the
 > > only work around I've found.
 > > >
 > > > Best regards,
 > > > Kervin
 > > >
 > > 
 > > Kevin,
 > > 
 > > What error do you get?
 > > 
 > > There is no autogen.sh in amanda, the program is autogen
 > > 
 > > Jean-Louis
 > 
 > 
 > 

Reply via email to