[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Integration of autoconf and pkg-config
From: |
Stefano Sabatini |
Subject: |
Re: Integration of autoconf and pkg-config |
Date: |
Wed, 19 Dec 2007 10:31:16 +0100 |
User-agent: |
Mutt/1.5.16 (2007-06-11) |
On date Tuesday 2007-12-18 18:28:30 +0100, Baurzhan Ismagulov wrote:
> Hello Stefano,
>
> On Tue, Dec 18, 2007 at 02:40:31PM +0100, Stefano Sabatini wrote:
> > A solution could be then to write a little test program to run during
> > configuration which uses the flags provided by pkg-config (I wonder if
> > there is already some macro which can do it in autoconf).
>
> Do you mean calling PKG_CHECK_MODULES(LIBAVFORMAT, libavformat) in
> configure.ac and using LIBAVFORMAT_CFLAGS and LIBAVFORMAT_LIBS in
> Makefile.am? Not sure about atleast-version, though.
Hi Baurzhan, yes it seems promising. After some search I find out that
macro is part of the pkg-config package.
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)?
Many thanks in advance.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)