diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-05-15 21:56:08 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-05-15 21:56:08 +0000 |
commit | 440f6b3f99265d352899fb0afc4749c15c5ae214 (patch) | |
tree | 580a74c9cbbb6f7186b61fb973fc6159ad249ef5 /configure.in | |
parent | 93f6cdfc762aa67484c79152e9fa023c4c9895ed (diff) |
From Thomas Anders: fix --with-net-snmp to let it handle either the
pathname of the Net-SNMP directory or the pathname of the Net-SNMP
configure script as an argument to that option.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10907 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.in b/configure.in index b5982cebf2..7ed72ce9bf 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.261 2004/05/13 22:25:25 jmayer Exp $ +# $Id: configure.in,v 1.262 2004/05/15 21:56:08 guy Exp $ # AC_INIT(etypes.h) @@ -659,8 +659,11 @@ if test "x$netsnmpconfig" != "xno" ; then AC_PATH_PROG(NETSNMPCONFIG,net-snmp-config) else NETSNMPCONFIG=$netsnmpconfig - if test ! -x $NETSNMPCONFIG ; then - AC_MSG_ERROR(Invalid net-snmp-config: $NETSNMPCONFIG) + if test ! -x $NETSNMPCONFIG -o ! -f $NETSNMPCONFIG ; then + NETSNMPCONFIG=$netsnmpconfig/bin/net-snmp-config + if test ! -x $NETSNMPCONFIG -o ! -f $NETSNMPCONFIG ; then + AC_MSG_ERROR(Invalid net-snmp-config: $netsnmpconfig) + fi fi fi else |