File: config.w32

package info (click to toggle)
php-apcu 5.1.8%2B4.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,860 kB
  • ctags: 2,003
  • sloc: ansic: 12,013; php: 1,699; xml: 644; pascal: 5; makefile: 1
file content (37 lines) | stat: -rw-r--r-- 1,163 bytes parent folder | download | duplicates (5)
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: config.w32 309203 2011-03-14 06:47:16Z pajoye $
// vim:ft=javascript

ARG_ENABLE('apcu', 'Whether to enable APCu support', 'no');
ARG_ENABLE('apcu-debug', 'Whether to enable APCu debugging', 'no');
ARG_ENABLE('apc-bc', 'Whether APCu should provide APC full compatibility support', 'yes');

if(PHP_APCU != 'no')
{
	var apc_sources = 	'apc.c php_apc.c apc_cache.c ' + 
						'apc_iterator.c apc_shm.c apc_lock.c ' + 
						'apc_sma.c apc_stack.c apc_rfc1867.c apc_pool.c ' +
						'apc_bin.c apc_windows_srwlock_kernel.c';

	if(PHP_APCU_DEBUG != 'no')
	{
		ADD_FLAG('CFLAGS_APC', '/D APC_DEBUG=1');
	}
	
	/* XXX srwlock kernel as most BC compatible for now */
	AC_DEFINE('APC_SRWLOCK_KERNEL', 1);
	ADD_FLAG('CFLAGS_APC', '/D WIN32_ONLY_COMPILER=1');

	AC_DEFINE('HAVE_APCU', 1);

    if (PHP_APC_BC != 'no')
	{
	    AC_DEFINE('APC_FULL_BC', 1);
	    MESSAGE("APCu: full APC compatibility is enabled");
	} else {
	    WARNING("APCu: full APC compatibility is NOT enabled");
	}

	PHP_INSTALL_HEADERS("ext/apcu", "apc.h apc_api.h apc_cache_api.h apc_lock_api.h apc_pool_api.h apc_sma_api.h apc_bin_api.h apc_serializer.h");

	EXTENSION('apcu', apc_sources);
}