On Sunday, July 13, 2003, at 07:22 PM, culley harrelson wrote:
> It looks like some of you out there have successfully installed
> postgresql on OS X with readline support. I have installed
> readline via Fink but the compiler can't find it. How do I tell
> it where to look?
I think this (from the Fink FAQ) should help you. It worked for me.
> Q6.4: How do I compile something myself using fink-installed software?
>
> A: When compiling something yourself outside of fink, the compiler
> and linker need to be told where to find the fink-installed
> libraries and headers. For a package that uses standard
> configure/make process, you need to set the CFLAGS, CPPFLAGS,
> CXXFLAGS, and LDFLAGS environment variables:
>
> setenv CFLAGS -I/sw/include
> setenv LDFLAGS -L/sw/lib
> setenv CXXFLAGS $CFLAGS
> setenv CPPFLAGS $CXXFLAGS
>
> It is often easiest just to add these to your .tcshrc or .cshrc so
> they are set automatically. If a package does not use these
> variables, you may need to add the "-I/sw/include" (for headers)
> and "-L/sw/lib" (for libraries) to the compile lines yourself.
> Some packages may use similar non-standard variables such as
> EXTRA_CFLAGS or --with-qt-dir= configure options. "./configure
> --help" will usually give you a list of the extra configure
> options.
from http://fink.sourceforge.net/faq/usage-general.php#compile-myself
-heath