diff --git a/configure.ac.in b/configure.ac.in index a649380dc3ad..c2302f18180e 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -348,16 +348,16 @@ if test -d "pro"; then : AC_MSG_RESULT(yes) PRO_OBJECTS='$(patsubst pro/%.cpp, pro/%.o, $(wildcard pro/*.cpp)) $(patsubst pro/flow_checks/%.cpp, pro/flow_checks/%.o, $(wildcard pro/flow_checks/*.cpp)) $(patsubst pro/host_checks/%.cpp, pro/host_checks/%.o, $(wildcard pro/host_checks/*.cpp))' -if test "${with_nedge+set}" != set; then - if test $SYSTEM = "FreeBSD" || test $SYSTEM = "Darwin" || test $MACHINE = "armv7l" || test $MACHINE = "aarch64"; then - if test -d "../PF_RING"; then - cd ../PF_RING/userland/; ./configure; cd ./nbpf; ${MAKE}; cd ${HERE} - LIBS="${LIBS} -L../PF_RING/userland/nbpf -lnbpf" - else - echo "Missing ../PF_RING: please fetch PF_RING code from https://github.com/ntop/PF_RING and try again" - exit - fi - fi +AC_MSG_CHECKING([PF_RING nBPF]) +NBPF_HOME=${PWD}/../PF_RING/userland/nbpf +LIBNBPF=${NBPF_HOME}/libnbpf.a +if test -f ${LIBNBPF}; then : + LIBS="${LIBS} ${LIBNBPF}" + CFLAGS="${CFLAGS} -I${NBPF_HOME}" + AC_DEFINE_UNQUOTED(HAVE_NBPF, "1", [PF_RING nBPF is present]) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) fi CFLAGS="${CFLAGS} -I../PF_RING/userland/nbpf"