Just for information.
Here is a part of the code from "configure" SVN-r18880.
This did work OK.
# test for C99 functions in math.h
for func in llrint lrint lrintf round roundf truncf; do
check_exec <<EOF && enable $func || disable $func
#include <math.h>
int main(void) { return ($func(3.999f) > 0)?0:1; }
EOF
done