+ dnl Also check whether it's declared.
+ dnl IRIX 6.5 has fmal() in libm but doesn't declare it in <math.h>,
+ dnl and the function is buggy.
+ AC_CHECK_DECL([fmal], , [REPLACE_FMAL=1], [[#include <math.h>]])
+ if test $REPLACE_FMAL = 0; then
+ gl_FUNC_FMAL_WORKS
+ case "$gl_cv_func_fmal_works" in
+ *no) REPLACE_FMAL=1 ;;
+ esac
+ fi