File: config.w32

package info (click to toggle)
php-memcache 3.0.9~20170802.e702b5f-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,172 kB
  • sloc: ansic: 9,126; php: 1,015; xml: 760; sh: 3; makefile: 1
file content (37 lines) | stat: -rw-r--r-- 1,044 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// $Id$
// vim:ft=javascript

ARG_ENABLE("memcache", "memcache support", "no");

if (PHP_MEMCACHE != "no") {
	if (!PHP_ZLIB_SHARED || CHECK_LIB("zlib_a.lib", "memcache", PHP_MEMCACHE)) {

		var dll = get_define('PHPDLL');
		var old_conf_dir = configure_module_dirname;

		if (dll.match(/^php7/) != null) {
			configure_module_dirname = configure_module_dirname + "\\php7";
		} else if (dll.match(/^php5/) != null) {
			configure_module_dirname = configure_module_dirname + "\\php5";
		} else {
			ERROR("Cannot determine PHP version from:'" + dll + "'");
		}

		EXTENSION("memcache", " \
			memcache.c \
			memcache_ascii_protocol.c \
			memcache_binary_protocol.c \
			memcache_consistent_hash.c \
			memcache_pool.c \
			memcache_queue.c \
			memcache_session.c \
			memcache_standard_hash.c");

		configure_module_dirname = old_conf_dir;

		AC_DEFINE('HAVE_MEMCACHE', 1, 'Have memcache support');
		ADD_FLAG("CFLAGS_MEMCACHE", "/D HAVE_MEMCACHE_SESSION=1");
	} else {
		WARNING("memcache not enabled; libraries and headers not found");
	}
}