From 2fb04f61d4441179512809776f4d7e284c9db567 Mon Sep 17 00:00:00 2001
From: Christophe CURIS <[email protected]>
Date: Tue, 9 Apr 2013 08:54:48 +0200
Subject: [PATCH] Added detection of library kvm that is used under OpenBSD

As proposed by Christian Schulte, when compiling WindowMaker on BSD
it uses the kvm library to gather information on processes (in the
os-dependant file), so we must properly link against the corresponding
library, which this patch adds.
---
 configure.ac |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index d8acbeb..c6aa5b5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -225,6 +225,11 @@ AS_IF([test "x$ac_cv_search_strlcat" = "x-lbsd" -o "x$ac_cv_search_strlcpy" = "x
 )
 AC_SUBST(LIBBSD)
 
+dnl Check for OpenBSD kernel memory interface - kvm(3)
+dnl ==================================================
+AS_IF([test "x$WM_OSDEP" = "xbsd"],
+  AC_SEARCH_LIBS([kvm_openfiles], [kvm]) )
+
 dnl Check for inotify
 dnl =================
 AC_CHECK_HEADERS(sys/inotify.h, AC_DEFINE(HAVE_INOTIFY, 1, Check for inotify))
-- 
1.7.10.4

Reply via email to