��չ�� config.w32 �ļ����÷��� config.m4 �ļ����ƣ�������������ԵIJ�ͬ�����ȣ��������� Windows �����ģ���Σ�����ʹ�� JavaScript ��д�ġ����½ڲ������ JavaScript ���Ŀǰ������ Win32 ����̨���ⲿ���Dz������ģ���Ϊ�����ṩ�ķ��� config.m4 �Ľ��������ʵ���ֲ��
Example #1 config.w32 �ļ�����
// $Id$ // vim:ft=javascript
ARG_WITH("example", "for example support", "no"); ARG_ENABLE("example-debug", "for debugging support in example", "no") ARG_WITH("example-extra", "for extra functionality in example", "no") if (PHP_EXAMPLE != "no") { if (CHECK_LIB("libexample.lib", "example", PHP_EXAMPLE) && CHECK_HEADER_ADD_INCLUDE("example.h", "CFLAGS_EXAMPLE", PHP_EXAMPLE + "\\include")) { if (PHP_EXAMPLE_DEBUG != "no") { AC_DEFINE('USE_EXAMPLE_DEBUG', 1, 'Debug support in example'); } if (PHP_EXAMPLE_EXTRA != "no" && CHECK_LIB("libexample-extra.lib", "example", PHP_EXAMPLE) && CHECK_HEADER_ADD_INCLUDE("example-extra.h", "CFLAGS_EXAMPLE", PHP_EXAMPLE + ";" + PHP_PHP_BUILD + "\\include") { AC_DEFINE('HAVE_EXAMPLEEXTRA', 1, 'Extra functionality in example'); HAVE_EXTRA = 1; } else { WARNING( "extra example functionality not enabled, lib not found" ); } EXTENSION("example", "example.c"); if (HAVE_EXTRA == 1) { ADD_SOURCES("example-extra.c"); } } else { WARNING( "example not enabled; libraries not found" ); } }
��Ϊ��ʹ�úܶ��ϵͳ�����ԣ���ǰ�����ص� counter ��չ��һ�������������������Ӹ��� config.w32 �ļ���
Example #2 counter's config.w32 file
// $Id$ // vim:ft=javascript
ARG_ENABLE("counter", "for counter support", "no"); if (PHP_COUNTER != "no") { EXTENSION("counter", "counter.c"); ADD_SOURCE("counter-util.c"); }