136 |
|
AC_CHECK_LIB(posix4, sem_init) |
137 |
|
AC_CHECK_LIB(rt, timer_create) |
138 |
|
AC_CHECK_LIB(rt, shm_open) |
139 |
+ |
AC_CHECK_LIB(m, cos) |
140 |
|
|
141 |
|
dnl Do we need SDL? |
142 |
|
WANT_SDL=no |
430 |
|
saved_LIBS="$LIBS" |
431 |
|
LIBS="$LIBS -framework $1" |
432 |
|
AC_TRY_LINK( |
433 |
< |
[$2], [int main(void) { return 0; }], |
433 |
> |
[$2], [], |
434 |
|
[AS_VAR_SET(ac_Framework, yes)], [AS_VAR_SET(ac_Framework, no); LIBS="$saved_LIBS"] |
435 |
|
) |
436 |
|
]) |
503 |
|
CFLAGS=`echo "$CFLAGS -IPA" | sed -e "s/-g//g"` |
504 |
|
AC_MSG_CHECKING(if "-IPA" works) |
505 |
|
dnl Do a test compile of an empty function |
506 |
< |
AC_TRY_COMPILE(,, [AC_MSG_RESULT(yes); HAVE_IPA=yes], AC_MSG_RESULT(no)) |
506 |
> |
AC_TRY_COMPILE([#if defined __GNUC__ |
507 |
> |
# error GCC does not support IPA yet |
508 |
> |
#endif],, [AC_MSG_RESULT(yes); HAVE_IPA=yes], AC_MSG_RESULT(no)) |
509 |
|
CFLAGS="$ocflags" |
510 |
|
;; |
511 |
|
darwin*) |