Index: cmake/config-ix.cmake =================================================================== --- cmake/config-ix.cmake +++ cmake/config-ix.cmake @@ -141,6 +141,9 @@ check_symbol_exists(exp math.h HAVE_EXP) check_symbol_exists(exp2 math.h HAVE_EXP2) check_symbol_exists(exp10 math.h HAVE_EXP10) +check_symbol_exists(round math.h HAVE_ROUND) +check_symbol_exists(roundf math.h HAVE_ROUNDF) +check_symbol_exists(roundl math.h HAVE_ROUNDL) check_symbol_exists(futimens sys/stat.h HAVE_FUTIMENS) check_symbol_exists(futimes sys/time.h HAVE_FUTIMES) if( HAVE_SETJMP_H ) Index: include/llvm/Config/config.h.cmake =================================================================== --- include/llvm/Config/config.h.cmake +++ include/llvm/Config/config.h.cmake @@ -98,6 +98,15 @@ /* Define to 1 if you have the `floorf' function. */ #cmakedefine HAVE_FLOORF ${HAVE_FLOORF} +/* Define to 1 if you have the `round' function. */ +#cmakedefine HAVE_ROUND ${HAVE_ROUND} + +/* Define to 1 if you have the `roundf' function. */ +#cmakedefine HAVE_ROUNDF ${HAVE_ROUNDF} + +/* Define to 1 if you have the `roundl' function. */ +#cmakedefine HAVE_ROUNDL ${HAVE_ROUNDL} + /* Define to 1 if you have the `log' function. */ #cmakedefine HAVE_LOG ${HAVE_LOG} Index: include/llvm/Config/config.h.in =================================================================== --- include/llvm/Config/config.h.in +++ include/llvm/Config/config.h.in @@ -98,6 +98,15 @@ /* Define to 1 if you have the `floorf' function. */ #undef HAVE_FLOORF +/* 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 + /* Define to 1 if you have the `fmodf' function. */ #undef HAVE_FMODF