xref: /PHP-7.1/ext/snmp/config.w32 (revision 03f3b847)
1// $Id$
2// vim:ft=javascript
3
4ARG_WITH("snmp", "SNMP support", "no");
5
6if (PHP_SNMP != "no") {
7	if (CHECK_HEADER_ADD_INCLUDE("snmp.h", "CFLAGS_SNMP", PHP_PHP_BUILD + "\\include\\net-snmp;" + PHP_SNMP) &&
8		SETUP_OPENSSL("snmp", PHP_SNMP) > 0) {
9		if (CHECK_LIB("netsnmp.lib", "snmp", PHP_SNMP)) {
10			EXTENSION('snmp', 'snmp.c');
11			AC_DEFINE('HAVE_SNMP', 1);
12			AC_DEFINE("HAVE_NET_SNMP", 1);
13		} else {
14			WARNING("snmp not enabled; libraries and headers not found");
15		}
16	} else {
17		WARNING("snmp not enabled; libraries and headers not found");
18	}
19}
20