logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

CVS: nagiosplug configure.in,1.110,1.111: msg#00006

Subject: CVS: nagiosplug configure.in,1.110,1.111
Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4384

Modified Files:
        configure.in 
Log Message:
Support for check_swap on NetBSD/OpenBSD (Sean Finney)


Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.110
retrieving revision 1.111
diff -C2 -r1.110 -r1.111
*** configure.in        10 May 2004 10:25:39 -0000      1.110
--- configure.in        18 Aug 2004 20:36:07 -0000      1.111
***************
*** 1363,1366 ****
--- 1363,1392 ----
  fi
  
+ AC_PATH_PROG(PATH_TO_SWAPCTL,swapctl,,[$PATH:/sbin])
+ if (test -n "$PATH_TO_SWAPCTL")
+ then
+ AC_MSG_CHECKING([for $PATH_TO_SWAPCTL format])
+ if [$PATH_TO_SWAPCTL -l 2>&1 >/dev/null]
+ then
+       ac_cv_have_swap=yes
+       ac_cv_swap_command="$PATH_TO_SWAPCTL -l"
+       if [$PATH_TO_SWAPCTL -l 2>/dev/null | \
+               egrep -i "^Device +1K-blocks +Used +Avail +Capacity +Priority" 
>/dev/null ]
+       then
+               ac_cv_swap_format=["%*s %llu %*d %llu %*d"]
+               ac_cv_swap_conv=1024
+               AC_MSG_RESULT([using 1K BSD format swapctl])
+ 
+       elif [$PATH_TO_SWAPCTL -l 2>/dev/null | \
+               egrep -i "^Device +512-blocks +Used +Avail +Capacity +Priority" 
>/dev/null ]
+       then
+               ac_cv_swap_format=["%*s %llu %*d %llu %*d"]
+               ac_cv_swap_conv=2048
+               AC_MSG_RESULT([using 512 byte BSD format swapctl])
+       fi
+ fi
+ dnl end if for PATH_TO_SWAPCTL
+ fi
+ 
  if test "x$ac_cv_have_swap" != "x" 
  then



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285


<Prev in Thread] Current Thread [Next in Thread>