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 <[email protected]>
---
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 <[email protected]>

Jano

Attachment: signature.asc
Description: PGP signature

Reply via email to