]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
configure fix for aio library on BSD
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 28 Aug 2008 14:34:57 +0000 (15:34 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 28 Aug 2008 14:34:57 +0000 (15:34 +0100)
BSD needs -lrt.  Patch thanks to Christoph Egger.

configure

index 99bb935dc828f1b3d5246ba1dbf28017668716f2..5d1825f4e19ba3add3f2471a04c0ef5adc10b9b6 100755 (executable)
--- a/configure
+++ b/configure
@@ -336,7 +336,9 @@ for opt do
   esac
 done
 
-if [ "$bsd" = "yes" -o "$darwin" = "yes" -o "$mingw32" = "yes" ] ; then
+if [ "$bsd" = "yes" ] ; then
+    AIOLIBS="-lrt"
+elif [ "$darwin" = "yes" -o "$mingw32" = "yes" ] ; then
     AIOLIBS=
 else
     # Some Linux architectures (e.g. s390) don't imply -lpthread automatically.