automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AU_DEFUN obsolete functions


From: Alexandre Duret-Lutz
Subject: Re: AU_DEFUN obsolete functions
Date: Mon, 22 Apr 2002 11:19:33 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu)

>>> "Akim" == Akim Demaille <address@hidden> writes:

 >>>>>> "adl" == Alexandre Duret-Lutz <address@hidden> writes:
 adl> This is a patch that we can't apply before some work is done in
 adl> Autoconf.  I'm sending it in before I lose it, and in case
 adl> someone else wanted to work in this area.

 adl> Basically there are two issues, one of which is already solved.

 adl> 1. Autoconf 2.53 does not honor AU_DEFUN from aclocal.m4.  The
 adl> current CVS version does, so we can wait for the next release and
 adl> depend on this one.  (I believe there will be other reasons to
 adl> depend on a greater Autoconf version.)

 Akim> I fail to understand in what way this prevents you from installing the
 Akim> patch.  AFAICS, it will work for both, but better with 2.54.

Installing this patch without requiring Autoconf 2.54 will
prevent Autoconf 2.53 users to run autoupdate, and generate bug
reports about:

% autoupdate -f
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Cannot open [m4.m4]: No such file or 
directory
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Cannot open [m4sugar/m4sugar.m4]: No 
such file or directory
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Cannot open [ac.m4]: No such file or 
directory
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Warning: Excess arguments to built-in 
`_au_ifdef' ignored
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Cannot open [unac.m4]: No such file or 
directory
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Cannot open [unm4.m4]: No such file or 
directory
/tmp/auTpvVJ8/input.m4:103: /usr/bin/m4: Warning: Excess arguments to built-in 
`_au_ifdef' ignored
autoupdate: `configure.in' is updated

 adl> 2. Some AU_DEFUNs in Autoconf substitute calls to AC_REQUIRE,
 adl> which is not supported at the top-level.  This causes the last
 adl> $AUTOCONF call of obsolete.test (the new version from this patch)
 adl> to fail.

 Akim> That's why I recommend removing all the AC_REQUIRE you have in these
 Akim> macros.  AC_REQUIRE is forbidden in AU_DEFUN.

Thanks.  I initially wrote all these AU_DEFUN macros using
AC_REQUIRE, then I removed all the AC_REQUIRE from obsolete.m4
and forgot about the other files.  I'll update the patch.

However obsolete.test exercizes only the obsolete.m4 macros (no
AC_REQUIRE here), and it fails because *Autoconf* uses
AC_REQUIRE in AU_DEFUN, for instance see AC_CYGWIN, AC_EMXOS2,
and AC_MINGW32.

[...]

-- 
Alexandre Duret-Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]