aboutsummaryrefslogtreecommitdiff
path: root/vendor/maxmind-db/reader/ext/config.w32
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2023-05-24 21:18:39 -0500
committerChristian Cleberg <hello@cleberg.net>2023-05-24 21:18:39 -0500
commitb3286eb015079950554508e0724fd5f12c71833f (patch)
tree8ac93accb2465c0b3dc34e78686beeac879eaf68 /vendor/maxmind-db/reader/ext/config.w32
parent864f1349e47f924bcde20c1cc83d838b5c5c7316 (diff)
downloadifconfig.php-b3286eb015079950554508e0724fd5f12c71833f.tar.gz
ifconfig.php-b3286eb015079950554508e0724fd5f12c71833f.tar.bz2
ifconfig.php-b3286eb015079950554508e0724fd5f12c71833f.zip
add geolocation functionality
Diffstat (limited to 'vendor/maxmind-db/reader/ext/config.w32')
-rw-r--r--vendor/maxmind-db/reader/ext/config.w3210
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/maxmind-db/reader/ext/config.w32 b/vendor/maxmind-db/reader/ext/config.w32
new file mode 100644
index 0000000..4eb18f8
--- /dev/null
+++ b/vendor/maxmind-db/reader/ext/config.w32
@@ -0,0 +1,10 @@
+ARG_WITH("maxminddb", "Enable MaxMind DB Reader extension support", "no");
+
+if (PHP_MAXMINDDB == "yes") {
+ if (CHECK_HEADER_ADD_INCLUDE("maxminddb.h", "CFLAGS_MAXMINDDB", PHP_MAXMINDDB + ";" + PHP_PHP_BUILD + "\\include\\maxminddb") &&
+ CHECK_LIB("libmaxminddb.lib", "maxminddb", PHP_MAXMINDDB)) {
+ EXTENSION("maxminddb", "maxminddb.c");
+ } else {
+ WARNING('Could not find maxminddb.h or libmaxminddb.lib; skipping');
+ }
+}