|
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 |
| - EXTENSION("redis", "redis.c library.c redis_array_impl.c redis_array.c"); |
9 |
| - AC_DEFINE("HAVE_REDIS", 1); |
10 |
| - ADD_FLAG("CFLAGS_REDIS", ' /D PHP_EXPORTS=1 '); |
11 |
| - |
12 |
| - if (PHP_REDIS_SESSION != "no") { |
13 |
| - ADD_SOURCES(configure_module_dirname, "redis_session.c", "redis"); |
14 |
| - ADD_EXTENSION_DEP("redis", "session"); |
15 |
| - ADD_FLAG("CFLAGS_REDIS", ' /D PHP_SESSION=1 '); |
16 |
| - AC_DEFINE("HAVE_REDIS_SESSION", 1); |
17 |
| - } |
18 |
| - |
19 |
| - if (PHP_REDIS_IGBINARY != "no") { |
20 |
| - if (CHECK_HEADER_ADD_INCLUDE("igbinary.h", "CFLAGS_REDIS", configure_module_dirname + "\\..\\igbinary")) { |
21 |
| - |
22 |
| - ADD_EXTENSION_DEP("redis", "igbinary"); |
23 |
| - AC_DEFINE("HAVE_REDIS_IGBINARY", 1); |
24 |
| - } else { |
25 |
| - WARNING("redis igbinary support not enabled"); |
26 |
| - } |
27 |
| - } |
28 |
| - |
29 |
| - |
30 |
| -} |
31 |
| - |
| 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 | + if (PHP_REDIS_IGBINARY != "no") { |
| 27 | + CHECK_HEADER_ADD_INCLUDE("igbinary.h", "CFLAGS_REDIS", "ext\\igbinary"); |
| 28 | + AC_DEFINE('HAVE_REDIS_IGBINARY', 1); |
| 29 | + ADD_EXTENSION_DEP('redis', 'igbinary'); |
| 30 | + } |
| 31 | + |
| 32 | + EXTENSION("redis", sources); |
| 33 | +} |
| 34 | + |
0 commit comments