From bdcf8efe2e359346fa62534faefd8a4bb6991696 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Sun, 4 Dec 2005 15:45:09 +0000 Subject: [PATCH] Link with math library (-lm) on IRIX so that to get support for long double arithmetic. Also make sure to only use -IPA with MIPSPro Compilers. --- BasiliskII/src/Unix/configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BasiliskII/src/Unix/configure.ac b/BasiliskII/src/Unix/configure.ac index 07b7f352..736773e0 100644 --- a/BasiliskII/src/Unix/configure.ac +++ b/BasiliskII/src/Unix/configure.ac @@ -136,6 +136,7 @@ dnl Checks for libraries. AC_CHECK_LIB(posix4, sem_init) AC_CHECK_LIB(rt, timer_create) AC_CHECK_LIB(rt, shm_open) +AC_CHECK_LIB(m, cos) dnl Do we need SDL? WANT_SDL=no @@ -502,7 +503,9 @@ irix*) CFLAGS=`echo "$CFLAGS -IPA" | sed -e "s/-g//g"` AC_MSG_CHECKING(if "-IPA" works) dnl Do a test compile of an empty function - AC_TRY_COMPILE(,, [AC_MSG_RESULT(yes); HAVE_IPA=yes], AC_MSG_RESULT(no)) + AC_TRY_COMPILE([#if defined __GNUC__ + # error GCC does not support IPA yet + #endif],, [AC_MSG_RESULT(yes); HAVE_IPA=yes], AC_MSG_RESULT(no)) CFLAGS="$ocflags" ;; darwin*)