[libvirt] [PATCH 4/4] There's no librt on OpenBSD.

Jasper Lievisse Adriaanse jasper at humppa.nl
Mon Sep 3 21:30:25 UTC 2012


---
 configure.ac |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7ba1e9c..701ab50 100644
--- a/configure.ac
+++ b/configure.ac
@@ -188,7 +188,13 @@ RT_LIBS=
 LIBS="$LIBS $LIB_PTHREAD -lrt"
 AC_CHECK_FUNC([clock_gettime],[
      AC_DEFINE([HAVE_CLOCK_GETTIME],[],[Defined if clock_gettime() exists in librt.so])
-     RT_LIBS=-lrt
+     case "$host" in
+       *-*-openbsd*)
+         ;;
+       *)
+         RT_LIBS=-lrt
+	 ;;
+     esac
 ])
 LIBS=$old_libs
 AC_SUBST(RT_LIBS)
-- 
1.7.6




More information about the libvir-list mailing list