| 
1 |  | -// vim: ft=javascript:  | 
2 |  | - | 
3 |  | -ARG_ENABLE("redis", "whether to enable redis support", "yes");  | 
4 |  | -ARG_ENABLE("redis-session", "whether to enable sessions", "yes");  | 
5 |  | - | 
6 |  | -if (PHP_REDIS != "no") {  | 
7 |  | -	var sources = "redis.c library.c igbinary\\igbinary.c igbinary\\hash_si.c igbinary\\hash_function.c";  | 
8 |  | -	if (PHP_REDIS_SESSION != "no") {  | 
9 |  | -		AC_DEFINE('PHP_SESSION', 1);  | 
10 |  | -		sources += " redis_session.c";  | 
11 |  | -	}  | 
12 |  | -	  | 
13 |  | -	AC_DEFINE("PHP_EXPORTS", 1);  | 
14 |  | -	EXTENSION("redis", sources);  | 
15 |  | -}  | 
 | 1 | +// vim: ft=javascript:  | 
 | 2 | + | 
 | 3 | +ARG_ENABLE("redis", "whether to enable redis support", "yes");  | 
 | 4 | +ARG_ENABLE("redis-session", "whether to enable sessions", "yes");  | 
 | 5 | +ARG_ENABLE("redis-igbinary", "whether to enable igbinary serializer support", "no");  | 
 | 6 | + | 
 | 7 | +if (PHP_REDIS != "no") {  | 
 | 8 | +	var sources = "redis.c library.c redis_array.c redis_array_impl.c";  | 
 | 9 | +	if (PHP_REDIS_SESSION != "no") {  | 
 | 10 | +		ADD_SOURCES(configure_module_dirname, "redis_session.c", "redis");  | 
 | 11 | +		ADD_EXTENSION_DEP("redis", "session");  | 
 | 12 | +		ADD_FLAG("CFLAGS_REDIS", ' /D PHP_SESSION=1 ');  | 
 | 13 | +		AC_DEFINE("HAVE_REDIS_SESSION", 1);  | 
 | 14 | +	}  | 
 | 15 | + | 
 | 16 | +	if (PHP_REDIS_IGBINARY != "no") {  | 
 | 17 | +		if (CHECK_HEADER_ADD_INCLUDE("igbinary.h", "CFLAGS_REDIS", configure_module_dirname + "\\..\\igbinary")) {  | 
 | 18 | + | 
 | 19 | +			ADD_EXTENSION_DEP("redis", "igbinary");  | 
 | 20 | +			AC_DEFINE("HAVE_REDIS_IGBINARY", 1);  | 
 | 21 | +		} else {  | 
 | 22 | +			WARNING("redis igbinary support not enabled");  | 
 | 23 | +		}  | 
 | 24 | +	}  | 
 | 25 | + | 
 | 26 | +	EXTENSION("redis", sources);  | 
 | 27 | +}  | 
 | 28 | + | 
0 commit comments