1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:14:46 +02:00

Don't build libmaxminddb by default, and fail when it's enabled but not present

This commit is contained in:
k4be
2021-11-06 19:11:57 +01:00
parent c4a64f4aab
commit f665206c4f
2 changed files with 51 additions and 40 deletions
+2 -5
View File
@@ -391,17 +391,14 @@ AC_DEFUN([CHECK_LIBMAXMINDDB],
AC_ARG_ENABLE(libmaxminddb,
[AC_HELP_STRING([--enable-libmaxminddb=no/yes],[enable GeoIP libmaxminddb support])],
[enable_libmaxminddb=$enableval],
[enable_libmaxminddb=yes])
[enable_libmaxminddb=no])
AS_IF([test "x$enable_libmaxminddb" = "xyes"],
[
dnl see if the system provides it
has_system_libmaxminddb="no"
PKG_CHECK_MODULES([LIBMAXMINDDB], [libmaxminddb >= 1.6.0],
[has_system_libmaxminddb=yes],
[has_system_libmaxminddb=no
AC_MSG_RESULT(not building libmaxminddb GeoIP support)
])
[has_system_libmaxminddb=yes])
AS_IF([test "x$has_system_libmaxminddb" = "xyes"],
[