That message is because configure is trying to run ARM compiled test code on a non-ARM machine.
Two possible solutions:
Install and use scratchbox2 (it is designed to solve exactly this problem).
Follow the Ubuntu model of defining a binfmt_misc entry to use qemu to run the arm code.
Your choice should in-part be guided by what Linux distribution you are using.
Some "just work" - others can be a real hassle to setup.
There is a third choice -
Pass the appropriate ac_* settings in the environment of configure to turn off the testing but that is a technical level beyond this forum.