[libvirt] [PATCHv2] build: force libnl1 if netcf also used libnl1
Eric Blake
eblake at redhat.com
Thu Sep 13 12:18:39 UTC 2012
On 09/13/2012 01:15 AM, Guido Günther wrote:
>
> Since this went in ./configure fails on Debian with a netcf linked
> against libnl1:
Where does libnl.so live on your platform? Is it just a matter of
expanding the for loop to find the library to run ldd on?
> configure:66413: result: no
> No package 'libnl-3.0' found
> configure:66429: error: Package requirements (libnl-3.0) were not met:
Ah, I think I know how to fix this one. PKG_CHECK_MODULES defaults to a
fatal error unless we supply a non-empty fourth argument. Does this
patch do it?
diff --git i/configure.ac w/configure.ac
index 690de2a..fd89bfc 100644
--- i/configure.ac
+++ w/configure.ac
@@ -2924,7 +2924,7 @@ if test "$with_linux" = "yes"; then
PKG_CHECK_MODULES([LIBNL_ROUTE3], [libnl-route-3.0])
LIBNL_CFLAGS="$LIBNL_CFLAGS $LIBNL_ROUTE3_CFLAGS"
LIBNL_LIBS="$LIBNL_LIBS $LIBNL_ROUTE3_LIBS"
- ], []) ;;
+ ], [:]) ;;
esac
if test "$have_libnl" = no; then
PKG_CHECK_MODULES([LIBNL], [libnl-1 >= $LIBNL_REQUIRED], [
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120913/d880d784/attachment-0001.sig>
More information about the libvir-list
mailing list