[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Integration of autoconf and pkg-config
From: |
Patrick Welche |
Subject: |
Re: Integration of autoconf and pkg-config |
Date: |
Wed, 19 Dec 2007 15:57:53 +0000 |
User-agent: |
Mutt/1.5.14 (2007-03-22) |
On Wed, Dec 19, 2007 at 04:37:17PM +0100, Stefano Sabatini wrote:
> On date Wednesday 2007-12-19 14:38:31 +0000, Patrick Welche wrote:
> > On Wed, Dec 19, 2007 at 10:31:16AM +0100, Stefano Sabatini wrote:
> > > Just another little newbie question, am I supposed to copy the pkg.m4
> > > file containing the macro somewhere into my package (e.g. in
> > > aclocal.m4)?
> >
> > I don't know about pkg.m4 specifically, but if there is a macro in it
> > which you need, I would e.g. create a directory m4, copy pkg.m4 into it,
> > add
> > AC_CONFIG_MACRO_DIR([m4])
> > to configure.ac, and
> > ACLOCAL_AMFLAGS = -I m4
> > to Makefile.am (assuming you are using automake)
...
> The abovementioned solution without using automake doesn't work, while it
> works simply putting in aclocal.m4 the used macros.
How about running "aclocal -I m4" to generate your aclocal.m4 from
the files in m4? (I also thought that acinclude.m4 might be a better
place for putting your own macros, as it doesn't get overwritten
by things like aclocal.) (..or just add
m4_include([m4/pkg.m4])
to the end of aclocal.m4)
Cheers,
Patrick