| 1 | // $Id$ |
|---|
| 2 | // vim:ft=javascript |
|---|
| 3 |
|
|---|
| 4 | ARG_ENABLE("eaccelerator", "Enable eaccelerator support", "no");
|
|---|
| 5 | ARG_ENABLE("eloader", "Enable eloader support", "no");
|
|---|
| 6 |
|
|---|
| 7 | ARG_WITH("eaccelerator-crash-detection", "Include eaccelerator crash detection", "yes");
|
|---|
| 8 | ARG_WITH("eaccelerator-optimizer", "Include eaccelerator optimizer", "yes");
|
|---|
| 9 | ARG_WITH("eaccelerator-encoder", "Include eaccelerator encoder", "yes");
|
|---|
| 10 | ARG_WITH("eaccelerator-loader", "Include eaccelerator loader", "yes");
|
|---|
| 11 | ARG_WITH("eaccelerator-shared-memory", "Include eaccelerator shared memory functions", "no");
|
|---|
| 12 | ARG_WITH("eaccelerator-sessions", "Include eaccelerator sessions", "no");
|
|---|
| 13 | ARG_WITH("eaccelerator-content-caching", "Include eaccelerator content caching", "no");
|
|---|
| 14 | ARG_WITH("eaccelerator-info", "Compile the eAccelerator information functions", "yes");
|
|---|
| 15 | ARG_WITH("eaccelerator-disassembler", "Include disassembler", "no");
|
|---|
| 16 | ARG_WITH("eaccelerator-debug", "Enable the debug code so eaccelerator logs verbosely", "no");
|
|---|
| 17 |
|
|---|
| 18 | if (PHP_EACCELERATOR != "no" && PHP_ELOADER != "no") {
|
|---|
| 19 | ERROR("You can't enable eaccelerator and eloader support at the same time.");
|
|---|
| 20 | }
|
|---|
| 21 |
|
|---|
| 22 | if (PHP_EACCELERATOR != "no") {
|
|---|
| 23 | EXTENSION("eaccelerator", "eaccelerator.c optimize.c encoder.c loader.c opcodes.c content.c mm.c session.c shm.c debug.c cache.c ea_restore.c ea_store.c ea_info.c ea_dasm.c", PHP_EACCELERATOR_SHARED);
|
|---|
| 24 | AC_DEFINE("HAVE_EACCELERATOR", 1, "Define if you like to use eAccelerator");
|
|---|
| 25 |
|
|---|
| 26 | if (PHP_EACCELERATOR_CRASH_DETECTION != "no") {
|
|---|
| 27 | AC_DEFINE("WITH_EACCELERATOR_CRASH_DETECTION", 1, "Define if you like to release eAccelerator resources on PHP crash");
|
|---|
| 28 | }
|
|---|
| 29 | if (PHP_EACCELERATOR_OPTIMIZER != "no") {
|
|---|
| 30 | AC_DEFINE("WITH_EACCELERATOR_OPTIMIZER", 1, "Define if you like to use peephole opcode optimization");
|
|---|
| 31 | }
|
|---|
| 32 | if (PHP_EACCELERATOR_ENCODER != "no") {
|
|---|
| 33 | AC_DEFINE("WITH_EACCELERATOR_ENCODER", 1, "Define if you like to use eAccelerator enoder");
|
|---|
| 34 | }
|
|---|
| 35 | if (PHP_EACCELERATOR_LOADER != "no" && PHP_ELOADER == "no") {
|
|---|
| 36 | AC_DEFINE("WITH_EACCELERATOR_LOADER", 1, "Define if you like to load files encoded by eAccelerator encoder");
|
|---|
| 37 | }
|
|---|
| 38 | if (PHP_EACCELERATOR_SHARED_MEMORY != "no" || PHP_EACCELERATOR_CONTENT_CACHING != "no") {
|
|---|
| 39 | AC_DEFINE("WITH_EACCELERATOR_SHM", 1, "Define if you like to use the eAccelerator functions to store keys in shared memory");
|
|---|
| 40 | }
|
|---|
| 41 | if (PHP_EACCELERATOR_INFO != "no") {
|
|---|
| 42 | AC_DEFINE("WITH_EACCELERATOR_INFO", 1, "Define if you want the information functions");
|
|---|
| 43 | }
|
|---|
| 44 | if (PHP_EACCELERATOR_SESSIONS != "no") {
|
|---|
| 45 | AC_DEFINE("WITH_EACCELERATOR_SESSIONS", 1, "Define if you like to use eAccelerator session handlers to store session's information in shared memory");
|
|---|
| 46 | }
|
|---|
| 47 | if (PHP_EACCELERATOR_CONTENT_CACHING != "no") {
|
|---|
| 48 | AC_DEFINE("WITH_EACCELERATOR_CONTENT_CACHING", 1, "Define if you like to use eAccelerator content cachin API");
|
|---|
| 49 | }
|
|---|
| 50 | if (PHP_EACCELERATOR_DISASSEMBLER != "no") {
|
|---|
| 51 | AC_DEFINE("WITH_EACCELERATOR_DISASSEMBLER", 1, "Define if you like to explore Zend bytecode");
|
|---|
| 52 | }
|
|---|
| 53 | if (PHP_EACCELERATOR_DEBUG != "no") {
|
|---|
| 54 | AC_DEFINE("DEBUG", 1, "Undef when you want to enable eaccelerator debug code");
|
|---|
| 55 | }
|
|---|
| 56 |
|
|---|
| 57 | AC_DEFINE("HAVE_EXT_SESSION_PHP_SESSION_H", 1, "Define if you have the <ext/session/php_session.h> header file.");
|
|---|
| 58 | }
|
|---|
| 59 |
|
|---|
| 60 | if (PHP_ELOADER != "no") {
|
|---|
| 61 | EXTENSION("eloader", "loader.c opcodes.c ea_restore.c", PHP_ELOADER_SHARED, "/D HAVE_EACCELERATOR_STANDALONE_LOADER");
|
|---|
| 62 | AC_DEFINE("HAVE_EACCELERATOR", 1, "Define if you like to use eAccelerator");
|
|---|
| 63 |
|
|---|
| 64 | AC_DEFINE("WITH_EACCELERATOR_LOADER", 1, "Define if you like to load files encoded by eAccelerator encoder");
|
|---|
| 65 | }
|
|---|