AC_CHECK_DECLS([ceilf, floorf], , , [#include <math.h>])
if test "$ac_cv_have_decl_floorf" = yes \
&& test "$ac_cv_have_decl_ceilf" = yes; then
AC_CHECK_DECLS([ceilf, floorf], , , [#include <math.h>])
if test "$ac_cv_have_decl_floorf" = yes \
&& test "$ac_cv_have_decl_ceilf" = yes; then
AC_DEFINE([HAVE_FLOORF_AND_CEILF], 1,
[Define if the both the floorf() and ceilf() functions exist.])
AC_DEFINE([HAVE_FLOORF_AND_CEILF], 1,
[Define if the both the floorf() and ceilf() functions exist.])