configure: simplify checks for libm
We do not need to care which functions are in the math library. We only need to care whether libm actually exists and can be linked against. And by the way, lets define @LIBM@ for makefiles.
Showing with 5 additions and 21 deletions