Skip to content

Commit d2b700d

Browse files
committed
build/libmaxmind.m4: fix build with host-pkgconf
Build with maxminddb is broken since version 3.0.5 and 785958f 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>
1 parent 465db29 commit d2b700d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

build/libmaxmind.m4

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,10 @@ else
6060
# Nothing about MaxMind was informed, using the pkg-config to figure things out.
6161
if test -n "${PKG_CONFIG}"; then
6262
MAXMIND_PKG_NAME=""
63-
for x in ${MAXMIND_POSSIBLE_LIB_NAMES}; do
64-
if ${PKG_CONFIG} --exists ${x}; then
65-
MAXMIND_PKG_NAME="$x"
66-
break
67-
fi
68-
done
63+
if ${PKG_CONFIG} --exists libmaxminddb; then
64+
MAXMIND_PKG_NAME="libmaxminddb"
65+
break
66+
fi
6967
fi
7068
AC_MSG_NOTICE([Nothing about MaxMind was informed during the configure phase. Trying to detect it on the platform...])
7169
if test -n "${MAXMIND_PKG_NAME}"; then

0 commit comments

Comments
 (0)