[libvirt] [PATCH 3/6] vbox: Add glue layer for MSCOM on Windows
Eric Blake
eblake at redhat.com
Sat Dec 18 00:10:05 UTC 2010
On 12/17/2010 11:56 AM, Matthias Bolte wrote:
> Don't require dlopen, but link to ole32 and oleaut32 on Windows.
> if test "x$with_vbox" = "xyes"; then
> - AC_SEARCH_LIBS([dlopen], [dl], [], [AC_MSG_ERROR([Unable to find dlopen()])])
> + AC_SEARCH_LIBS([dlopen], [dl],,)
> case $ac_cv_search_dlopen in
> - no*) DLOPEN_LIBS= ;;
> + no*) DLOPEN_LIBS=
> + case "$host" in
> + *-*-mingw* | *-*-msvc*) ;;
> + *) AC_MSG_ERROR([Unable to find dlopen()]) ;;
> + esac ;;
Sorry for not testing this on cygwin earlier - it breaks, because on
cygwin, dlopen is part of libc, so $ac_cv_search_dlopen is set to "none
required", which happens to match the no*) case.
How about instead doing:
case $ac_cv_search_dlopen:$host in
no:*-*-mingw* | no:*-*-msvc*) ;;
no:*) AC_MSG_ERROR([Unable to find dlopen()]) ;;
*) DLOPEN_LIBS=$ac_cv_search_dlopen ;;
esac
I'm testing that now; if it works, I'll post the formal patch.
--
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/20101217/0b7bd68f/attachment-0001.sig>
More information about the libvir-list
mailing list