autoconf-archive-maintainers
[Top][All Lists]
Advanced

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

Re: user upgrade path for renamed macros


From: Reuben Thomas
Subject: Re: user upgrade path for renamed macros
Date: Wed, 12 Aug 2009 00:19:21 +0100

2009/8/11 Filippo Giunchedi <address@hidden>:
> I'm all for asking if we are not sure what's the best way forward!

I did; I got this reply from Ralf Wildenhues:

Hello Reuben,

* Reuben Thomas wrote on Tue, Aug 11, 2009 at 04:43:07PM CEST:
> Over at autoconf-archive we've just been puzzling over how to use
> AU_ALIAS, and we're not sure.

Libtool has some examples, you could peek there, as well as in the
Autoconf sources.

 AC_DEFUN([AC_CHECK_HEADERS], [...])
 AU_ALIAS([AC_HAVE_HEADERS], [AC_CHECK_HEADERS])

with '...' being a sensible definition of the AC_CHECK_HEADERS macro,
and announcing AC_HAVE_HEADERS as an old macro name that should expand
to the contents of the AC_CHECK_HEADERS macro (when autoconf is run),
and should replace invocations of AC_HAVE_HEADERS with invocations of
AC_CHECK_HEADERS (when autoupdate is run).

> Could a brief example please be added to
> the docs? If someone here tells me how it should be used, I'll happily
> make a patch myself (I know, I've already got one to do!).

Feel free.  You can peek at autoconf/tests/*.at as well for examples.

Thanks!
Ralf

-- 
http://rrt.sc3d.org
L’art des vers est de transformer en beautés les faiblesses (Aragon)




reply via email to

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