]> git.ipfire.org Git - thirdparty/libvirt.git/commit
m4: virt-xdr: rewrite XDR check
authorPavel Hrdina <phrdina@redhat.com>
Thu, 18 Jun 2020 22:44:07 +0000 (00:44 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 10 Jul 2020 14:07:02 +0000 (16:07 +0200)
commitd7147b3797380de2d159ce6324536f3e1f2d97e3
tree0e2a2eaaeee4a7a27dd46e61b30f363bc1f3e004
parentd3a1a3d708701a31078da5d68f50c268f52123e5
m4: virt-xdr: rewrite XDR check

The current code to check XDR support was obsolete and way to
complicated.

On linux we can use pkg-config to check for libtirpc and have
the CFLAGS and LIBS configured by it as well.

On MinGW there is portablexdr library which installs header files
directly into system include directory.

On FreeBSD and macOS XDR functions are part of libc so there is
no library needed, we just need to call AM_CONDITIONAL to silence
configure which otherwise complains about missing WITH_XDR.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
libvirt.spec.in
m4/virt-xdr.m4
src/Makefile.am
src/admin/Makefile.inc.am
src/locking/Makefile.inc.am
src/logging/Makefile.inc.am
src/remote/Makefile.inc.am