[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_CHECK_LIB and FreeBSD
From: |
Brad Douglas |
Subject: |
Re: AC_CHECK_LIB and FreeBSD |
Date: |
Tue, 15 Jan 2002 12:48:35 -0800 (PST) |
On Tue, 15 Jan 2002, Steve M. Robbins wrote:
>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.
For future reference the following fixed my problem:
ldconfig -m -elf /usr/local/lib
Thanks for the pointers.
-Brad