OSDN Git Service

Adjust configure to use "+Olibmerrno" with HP-UX C compiler, if possible.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 May 2011 21:29:33 +0000 (17:29 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 May 2011 21:29:33 +0000 (17:29 -0400)
commit44404f394517f89a0bebb1aaace6e64ad79d2817
treeaa4709ac762a6e97693dbd01fb586b65570c134f
parent7b158d1baed859971c1aa792bff6a7e1f721cf91
Adjust configure to use "+Olibmerrno" with HP-UX C compiler, if possible.

This is reported to be necessary on some versions of that OS.  In service
of this, cause PGAC_PROG_CC_CFLAGS_OPT to reject switches that result in
compiler warnings, since on yet other versions of that OS, the switch does
nothing except provoke a warning.

Report and patch by Ibrar Ahmed, further tweaking by me.
config/c-compiler.m4
configure
configure.in