Thread: Bug #860: [7.3.x] pg_config --configure not readily usable

Bug #860: [7.3.x] pg_config --configure not readily usable

From
pgsql-bugs@postgresql.org
Date:
jmm (j6m@cvni.net) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
[7.3.x] pg_config --configure not readily usable

Long Description
The use of quotes in pg_config --configure makes it not longer
usable as ./configure argument

Example:

jmma@alpha:~/postgres> ./configure `pg_config --configure`
configure: warning: '--enable-locale': invalid host type
configure: warning: '--with-CXX': invalid host type
configure: error: can only configure for one host and one target at a time
jmma@alpha:~/postgres>


Sample Code


No file was uploaded with this report

Re: Bug #860: [7.3.x] pg_config --configure not readily usable

From
Tom Lane
Date:
pgsql-bugs@postgresql.org writes:
> The use of quotes in pg_config --configure makes it not longer
> usable as ./configure argument

Add an eval:

eval ./configure `pg_config --configure`

The change is necessary to handle configure arguments that contain
spaces...

            regards, tom lane