diff --git a/configure.ac.in b/configure.ac.in index 1207dcc5..0f002376 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -60,6 +60,7 @@ case $uname in FreeBSD*|GNU/kFreeBSD*) WANT_KVM=yes WANT_DEVSTAT=yes + WANT_OPTRESET=yes ;; # NetBSD*) # WANT_KVM=yes @@ -731,6 +732,17 @@ if test x$WANT_KVM = xyes; then ) fi +dnl +dnl optreset +dnl + +if test x$WANT_OPTRESET = xyes; then + AC_CHECK_LIB(bsd, optreset, + conky_LIBS="$conky_LIBS -lbsd", + AC_MSG_ERROR([Could not find optreset in -lbsd.]) + ) +fi + dnl dnl devstat dnl