diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in index df516c5..b209d19 100644 --- a/configure.in +++ b/configure.in | |||
@@ -137,6 +137,11 @@ AC_CHECK_LIB(socket,socket,SOCKETLIBS="$SOCKETLIBS -lsocket") | |||
137 | AC_CHECK_LIB(resolv,main,SOCKETLIBS="$SOCKETLIBS -lresolv") | 137 | AC_CHECK_LIB(resolv,main,SOCKETLIBS="$SOCKETLIBS -lresolv") |
138 | AC_SUBST(SOCKETLIBS) | 138 | AC_SUBST(SOCKETLIBS) |
139 | 139 | ||
140 | dnl | ||
141 | dnl check for math-related functions needing -lm | ||
142 | AC_CHECK_LIB(m,floor,MATHLIBS="-lm") | ||
143 | AC_SUBST(MATHLIBS) | ||
144 | |||
140 | dnl Check for PostgreSQL libraries | 145 | dnl Check for PostgreSQL libraries |
141 | _SAVEDLIBS="$LIBS" | 146 | _SAVEDLIBS="$LIBS" |
142 | _SAVEDCPPFLAGS="$CPPFLAGS" | 147 | _SAVEDCPPFLAGS="$CPPFLAGS" |
@@ -567,7 +572,7 @@ AC_TRY_COMPILE([#include <sys/time.h>], | |||
567 | AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed]))) | 572 | AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed]))) |
568 | 573 | ||
569 | dnl Checks for library functions. | 574 | dnl Checks for library functions. |
570 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtod strtol strtoul) | 575 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtod strtol strtoul, floor) |
571 | 576 | ||
572 | AC_MSG_CHECKING(return type of socket size) | 577 | AC_MSG_CHECKING(return type of socket size) |
573 | AC_TRY_COMPILE([#include <stdlib.h> | 578 | AC_TRY_COMPILE([#include <stdlib.h> |