build: force libnl1 if netcf also used libnl1
build: force libnl1 if netcf also used libnl1

Recent spec file changes ensure that in distro situations, netcf
and libvirt will link against the same libnl in order to avoid
dumping core.  But for every-day development, if you use F17 and
have the libnl3-devel headers available, libvirt was blindly
linking against libnl3 even though F17 netcf still links against
libnl1, making testing a self-built binary on F17 impossible.

By making configure a little bit smarter, we can avoid this
situation - we merely skip the probe of libnl-3 if we can prove
that netcf is still using libnl-1.  I intentionally wrote the
test so that we still favor libnl-3 if netcf is not installed or
if we couldn't use ldd to determine things.

Defaults being what they are, someone will invariably complain
that our smarts were wrong.  Never fear - in that case, just run
./configure LIBNL_CFLAGS=..., where the fact that you set
LIBNL_CFLAGS (even to the empty string) will go back to probing
for libnl-3, regardless of netcf's choice.

* configure.ac (LIBNL): Don't probe libnl3 if netcf doesn't use it.

jeckersb/libvirt,emaste/libvirt,jardasgit/libvirt,bjzhang/libvirt,novel/fbsd-libvirt,iam-TJ/libvirt,jeckersb/libvirt,warewolf/libvirt,zhlcindy/libvirt-1.1.4-maintain,nertpinx/libvirt,crobinso/libvirt,nertpinx/libvirt,andreabolognani/libvirt,siboulet/libvirt-openvz,olafhering/libvirt,agx/libvirt,trainstack/libvirt,VenkatDatta/libvirt,eskultety/libvirt,libvirt/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,emaste/libvirt,siboulet/libvirt-openvz,iam-TJ/libvirt,jeckersb/libvirt,jeckersb/libvirt,siboulet/libvirt-openvz,olafhering/libvirt,agx/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,eskultety/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,emaste/libvirt,olafhering/libvirt,datto/libvirt,taget/libvirt,rlaager/libvirt,datto/libvirt,rlaager/libvirt,zippy2/libvirt,novel/fbsd-libvirt,elmarco/libvirt,cbosdo/libvirt,warewolf/libvirt,taget/libvirt,zhlcindy/libvirt-1.1.4-maintain,libvirt/libvirt,iam-TJ/libvirt,datto/libvirt,andreabolognani/libvirt,trainstack/libvirt,VenkatDatta/libvirt,rlaager/libvirt,rlaager/libvirt,olafhering/libvirt,novel/fbsd-libvirt,trainstack/libvirt,crobinso/libvirt,novel/fbsd-libvirt,cbosdo/libvirt,cbosdo/libvirt,trainstack/libvirt,bjzhang/libvirt,iam-TJ/libvirt,andreabolognani/libvirt,taget/libvirt,agx/libvirt,libvirt/libvirt,iam-TJ/libvirt,eskultety/libvirt,trainstack/libvirt,novel/fbsd-libvirt,fabianfreyer/libvirt,shugaoye/libvirt,warewolf/libvirt,bjzhang/libvirt,emaste/libvirt,taget/libvirt,andreabolognani/libvirt,jardasgit/libvirt,jardasgit/libvirt,emaste/libvirt,warewolf/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,jeckersb/libvirt,cbosdo/libvirt,trainstack/libvirt,jardasgit/libvirt,rlaager/libvirt,datto/libvirt,crobinso/libvirt,iam-TJ/libvirt,agx/libvirt,shugaoye/libvirt,jeckersb/libvirt,trainstack/libvirt,andreabolognani/libvirt,warewolf/libvirt,datto/libvirt,fabianfreyer/libvirt,elmarco/libvirt,jeckersb/libvirt,bjzhang/libvirt,iam-TJ/libvirt,eskultety/libvirt,bjzhang/libvirt,elmarco/libvirt,taget/libvirt,shugaoye/libvirt,siboulet/libvirt-openvz,zhlcindy/libvirt-1.1.4-maintain,jfehlig/libvirt,zhlcindy/libvirt-1.1.4-maintain,jfehlig/libvirt,novel/fbsd-libvirt,nertpinx/libvirt,warewolf/libvirt,cbosdo/libvirt,crobinso/libvirt,novel/fbsd-libvirt,jardasgit/libvirt,agx/libvirt,eskultety/libvirt,emaste/libvirt,nertpinx/libvirt,jfehlig/libvirt,libvirt/libvirt,emaste/libvirt,elmarco/libvirt,jfehlig/libvirt,shugaoye/libvirt,siboulet/libvirt-openvz,novel/fbsd-libvirt,zippy2/libvirt,zippy2/libvirt,warewolf/libvirt,zippy2/libvirt,novel/fbsd-libvirt