autoconf
[Top][All Lists]
Advanced

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

Re: [Autoconf] Autoupdate is broken.


From: Pavel Roskin
Subject: Re: [Autoconf] Autoupdate is broken.
Date: Sat, 16 Sep 2000 23:36:01 -0400 (EDT)

Hello!

> Autoupdate doesn't work properly for me. For example, AC_CANONICAL_SYSTEM
> is replaced with a long definition instead of just AC_CANONICAL_TARGET as
> it's supposed to be.

It appears that AU_ALIAS is guilty. If I replace AU_ALIAS with AU_DEFUN in
the definition of AC_CANONICAL_SYSTEM is is updated correcly.

Let's see what happens. Look at the following definitions from
acgeneral.m4:

define([AU_ALIAS],
[AU_DEFUN([$1], defn([$2]))])

AU_ALIAS([AC_CANONICAL_SYSTEM], [AC_CANONICAL_TARGET])

This together essentially means - define AC_CANONICAL_SYSTEM to the
definition of AC_CANONICAL_TARGET. The later is not the same as the
literal "AC_CANONICAL_TARGET", so AU_DEFUN is called not with the same
arguments as in the _supposedly_ equivalent

AU_DEFUN([AC_CANONICAL_SYSTEM], [AC_CANONICAL_TARGET])

This patch works for me, i.e. autoupdate works and the testsuite still
passes. And even configure still works with old macros. However, it is by
no means a patch made by somebody who knows what he is doing :-)

========================
--- acgeneral.m4        Thu Sep 14 23:22:57 2000
+++ acgeneral.m4        Sat Sep 16 22:56:56 2000
@@ -683,7 +683,7 @@
 # interest in running the test suite on both OLD-NAME and NEW-NAME.
 # This macro makes it possible to distinguish such cases.
 define([AU_ALIAS],
-[AU_DEFUN([$1], defn([$2]))])
+[AU_DEFUN([$1], [$2])])
 
 
 
========================

Regards,
Pavel Roskin



reply via email to

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