bug-autoconf
[Top][All Lists]
Advanced

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

Re: AU_ALIAS: example please


From: Ralf Wildenhues
Subject: Re: AU_ALIAS: example please
Date: Tue, 11 Aug 2009 19:18:20 +0200
User-agent: Mutt/1.5.20 (2009-08-09)

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




reply via email to

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