[Nagiosplug-checkins] nagiosplug configure.in,1.143,1.144

M. Sean Finney seanius at users.sourceforge.net
Mon Jun 27 17:30:15 CEST 2005


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23964

Modified Files:
	configure.in 
Log Message:
scanf parsing fix for check_swap from tracker id 1123292.  now use floor(3)
to round down floating point numbers.  requires -lm on many systems,
so support for testing for this was added to the configure.in and
automake template


Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -d -r1.143 -r1.144
--- configure.in	25 May 2005 00:43:20 -0000	1.143
+++ configure.in	28 Jun 2005 00:26:52 -0000	1.144
@@ -137,6 +137,11 @@
 AC_CHECK_LIB(resolv,main,SOCKETLIBS="$SOCKETLIBS -lresolv")
 AC_SUBST(SOCKETLIBS)
 
+dnl
+dnl check for math-related functions needing -lm
+AC_CHECK_LIB(m,floor,MATHLIBS="-lm")
+AC_SUBST(MATHLIBS)
+
 dnl Check for PostgreSQL libraries
 _SAVEDLIBS="$LIBS"
 _SAVEDCPPFLAGS="$CPPFLAGS"
@@ -567,7 +572,7 @@
                               AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed])))
 
 dnl Checks for library functions.
-AC_CHECK_FUNCS(memmove select socket strdup strstr strtod strtol strtoul)
+AC_CHECK_FUNCS(memmove select socket strdup strstr strtod strtol strtoul, floor)
 
 AC_MSG_CHECKING(return type of socket size)
 AC_TRY_COMPILE([#include <stdlib.h>





More information about the Commits mailing list