- gl_MATHFUNC([copysignf], [float], [(float, float)])
- if test $gl_cv_func_copysignf_no_libm = no \
- && test $gl_cv_func_copysignf_in_libm = no; then
+ gl_MATHFUNC([copysignf], [float], [(float, float)],
+ [extern
+ #ifdef __cplusplus
+ "C"
+ #endif
+ float copysignf (float, float);
+ ])
+ if test $gl_cv_func_copysignf_no_libm = yes \
+ || test $gl_cv_func_copysignf_in_libm = yes; then
+ HAVE_COPYSIGNF=1
+ dnl Also check whether it's declared.
+ dnl IRIX 6.5 has copysignf() in libm but doesn't declare it in <math.h>.
+ AC_CHECK_DECL([copysignf], , [HAVE_DECL_COPYSIGNF=0], [[#include <math.h>]])
+ else