netsnmp: use the autoconf built by Buildroot
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 24 Feb 2010 07:59:34 +0000 (08:59 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 24 Feb 2010 21:45:28 +0000 (22:45 +0100)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/netsnmp/netsnmp.mk

index cfe99059691330a1cc5a377be5a7ab1424f44838..c589e255f87156410ab7e1d5be5dd2d15fa656be 100644 (file)
@@ -58,7 +58,7 @@ endif
 
 $(NETSNMP_DIR)/.configured: $(NETSNMP_DIR)/.unpacked
        (cd $(NETSNMP_DIR); rm -f config.cache; \
-               autoconf && \
+               $(AUTOCONF) && \
                ac_cv_NETSNMP_CAN_USE_SYSCTL=yes \
                $(NETSNMP_CONFIGURE_PERL_ENV) \
                $(TARGET_CONFIGURE_OPTS) \
@@ -130,7 +130,7 @@ endif
        $(INSTALL) -D -m 0644 $(NETSNMP_DIR)/agent/mibgroup/header_complex.h $(STAGING_DIR)/usr/include/net-snmp/agent/header_complex.h
        $(INSTALL) -D -m 0755 package/netsnmp/S59snmpd $(TARGET_DIR)/etc/init.d/S59snmpd
 
-netsnmp: $(if $(BR2_PACKAGE_OPENSSL),openssl) $(TARGET_DIR)/usr/sbin/snmpd
+netsnmp: host-autoconf $(if $(BR2_PACKAGE_OPENSSL),openssl) $(TARGET_DIR)/usr/sbin/snmpd
 
 netsnmp-headers: $(TARGET_DIR)/usr/include/net-snmp/net-snmp-config.h
        $(INSTALL) -d $(TARGET_DIR)/usr/include/net-snmp