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

Started by PostgreSQL Bugs Listover 23 years ago2 messagesbugs
Jump to latest
#1PostgreSQL Bugs List
pgsql-bugs@postgresql.org

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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PostgreSQL Bugs List (#1)
Re: Bug #860: [7.3.x] pg_config --configure not readily usable

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