Skip to content

Commit

Permalink
ndpi: fix configure
Browse files Browse the repository at this point in the history
To enable ndpi, --enable-ndpi and --with-ndpi=<DIR> must be provided.
  • Loading branch information
jasonish committed Nov 14, 2024
1 parent 2fbb4f6 commit 0240d20
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2319,9 +2319,24 @@ fi
[ --with-ndpi=<path> path to nDPI source tree.],
[NDPI_HOME="$withval"])

if ! test -z "${NDPI_HOME}" = "yes"; then
# Require --with-ndpi to be provided with an argument.
AS_IF([test "x$NDPI_HOME" = "xyes"], [
AC_MSG_ERROR([--with-ndpi requires a path])
exit 1
])

AS_IF([test "x$enable_dpi" = "xyes"], [
if test "x$enable_shared" = "xno"; then
echo
echo " ERROR! ndpi cannot be enabled with --disable-shared"
echo
exit 1
fi
])

if test "x$enable_ndpi" = "xyes"; then
AC_MSG_CHECKING(for nDPI source)
if test ! -z "$NDPI_HOME" ; then :
if test "x$NDPI_HOME" != "x"; then
AC_MSG_RESULT(found in $NDPI_HOME)
NDPI_LIB=$NDPI_HOME/src/lib/libndpi.a
AC_MSG_CHECKING(for $NDPI_LIB)
Expand Down

0 comments on commit 0240d20

Please sign in to comment.