Re: [HACKERS] HPUX Port
От | Tom Lane |
---|---|
Тема | Re: [HACKERS] HPUX Port |
Дата | |
Msg-id | 15455.900378374@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] HPUX Port (The Hermit Hacker <scrappy@hub.org>) |
Ответы |
Re: [HACKERS] HPUX Port
|
Список | pgsql-hackers |
The Hermit Hacker <scrappy@hub.org> writes: >> The "one item" is that configure doesn't know about having to look >> in /lib/pa1.1 to find rint() on HPUX 9. I've been debating whether > Is this something we can just ptu a check for tha tlibrary into > the configure script and all will be well? In other words, Just Do It, eh? I suppose you're right. The attached does the right thing on HPUX 9 and looks fairly harmless for other platforms. regards, tom lane *** src/configure.in.orig Sun Jul 12 12:05:02 1998 --- src/configure.in Mon Jul 13 20:57:37 1998 *************** *** 582,588 **** 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))) dnl Check for X libraries --- 582,595 ---- AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT))) AC_CHECK_FUNC(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
В списке pgsql-hackers по дате отправления: