apcupsd and iostats work on FreeBSD
authorNikos Ntarmos <ntarmos@cs.uoi.gr>
Sun, 5 Dec 2010 03:57:37 +0000 (05:57 +0200)
committerPavel Labath <pavelo@centrum.sk>
Thu, 9 Dec 2010 17:53:10 +0000 (18:53 +0100)
Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Pavel Labath <pavelo@centrum.sk>

configure.ac.in

index 0e1051c..2f2529c 100644 (file)
@@ -238,7 +238,7 @@ AC_ARG_ENABLE([apcupsd],
               [want_apcupsd="$enableval"], [want_apcupsd=yes])
 
 if test x$want_apcupsd = xyes; then
-  if test x"$uname" != xLinux; then
+  if test x"$uname" != xLinux -a x"$uname" != xFreeBSD; then
       AC_MSG_NOTICE([apcupsd not supported on $uname... disabling])
       want_apcupsd="not supported on $uname"
   else
@@ -258,7 +258,7 @@ AC_ARG_ENABLE([iostats],
               [want_iostats="$enableval"], [want_iostats=yes])
 
 if test x$want_iostats = xyes; then
-  if test x"$uname" != xLinux; then
+  if test x"$uname" != xLinux -a x"$uname" != xFreeBSD; then
       AC_MSG_NOTICE([iostats not supported on $uname... disabling])
       want_iostats="not supported on $uname"
   else