Index: configure =================================================================== --- configure (revision 300622) +++ configure (working copy) @@ -14250,7 +14250,7 @@ fi # BSD might not have exp2, and/or log2 -for ac_func in exp2 log2 exp10 log10 sin cos tan asin acos atan atan2 pow rint exp log remainder fmod round trunc floor ceil +for ac_func in exp2 log2 exp10 log10 sin cos tan asin acos atan atan2 pow rint exp log remainder fmod round roundf trunc floor ceil do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" Index: configure.ac =================================================================== --- configure.ac (revision 300622) +++ configure.ac (working copy) @@ -523,7 +523,7 @@ # so that AC_CHECK_FUNCS can detect functions in that library. AC_CHECK_LIB([m], [sqrt]) # BSD might not have exp2, and/or log2 -AC_CHECK_FUNCS([exp2 log2 exp10 log10 sin cos tan asin acos atan atan2 pow rint exp log remainder fmod round trunc floor ceil]) +AC_CHECK_FUNCS([exp2 log2 exp10 log10 sin cos tan asin acos atan atan2 pow rint exp log remainder fmod round roundf trunc floor ceil]) # Certain architectures don't really have long double, even though # AC_CHECK_FUNCS would otherwise find the following functions. Index: include/asterisk/compat.h =================================================================== --- include/asterisk/compat.h (revision 300622) +++ include/asterisk/compat.h (working copy) @@ -216,4 +216,12 @@ #define MY_GLOB_FLAGS (GLOB_NOMAGIC | GLOB_BRACE) #endif +#ifndef HAVE_ROUNDF +#ifdef HAVE_ROUND +#define roundf(a) round(a) +#else +#define roundf(a) ((float) (int) ((a) + 0.5)) #endif +#endif + +#endif Index: include/asterisk/autoconfig.h.in =================================================================== --- include/asterisk/autoconfig.h.in (revision 300622) +++ include/asterisk/autoconfig.h.in (working copy) @@ -673,6 +673,9 @@ /* Define to 1 if you have the `round' function. */ #undef HAVE_ROUND +/* Define to 1 if you have the `roundf' function. */ +#undef HAVE_ROUNDF + /* Define to 1 if you have the `roundl' function. */ #undef HAVE_ROUNDL