diff options
author | Andrea Claudi <aclaudi@redhat.com> | 2022-03-16 19:52:13 +0100 |
---|---|---|
committer | David Ahern <dsahern@kernel.org> | 2022-03-23 21:24:18 -0600 |
commit | 1ee309a49aa071c247d1fecb2b4d736284a714fc (patch) | |
tree | e7a70cca3bbe81faaf5ee84b66f2853339bb7e2e | |
parent | 418481002fdc76a3b7caa17dc21b94cf1c4ff1c1 (diff) | |
download | iproute2-1ee309a49aa071c247d1fecb2b4d736284a714fc.tar.gz |
configure: add check_libtirpc()
This patch adds a configure function to check if libtirpc is installed
on the build system. If this is the case, it makes iproute2 to compile
with libtirpc support.
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
-rwxr-xr-x | configure | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -395,6 +395,19 @@ check_selinux() fi } +check_tirpc() +{ + if ${PKG_CONFIG} libtirpc --exists; then + echo "HAVE_RPC:=y" >>$CONFIG + echo "yes" + + echo 'LDLIBS +=' `${PKG_CONFIG} --libs libtirpc` >>$CONFIG + echo 'CFLAGS += -DHAVE_RPC' `${PKG_CONFIG} --cflags libtirpc` >>$CONFIG + else + echo "no" + fi +} + check_mnl() { if ${PKG_CONFIG} libmnl --exists; then @@ -600,6 +613,9 @@ check_name_to_handle_at echo -n "SELinux support: " check_selinux +echo -n "libtirpc support: " +check_tirpc + echo -n "libbpf support: " check_libbpf |