From 36b03601c3678ce7ee20c55bf437ab59df08d37a Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 14 Jul 1998 02:58:59 +0000 Subject: [PATCH] Update for hpux and rint --- src/configure.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/configure.in b/src/configure.in index 0dab858944..c58a1eb2db 100644 --- a/src/configure.in +++ b/src/configure.in @@ -582,7 +582,14 @@ AC_CHECK_FUNC(cbrt, AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT))) AC_CHECK_FUNC(rint, AC_DEFINE(HAVE_RINT), - AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT))) +[ +# On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a +SPECIALMATHLIB="" +if [[ -r /lib/pa1.1/libm.a ]] ; then + SPECIALMATHLIB="-L /lib/pa1.1 -lm" +fi + AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT), , $SPECIALMATHLIB) +]) dnl Check for X libraries -- 2.40.0