diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-08 22:35:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-08 22:35:30 +0000 |
commit | d2b480bc96f6ca12d7de236206e5e82e3cbabd57 (patch) | |
tree | 4a8dab4b58205b5450ab14c370dd544cc25f9a09 /libgo/configure.ac | |
parent | 09839cde4cf413ed731035886ecbc8ece14a7451 (diff) | |
download | gcc-d2b480bc96f6ca12d7de236206e5e82e3cbabd57.zip gcc-d2b480bc96f6ca12d7de236206e5e82e3cbabd57.tar.gz gcc-d2b480bc96f6ca12d7de236206e5e82e3cbabd57.tar.bz2 |
runtime: Add matherr function when appropriate.
From-SVN: r184024
Diffstat (limited to 'libgo/configure.ac')
-rw-r--r-- | libgo/configure.ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libgo/configure.ac b/libgo/configure.ac index 155a412..6778903 100644 --- a/libgo/configure.ac +++ b/libgo/configure.ac @@ -478,6 +478,11 @@ AC_CHECK_FUNCS(sem_timedwait) CFLAGS="$CFLAGS_hold" LIBS="$LIBS_hold" +LIBS_hold="$LIBS" +LIBS="$LIBS $MATH_LIBS" +AC_CHECK_FUNCS(matherr) +LIBS="$LIBS_hold" + AC_CACHE_CHECK([for __sync_bool_compare_and_swap_4], [libgo_cv_func___sync_bool_compare_and_swap_4], [AC_LINK_IFELSE([ @@ -566,6 +571,16 @@ AC_CACHE_CHECK([epoll_event data.fd offset], STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset} AC_SUBST(STRUCT_EPOLL_EVENT_FD_OFFSET) +dnl See if struct exception is defined in <math.h>. +AC_CHECK_TYPE([struct exception], +[libgo_has_struct_exception=yes], +[libgo_has_struct_exception=no], +[#include <math.h>]) +if test "$libgo_has_struct_exception" = "yes"; then + AC_DEFINE(HAVE_STRUCT_EXCEPTION, 1, + [Define to 1 if <math.h> defines struct exception]) +fi + dnl See whether setcontext changes the value of TLS variables. AC_CACHE_CHECK([whether setcontext clobbers TLS variables], [libgo_cv_lib_setcontext_clobbers_tls], |