xref: /PHP-5.4/sapi/nsapi/config.w32 (revision afc56303)
1// vim:ft=javascript
2// $Id$
3
4ARG_ENABLE('nsapi', 'Build NSAPI for Netscape/iPlanet/SunONE webservers', 'no');
5
6ARG_WITH('nsapi-includes', 'Where to find NSAPI headers', null);
7ARG_WITH('nsapi-libs', 'Where to find NSAPI libraries', null);
8
9if (PHP_NSAPI != "no") {
10	if (PHP_ZTS == "no") {
11		WARNING("NSAPI module requires an --enable-zts build of PHP");
12		PHP_NSAPI = "no"
13	} else if (CHECK_HEADER_ADD_INCLUDE("nsapi.h", "CFLAGS_NSAPI",
14			PHP_NSAPI + ';' + PHP_NSAPI_INCLUDES) &&
15			CHECK_LIB("ns-httpd*.lib", "nsapi", PHP_NSAPI + ";" + PHP_NSAPI_LIBS)) {
16		SAPI('nsapi', 'nsapi.c', 'php' + PHP_VERSION + 'nsapi.dll', '/D XP_WIN32 ');
17	} else {
18		WARNING("Could not find NSAPI headers/libraries");
19	}
20}
21