autoconf
[Top][All Lists]
Advanced

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

Re: About AC_CHECK_HEADERS and different locations


From: Peter Breitenlohner
Subject: Re: About AC_CHECK_HEADERS and different locations
Date: Tue, 28 Sep 2010 16:07:27 +0200 (CEST)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

On Tue, 28 Sep 2010, Eric Blake wrote:

On 09/27/2010 09:13 PM, Sergio Belkin wrote:

The problem is that Ubuntu has such a header file on
/usr/include/postgresq  but fedora has it on  /usr/include. So how can
I make that configure script checks  for differents paths?

By altering CFLAGS (either by the user as command-line arguments to ./configure, or in your configure.ac while being careful to honor the user's additional CFLAGS settings) to include the correct -I compiler options prior to your AC_CHECK_HEADERS use.

Hi,

this actually ought to be CPPFLAGS instead of CFLAGS (and will then
automatically apply to C as well as C++).

Regards
Peter Breitenlohner <address@hidden>



reply via email to

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