Hi,
The only sore point of the PL/php build is that it needs the Apache2 module, so it needs to know the path to it. I haven't found a way to do this automatically without requiring APXS which I certainly don't want to do ...
Maybe I didn't get the point, but this could be as simple as writing a new PHP sapi (i.e. sapi/pgsql) which builds the .so without requiring Apache or other software.
I've also seen there is an experimental embed sapi which could already be what you need (--enable-embed).
Best regards -- Matteo Beccati http://phpadsnew.com http://phppgads.com ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match