[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: finding the location of header (.h) files
From: |
Stepan Kasal |
Subject: |
Re: finding the location of header (.h) files |
Date: |
Wed, 2 Aug 2006 10:48:57 +0200 |
User-agent: |
Mutt/1.4.2.1i |
Hello,
On Tue, Aug 01, 2006 at 06:02:44AM -0400, Thomas Dickey wrote:
> On Tue, 1 Aug 2006, address@hidden wrote:
> >So you would first check for the existence of pkg-config (and complain
> >if not there) and then use it to get the info needed.
>
> and inevitably (since there's more than one version of pkg-config) start
> to accumulate autoconf macros to filter through incompatibilities
> therein...
well, pkg-config comes with macro PKG_PROG_PKG_CONFIG([MIN-VERSION])
which enables you to enforce a minimal version of pkg-config.
And it comes with macro PKG_CHECK_MODULES, which readily sets
*_CFLAGS and *_LIBS. Unfortunately, it does not understand the need
of *_CPPFLAGS, which can be set by --cflags-only-I.
Have a nice day,
Stepan Kasal