autoconf
[Top][All Lists]
Advanced

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

Re: Finding a header


From: Ralf Wildenhues
Subject: Re: Finding a header
Date: Fri, 16 Dec 2005 13:55:46 +0100
User-agent: Mutt/1.5.11

* Daniel Pekelharing wrote on Fri, Dec 16, 2005 at 09:32:27AM CET:
> 
> Please excuse a dumb question.. how do I include a .m4 file in my
> configure.ac?

ordered by increasing preference and ease of use:

0) copy (cat) it into acinclude.m4.
1) run aclocal to have its text included in aclocal.m4.
(You may have to make sure that aclocal finds your .m4 input file
by either one of command line arguments or the `dirlist' feature;
both explained in Automake manual).
2) In your project,
     mkdir m4
   copy foo.m4 into m4/foo.m4
     aclocal -I m4
   for repeatability put
     ACLOCAL_AMFLAGS = -I m4
   in toplevel Makefile.am
3) Additionally to (2), use CVS Automake's `aclocal --install'
   to automatically update the m4/foo.m4 file from its source if newer.
   Add
     AC_CONFIG_MACRO_DIR([m4])
   to configure.ac for this.

Cheers,
Ralf




reply via email to

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