summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-07-10 21:20:52 -0700
committerGlenn Strauss <gstrauss@gluelogic.com>2020-07-11 01:07:19 -0400
commitfd2a12d6362aad2013ba558537647e46419d7595 (patch)
treeb1c99ae6ed5ad9aee1b9b2eeae5d6219a15079e3
parent04a7d98cb91139d79dd14cbdb0522d3d5898dd12 (diff)
downloadlighttpd-git-fd2a12d6362aad2013ba558537647e46419d7595.tar.gz
[meson] add missing libmaxminddb section
Fixes the following error when building with -Dwith_maxminddb=true: meson.build:916:1: ERROR: Unknown variable "libmaxminddb". A full log can be found at meson-logs/meson-log.txt Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rw-r--r--src/meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/meson.build b/src/meson.build
index d39cf1c0..2191c9bc 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -256,6 +256,14 @@ if get_option('with_fam')
conf_data.set('HAVE_FAM_H', true)
endif
+libmaxminddb = []
+if get_option('with_maxminddb')
+ libmaxminddb = [ compiler.find_library('maxminddb') ]
+ if not(compiler.has_function('MMDB_open', args: defs, dependencies: libmaxminddb, prefix: '#include <maxminddb.h>'))
+ error('Couldn\'t find maxminddb.h or MMDB_open in lib maxminddb')
+ endif
+endif
+
libgeoip = []
if get_option('with_geoip')
libgeoip = dependency('geoip', required: false)