[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_CHECK_LIB and FreeBSD
From: |
Steve M. Robbins |
Subject: |
Re: AC_CHECK_LIB and FreeBSD |
Date: |
Tue, 15 Jan 2002 08:07:47 -0500 |
User-agent: |
Mutt/1.3.25i |
On Tue, Jan 15, 2002 at 01:25:51AM -0800, Brad Douglas wrote:
> I use the following in configure.in:
>
> AC_CHECK_LIB(popt, poptGetContext, [AC_CHECK_HEADER(popt.h,,)],
> AC_MSG_ERROR([popt library is required.]))
>
> This works fine with Linux and Solaris, but FreeBSD is unable to find the
> header or library (they are installed in /usr/local/...). I've tried
> several variations of the above including checking for the header
> separately.
>
> Does AC_CHECK_LIB/HEADER() not search /usr/local on FreeBSD? Any help
> would be greatly appreciated.
The macros just use the compiler; look in config.log to see the test
program used. So the real question is: does FreeBSD's compiler search
/usr/lib? Maybe you need to set LDFLAGS and CPPFLAGS before running
configure.
-S
--
by Rocket to the Moon,
by Airplane to the Rocket,
by Taxi to the Airport,
by Frontdoor to the Taxi,
by throwing back the blanket and laying down the legs ...
- They Might Be Giants