Return to config.w32 CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / snmp |
1.1 ! misho 1: // $Id: config.w32 294814 2010-02-09 16:38:24Z pajoye $ ! 2: // vim:ft=javascript ! 3: ! 4: ARG_WITH("snmp", "SNMP support", "no"); ! 5: ! 6: if (PHP_SNMP != "no") { ! 7: if (CHECK_HEADER_ADD_INCLUDE("snmp.h", "CFLAGS_SNMP", PHP_PHP_BUILD + "\\include\\net-snmp;" + PHP_SNMP)) { ! 8: if (CHECK_LIB("netsnmp.lib", "snmp", PHP_SNMP)) { ! 9: EXTENSION('snmp', 'snmp.c'); ! 10: CHECK_LIB("libeay32.lib", "snmp", PHP_SNMP) ! 11: AC_DEFINE('HAVE_SNMP', 1); ! 12: AC_DEFINE("HAVE_NET_SNMP", 1); ! 13: } else if (CHECK_LIB("libsnmp.lib", "snmp", PHP_SNMP)) { ! 14: EXTENSION('snmp', 'snmp.c'); ! 15: AC_DEFINE('HAVE_SNMP', 1); ! 16: } else { ! 17: WARNING("snmp not enabled; libraries and headers not found"); ! 18: } ! 19: } else { ! 20: WARNING("snmp not enabled; libraries and headers not found"); ! 21: } ! 22: } ! 23: