Added darwin with working battery meter
diff --git a/configure.ac b/configure.ac
index ad32e88..3852d3b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,9 @@
 *freebsd*)
    my_htop_platform=freebsd
    ;;
+*darwin*)
+   my_htop_platform=darwin
+   ;;
 *)
    my_htop_platform=unsupported
    ;;
@@ -203,6 +206,7 @@
 # ----------------------------------------------------------------------
 AM_CONDITIONAL([HTOP_LINUX], [test "$my_htop_platform" = linux])
 AM_CONDITIONAL([HTOP_FREEBSD], [test "$my_htop_platform" = freebsd])
+AM_CONDITIONAL([HTOP_DARWIN], [test "$my_htop_platform" = darwin])
 AM_CONDITIONAL([HTOP_UNSUPPORTED], [test "$my_htop_platform" = unsupported])
 AC_SUBST(my_htop_platform)
 AC_CONFIG_FILES([Makefile htop.1])