mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
configure: Add variable to force submodule
Also don't call removed check for perf_buffer__consume() when using system libbpf. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
This commit is contained in:
4
configure
vendored
4
configure
vendored
@@ -87,7 +87,7 @@ check_libbpf()
|
||||
{
|
||||
local libbpf_err
|
||||
|
||||
if ${PKG_CONFIG} libbpf --exists || [ -n "$LIBBPF_DIR" ]; then
|
||||
if [ "${FORCE_SUBMODULE_LIBBPF:-0}" -ne "1" ] && ${PKG_CONFIG} libbpf --exists || [ -n "$LIBBPF_DIR" ]; then
|
||||
|
||||
if [ -n "$LIBBPF_DIR" ]; then
|
||||
LIBBPF_CFLAGS="-I${LIBBPF_DIR}/include -L${LIBBPF_DIR}/lib"
|
||||
@@ -119,8 +119,6 @@ EOF
|
||||
echo 'OBJECT_LIBBPF = ' >>$CONFIG
|
||||
echo system
|
||||
|
||||
echo -n "perf_buffer__consume support: "
|
||||
check_perf_consume
|
||||
return 0
|
||||
fi
|
||||
else
|
||||
|
Reference in New Issue
Block a user