Hello,
this patch may be useful for cross-compilation when someone may wants to
run target system's net-snmp-config instead of the native (host) one.
Dmitry
diff -ur openhpi-2.14.1/acinclude.m4 openhpi-2.14.1/acinclude.m4
--- openhpi-2.14.1/acinclude.m4 2009-11-23 23:19:38.000000000 +0300
+++ openhpi-2.14.1/acinclude.m4 2010-09-22 12:46:36.203497121 +0400
@@ -162,8 +162,8 @@
],
[
have_netsnmp=yes
- SNMPFLAGS=`net-snmp-config --cflags | perl -p -e 's/-O\S*//g'`
- SNMPLIBS=`net-snmp-config --libs`
+ SNMPFLAGS=`${net_snmp_config:-net-snmp-config} --cflags | perl -p -e
's/-O\S*//g'`
+ SNMPLIBS=`${net_snmp_config:-net-snmp-config} --libs`
AC_MSG_RESULT(yes)
],
[AC_MSG_RESULT(no. No SNMP based plugins can be built!)])
diff -ur openhpi-2.14.1/configure.ac openhpi-2.14.1/configure.ac
--- openhpi-2.14.1/configure.ac 2009-11-23 23:19:38.000000000 +0300
+++ openhpi-2.14.1/configure.ac 2010-09-22 15:00:04.626137722 +0400
@@ -148,6 +148,10 @@
AC_CHECK_LIB([sysfs], [sysfs_get_mnt_path], [have_sysfs=yes])
AC_CHECK_HEADER([sysfs/libsysfs.h], [], [have_sysfs=no])
+AC_ARG_WITH(net-snmp-config,
+ [[ --with-net-snmp-config=SCRIPT run SCRIPT as net-snmp-config]],
+ [net_snmp_config=$withval])
+
OH_CHECK_NETSNMP
AC_CHECK_LIB([uuid], [uuid_generate], [have_uuid=yes], [
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel