tools: bpftool: add feature check for zlib
authorPeter Wu <peter@lekensteyn.nl>
Tue, 13 Aug 2019 00:38:33 +0000 (01:38 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 13 Aug 2019 14:22:07 +0000 (16:22 +0200)
commitd66fa3c70e598746a907e5db5ed024035e01817a
treebf25c7003ba841d227aa82a900cb5df944e0694b
parent341dfcf8d78eaa3a2dc96dea06f0392eb2978364
tools: bpftool: add feature check for zlib

bpftool requires libelf, and zlib for decompressing /proc/config.gz.
zlib is a transitive dependency via libelf, and became mandatory since
elfutils 0.165 (Jan 2016). The feature check of libelf is already done
in the elfdep target of tools/lib/bpf/Makefile, pulled in by bpftool via
a dependency on libbpf.a. Add a similar feature check for zlib.

Suggested-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/Makefile