Re: [HACKERS] /usr/local/include search - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] /usr/local/include search
Date
Msg-id 12706.929890844@sss.pgh.pa.us
Whole thread Raw
In response to /usr/local/include search  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <maillist@candle.pha.pa.us> writes:
> Why don't we search in /usr/local/include and /usr/local/lib for
> libreadline.a by default, and require the flags to configure?

I'm pretty leery of having configure make unsupported assumptions
about the layout of my filesystem.  Not everyone keeps this sort
of thing in /usr/local, and it's *not* necessarily harmless to look
there without being told.  For example, /usr/local might contain
libraries that are incompatible with the compiler you're trying to
use --- I actually had that problem a few weeks ago when I was
experimenting with egcs.

I think it's fine that configure defaults to looking only in whatever
directories the compiler searches automatically.  gcc, for one, is
usually configured to search in /usr/local by default, so the whole
issue is moot for anyone using gcc.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: [HACKERS] BSD vs. GPL
Next
From: Michael Alan Dorman
Date:
Subject: Re: [HACKERS] BSD vs. GPL