[libvirt] [PATCH] configure.ac: avoid uname, which breaks cross-compilation

Eric Blake eblake at redhat.com
Mon May 3 23:32:06 UTC 2010


On 05/03/2010 05:26 PM, Eric Blake wrote:
> Without this patch, compiling to mingw with a $build on windows
> (think MSYS or cygwin) worked, but failed with a $build on Linux.
> 
> * configure.ac: Fix cross-compilation from Linux to mingw.
> Reported by Matthias Bolte.

I found out on IRC that Matthias was working on the same problem, but
his patch is better than mine.

>  dnl lxc and qemu drivers require linux headers
> -if test `uname -s` != "Linux"
> -then
> +case $host in
> +    linux*)
>      if test "x$with_lxc" != "xyes"

For starters, I accidentally inverted the logic here.  Serves me right
for posting before testing.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100503/071c9ce3/attachment-0001.sig>


More information about the libvir-list mailing list