aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntop/ntop/ntop_configure_in_net_snmp_config_exist.patch
blob: 269138df93a6a5c0c6c215f3cfee92289fb4ddff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Check net-snmp-config's existence in case user specified the
ac_cv_prog_NETSNMP to avoid HAVE_SNMP defined if the specified
net-snmp-config doesn't exist.

Upstream-Status: Inappropriate [Embedded specific]

Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
---
diff --git a/configure.in b/configure.in
index 6f3e88f..8ddf017 100755
--- a/configure.in
+++ b/configure.in
@@ -1423,7 +1423,7 @@ dnl> NET-SNMP
 dnl>
 if test ".${ac_disable_snmp}" != ".yes"; then
   AC_CHECK_TOOL(NETSNMP, net-snmp-config)
-  if test -n "$NETSNMP"; then
+  if test -n "$NETSNMP" -a -e "$NETSNMP"; then
     AC_DEFINE_UNQUOTED(HAVE_SNMP, 1, [SNMP is supported])
     SNMPLIBS="`$NETSNMP --libs`"
     SNMPLIBS="`echo ${SNMPLIBS}|sed -e s,'-R../lib',,g`"