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