Ticket #4155 (closed bug: fixed)
HAVE_LIBM test doesn't work
|Reported by:||donn||Owned by:|
|Type of failure:||Building GHC failed||Difficulty:|
|Test Case:||Blocked By:|
The AC_SEARCH_LIBS test in configure.ac will always set HAVE_LIBM=1, whether the platform supports -lm or not. It's really testing whether atan works, and it will indeed normally work -- the question is just whether it requires an explicit -lm. The mechanics of this can be seen in the generated configure script: look for "none required".
The preceding test for HAVE_MINGWEX does work, and of course that formula works for HAVE_LIBM too.