diff options
| author | Tom Lane | 2011-05-26 21:29:33 +0000 |
|---|---|---|
| committer | Tom Lane | 2011-05-26 21:29:33 +0000 |
| commit | 44404f394517f89a0bebb1aaace6e64ad79d2817 (patch) | |
| tree | aa4709ac762a6e97693dbd01fb586b65570c134f /configure.in | |
| parent | 7b158d1baed859971c1aa792bff6a7e1f721cf91 (diff) | |
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.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 76c1a887a3..a752618bf5 100644 --- a/configure.in +++ b/configure.in @@ -445,6 +445,10 @@ elif test "$ICC" = yes; then elif test "$PORTNAME" = "aix"; then # AIX's xlc has to have strict aliasing turned off too PGAC_PROG_CC_CFLAGS_OPT([-qnoansialias]) +elif test "$PORTNAME" = "hpux"; then + # On some versions of HP-UX, libm functions do not set errno by default. + # Fix that by using +Olibmerrno if the compiler recognizes it. + PGAC_PROG_CC_CFLAGS_OPT([+Olibmerrno]) fi # supply -g if --enable-debug |
