On Fri, Dec 22, 2006 at 03:03:49PM +0100, Peter Eisentraut wrote:
> Nikolay Samokhvalov wrote:
> > another way is:
> > export CPPFLAGS=$(xml2-config --cflags); ./configure --with-libxml
> > I think that such thing can be used in configure script itself,
> > overwise a lot of people will try, fail and do not use SQL/XML at
> > all.
> The reason why I did not do this was that this could resolve
> to -I/usr/include or -I/usr/local/include, but adding such a standard
> path explicitly is wrong on some systems.
But if people on such a system want to use libxml2, and they install it
in /usr/include then they're screwed anyway. There's no way to tell the
compiler to use only some files in a directory.
Put another way, if adding the include path for libxml2 breaks their
build environment, they can't use libxml2. Have configure play dumb
isn't helping anyone. It won't work on any more or less systems.
Have a nice day,
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
In response to
pgsql-hackers by date
|Next:||From: Tom Lane||Date: 2006-12-22 14:51:27|
|Subject: Re: configure problem --with-libxml |
|Previous:||From: Peter Eisentraut||Date: 2006-12-22 14:05:30|
|Subject: Re: xmlagg is not supported?|