1
dnl Available from the GNU Autoconf Macro Archive at:
2
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_system_v_math.html
4
AC_DEFUN([AC_CXX_HAVE_SYSTEM_V_MATH],
5
[AC_CACHE_CHECK(whether the compiler supports System V math library,
6
ac_cv_cxx_have_system_v_math,
18
#ifndef _XOPEN_SOURCE_EXTENDED
19
#define _XOPEN_SOURCE_EXTENDED 1
21
#include <math.h>],[double x = 1.0; double y = 1.0;
22
_class(x); ilogb(x); itrunc(x); nearest(x); rsqrt(x); uitrunc(x);
23
copysign(x,y); drem(x,y); fmod(x,y); hypot(x,y); nextafter(x,y);
24
remainder(x,y); scalb(x,y); unordered(x,y);
26
ac_cv_cxx_have_system_v_math=yes, ac_cv_cxx_have_system_v_math=no)
30
if test "$ac_cv_cxx_have_system_v_math" = yes; then
31
AC_DEFINE(HAVE_SYSTEM_V_MATH,,[define if the compiler supports System V math library])