[libvirt PATCH 16/31] m4: virt-xdr: rewrite XDR check

Ján Tomko jtomko at redhat.com
Thu Jul 9 15:05:32 UTC 2020


On a Thursday in 2020, Pavel Hrdina wrote:
>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 at redhat.com>
>---
> m4/virt-xdr.m4              | 39 +++++++++++--------------------------
> src/Makefile.am             |  4 +++-
> src/admin/Makefile.inc.am   |  1 +
> src/locking/Makefile.inc.am |  2 ++
> src/logging/Makefile.inc.am |  1 +
> src/remote/Makefile.inc.am  |  1 +
> 6 files changed, 19 insertions(+), 29 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200709/c4a153d0/attachment-0001.sig>


More information about the libvir-list mailing list