Commit e468fb38 authored by David J. MacKenzie's avatar David J. MacKenzie
Browse files

Use sqrt (more portable) instead of fmod in -lm check.

parent 1872c299
......@@ -1157,10 +1157,8 @@ AC_TRY_LINK([#include <netdb.h>],
AC_FUNC_ALLOCA
# fmod, logb, and frexp are found in -lm on most systems.
# On HPUX 9.01, -lm does not contain logb, so check for fmod.
# If some other system has -lm with logb and/or frexp but not fmod,
# we will have to try yet again...
AC_CHECK_LIB(m, fmod)
# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
AC_CHECK_LIB(m, sqrt)
AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \
random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid \
strerror fpathconf select mktime eaccess getpagesize)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment