[postgis-devel] --with-libfoo

Sandro Santilli strk at keybit.net
Mon Aug 4 01:01:45 PDT 2014


On Fri, Aug 01, 2014 at 02:29:27PM -0700, Paul Ramsey wrote:
> Hey devs,
> I had to do a build for Solaris recently, and ended up having to patch configure.ac to do it, because of the way we reference external libraries.
> Basically, we assume that any external library will be installed in /some/prefix/lib and /some/prefix/include. So we only expect to need /some/prefix in our configuration in order to find the necessary parts.
> In solaris 64 bit, the includes are are in /some/prefix/include but the libraries are in /home/prefix/lib/64.
> I noted that cmake has this general idea baked into their patterns for extension libraries, the expectation that include and lib paths be declared independently.
> In the end, I changed
> —with-projdir 
> to 
> —with-proj-includedir
> and
> —with-proj-libdir
> 
> I’d like to do a similar thing to trunk. I could try and keep the old syntax around, or just remove it in favor of the split syntax.
> 
> Thoughts?

Please try to keep the old syntax around too, shouldn't be hard
(just have the --with-xxxdir processed first)

If you're up for some fun, having a PGIS_FIND_PACKAGE m4 macro
might help making these things easier to maintain.

--strk;



More information about the postgis-devel mailing list