Skip to content

Commit e56f53b

Browse files
authored
Merge pull request #2596 from ffontaine/v3/master
build/libmaxmind.m4: fix build with host-pkgconf
2 parents 07514f9 + d2b700d commit e56f53b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Diff for: build/libmaxmind.m4

+4-6
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)