[Nagiosplug-checkins] nagiosplug configure.in,1.134,1.135

Ton Voon tonvoon at users.sourceforge.net
Thu Jan 13 10:26:00 CET 2005


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

Modified Files:
	configure.in 
Log Message:
Use floats for holding memory values to avoid different types on different
OSes. Seems to have a problem with the perf data for check_swap on Sol 2.6,
but not critical


Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -d -r1.134 -r1.135
--- configure.in	5 Jan 2005 21:32:21 -0000	1.134
+++ configure.in	13 Jan 2005 18:24:51 -0000	1.135
@@ -1257,13 +1257,13 @@
 		egrep -i "^lswap +path +pri +swaplo +blocks +free +maxswap" \
 		>/dev/null]
 	then
-		ac_cv_swap_format=[" %*d %*s %*d,%*d %*d %*d %d %d"]
+		ac_cv_swap_format=[" %*d %*s %*d,%*d %*d %*d %f %f"]
 		ac_cv_swap_conv=2048
 		AC_MSG_RESULT([using IRIX format swap])
 
 	elif [$PATH_TO_SWAP -l 2>/dev/null | egrep -i "^path +dev +swaplo +blocks +free" >/dev/null]
 	then
-		ac_cv_swap_format=["%*s %*[0-9,-] %*d %d %d"]
+		ac_cv_swap_format=["%*s %*[0-9,-] %*d %f %f"]
 		ac_cv_swap_conv=2048
 		AC_MSG_RESULT([using Unixware format swap])
 	else
@@ -1287,7 +1287,7 @@
 
 	if [$PATH_TO_SWAPINFO -k 2>/dev/null | egrep -i "^Device +1K-blocks +Used +Avail" >/dev/null]
 	then
-		ac_cv_swap_format=["%*s %d %*d %d"]
+		ac_cv_swap_format=["%*s %f %*d %f"]
 		ac_cv_swap_conv=1024
 		AC_MSG_RESULT([using FreeBSD format swapinfo])
 	fi
@@ -1296,7 +1296,7 @@
 then
 	ac_cv_have_swap=yes
 	ac_cv_swap_command="$PATH_TO_SWAPINFO -dfM",
-	ac_cv_swap_format=["%*s %d %*d %d"]
+	ac_cv_swap_format=["%*s %f %*d %f"]
 	ac_cv_swap_conv=1024
 	AC_MSG_RESULT([using HP-UX format swapinfo])
 fi
@@ -1311,7 +1311,7 @@
 then
 	ac_cv_have_swap=yes
 	ac_cv_swap_command="$PATH_TO_LSPS -a"
-	ac_cv_swap_format=["%*s %*s %*s %d%*s %d %*s"]
+	ac_cv_swap_format=["%*s %*s %*s %f%*s %f %*s"]
 	ac_cv_swap_conv=1
 	AC_MSG_RESULT([using AIX lsps])
 fi





More information about the Commits mailing list