Make libmaxminddb build configurable. (#1154)

This commit is contained in:
Zied Aouini
2021-03-14 10:47:28 +01:00
committed by GitHub
parent efc5630378
commit 7f9a18fd05
+4 -2
View File
@@ -219,13 +219,15 @@ if test "${with_pcre+set}" = set; then :
fi fi
dnl> GeoIP dnl> GeoIP
AC_ARG_WITH(maxminddb, [ --with-maxminddb Enable nDPI build with libmaxminddb])
if test "${with_maxminddb+set}" = set; then :
AC_CHECK_LIB([maxminddb], [MMDB_lookup_sockaddr]) AC_CHECK_LIB([maxminddb], [MMDB_lookup_sockaddr])
AC_HAVE_HEADERS(maxminddb.h) AC_HAVE_HEADERS(maxminddb.h)
if test ".${ac_cv_lib_maxminddb_MMDB_lookup_sockaddr}" = ".yes" && if test ".${ac_cv_lib_maxminddb_MMDB_lookup_sockaddr}" = ".yes" && test ".${ac_cv_header_maxminddb_h}" = ".yes"; then
test ".${ac_cv_header_maxminddb_h}" = ".yes"; then
ADDITIONAL_LIBS="${ADDITIONAL_LIBS} -lmaxminddb" ADDITIONAL_LIBS="${ADDITIONAL_LIBS} -lmaxminddb"
AC_DEFINE_UNQUOTED(HAVE_MAXMINDDB, 1, [MaxMind DB support]) AC_DEFINE_UNQUOTED(HAVE_MAXMINDDB, 1, [MaxMind DB support])
fi fi
fi
dnl> TCP segments management (buffer, sort and reassembly the segments) dnl> TCP segments management (buffer, sort and reassembly the segments)
dnl> FRAG_MAN_ENABLED=1 dnl> FRAG_MAN_ENABLED=1