mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
build/libmaxmind.m4: fix build with host-pkgconf
Build with maxminddb is broken since version 3.0.5 and
785958f9b5
because libmaxminddb has been removed from MAXMIND_POSSIBLE_LIB_NAMES
So, as suggested by Arnout in #2131, don't use
MAXMIND_POSSIBLE_LIB_NAMES for pkg-config, because it was never called
anything other than libmaxminddb
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
parent
465db29b76
commit
d2b700d7af
@ -60,12 +60,10 @@ else
|
||||
# Nothing about MaxMind was informed, using the pkg-config to figure things out.
|
||||
if test -n "${PKG_CONFIG}"; then
|
||||
MAXMIND_PKG_NAME=""
|
||||
for x in ${MAXMIND_POSSIBLE_LIB_NAMES}; do
|
||||
if ${PKG_CONFIG} --exists ${x}; then
|
||||
MAXMIND_PKG_NAME="$x"
|
||||
if ${PKG_CONFIG} --exists libmaxminddb; then
|
||||
MAXMIND_PKG_NAME="libmaxminddb"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
AC_MSG_NOTICE([Nothing about MaxMind was informed during the configure phase. Trying to detect it on the platform...])
|
||||
if test -n "${MAXMIND_PKG_NAME}"; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user