| 1 |
// $Id$ |
|---|
| 2 |
// vim:ft=javascript |
|---|
| 3 |
|
|---|
| 4 |
ARG_ENABLE("eaccelerator", "Enable eaccelerator support", "no"); |
|---|
| 5 |
|
|---|
| 6 |
ARG_WITH("eaccelerator-crash-detection", "Include eaccelerator crash detection", "yes"); |
|---|
| 7 |
ARG_WITH("eaccelerator-optimizer", "Include eaccelerator optimizer", "yes"); |
|---|
| 8 |
ARG_WITH("eaccelerator-shared-memory", "Include eaccelerator shared memory functions", "no"); |
|---|
| 9 |
ARG_WITH("eaccelerator-sessions", "Include eaccelerator sessions", "no"); |
|---|
| 10 |
ARG_WITH("eaccelerator-content-caching", "Include eaccelerator content caching", "no"); |
|---|
| 11 |
ARG_WITH("eaccelerator-info", "Compile the eAccelerator information functions", "yes"); |
|---|
| 12 |
ARG_WITH("eaccelerator-disassembler", "Include disassembler", "no"); |
|---|
| 13 |
ARG_WITH("eaccelerator-debug", "Enable the debug code so eaccelerator logs verbosely", "no"); |
|---|
| 14 |
|
|---|
| 15 |
if (PHP_EACCELERATOR != "no") { |
|---|
| 16 |
EXTENSION("eaccelerator", "eaccelerator.c optimize.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); |
|---|
| 17 |
AC_DEFINE("HAVE_EACCELERATOR", 1, "Define if you like to use eAccelerator"); |
|---|
| 18 |
|
|---|
| 19 |
if (PHP_EACCELERATOR_CRASH_DETECTION != "no") { |
|---|
| 20 |
AC_DEFINE("WITH_EACCELERATOR_CRASH_DETECTION", 1, "Define if you like to release eAccelerator resources on PHP crash"); |
|---|
| 21 |
} |
|---|
| 22 |
if (PHP_EACCELERATOR_OPTIMIZER != "no") { |
|---|
| 23 |
AC_DEFINE("WITH_EACCELERATOR_OPTIMIZER", 1, "Define if you like to use peephole opcode optimization"); |
|---|
| 24 |
} |
|---|
| 25 |
if (PHP_EACCELERATOR_SHARED_MEMORY != "no" || PHP_EACCELERATOR_CONTENT_CACHING != "no") { |
|---|
| 26 |
AC_DEFINE("WITH_EACCELERATOR_SHM", 1, "Define if you like to use the eAccelerator functions to store keys in shared memory"); |
|---|
| 27 |
} |
|---|
| 28 |
if (PHP_EACCELERATOR_INFO != "no") { |
|---|
| 29 |
AC_DEFINE("WITH_EACCELERATOR_INFO", 1, "Define if you want the information functions"); |
|---|
| 30 |
} |
|---|
| 31 |
if (PHP_EACCELERATOR_SESSIONS != "no") { |
|---|
| 32 |
AC_DEFINE("WITH_EACCELERATOR_SESSIONS", 1, "Define if you like to use eAccelerator session handlers to store session's information in shared memory"); |
|---|
| 33 |
} |
|---|
| 34 |
if (PHP_EACCELERATOR_CONTENT_CACHING != "no") { |
|---|
| 35 |
AC_DEFINE("WITH_EACCELERATOR_CONTENT_CACHING", 1, "Define if you like to use eAccelerator content cachin API"); |
|---|
| 36 |
} |
|---|
| 37 |
if (PHP_EACCELERATOR_DISASSEMBLER != "no") { |
|---|
| 38 |
AC_DEFINE("WITH_EACCELERATOR_DISASSEMBLER", 1, "Define if you like to explore Zend bytecode"); |
|---|
| 39 |
} |
|---|
| 40 |
if (PHP_EACCELERATOR_DEBUG != "no") { |
|---|
| 41 |
AC_DEFINE("DEBUG", 1, "Undef when you want to enable eaccelerator debug code"); |
|---|
| 42 |
} |
|---|
| 43 |
|
|---|
| 44 |
AC_DEFINE("HAVE_EXT_SESSION_PHP_SESSION_H", 1, "Define if you have the <ext/session/php_session.h> header file."); |
|---|
| 45 |
} |
|---|