Teach the configure script to validate its --with-pgport argument.
commitbf53d5c208a3bdce243a38666fc50f5418c78c3b
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Mar 2016 14:41:29 +0000 (14 10:41 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Mar 2016 14:41:29 +0000 (14 10:41 -0400)
tree6a3201118da42e36a127254f883ba45aa889dde6
parent9da70efcbe09954b1006f878d39885a4acf1c534
Teach the configure script to validate its --with-pgport argument.

Previously, configure would take any string, including an empty string,
leading to obscure compile failures in guc.c.  It seems worth expending
a few lines of code to ensure that the argument is a decimal number
between 1 and 65535.

Report and patch by Jim Nasby; reviews by Alex Shulgin, Peter Eisentraut,
Ivan Kartyshov
configure
configure.in