Here's a workaround:
Edit config.h (yes, it's generated by configure) and set all lrint and friends to '1'.
eg: #define HAVE_LRINT 1
This will permit the build to continue.
If you rerun 'configure' then you will need to do edit config.h again.
What is happening is that when you have a host and target system that implement lrint and friends in different math headers that is when you run into the problem. The configure is not looking at the target system only the host system on cross-compiles. This is why macports android mipsel and others run into the problem.
.