Skip to content

Commit

Permalink
Fix autodetection of cosl(), sinl()
Browse files Browse the repository at this point in the history
Autoconf must have changed since we last looked.  Thanks
Åke Sandgren for the fix.
  • Loading branch information
matteo-frigo committed Nov 19, 2013
1 parent 7e66dc5 commit 40f59a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,11 @@ fi
AC_SUBST(LIBQUADMATH)

AC_CHECK_FUNCS([BSDgettimeofday gettimeofday gethrtime read_real_time time_base_to_time drand48 sqrt memset posix_memalign memalign _mm_malloc _mm_free clock_gettime mach_absolute_time sysctl abort sinl cosl snprintf])
AC_CHECK_DECLS([drand48, srand48, memalign, posix_memalign, sinl, cosl, sinq, cosq])
AC_CHECK_DECLS([drand48, srand48, memalign, posix_memalign, sinl, cosl, sinq, cosq],,,[
#include <math.h>
#include <stdlib.h>
#include <malloc.h>
])

dnl Cray UNICOS _rtc() (real-time clock) intrinsic
AC_MSG_CHECKING([for _rtc intrinsic])
Expand Down
4 changes: 2 additions & 2 deletions kernel/trig.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
# define COS cosl
# define SIN sinl
# define KTRIG(x) (x##L)
# ifndef HAVE_DECL_SINL
# if !HAVE_DECL_SINL
extern long double sinl(long double x);
# endif
# ifndef HAVE_DECL_COSL
# if !HAVE_DECL_COSL
extern long double cosl(long double x);
# endif
#elif defined(TRIGREAL_IS_QUAD)
Expand Down

0 comments on commit 40f59a1

Please sign in to comment.