Re: configure problem --with-libxml - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: configure problem --with-libxml
Date
Msg-id 20061222141249.GB32471@svana.org
Whole thread Raw
In response to Re: configure problem --with-libxml  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: configure problem --with-libxml  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: xmlagg is not supported?
Next
From: "Simon Riggs"
Date:
Subject: Re: Companies Contributing to Open Source