"-lm" to LDADD as usual. We do assume that the host system has a -lm library, but we can't assume that the library is in /usr/lib/libm.a.