]> The Tcpdump Group git mirrors - tcpdump/commit
Clean up configure check for libsmi.
authorGuy Harris <[email protected]>
Sun, 31 Aug 2014 18:57:04 +0000 (11:57 -0700)
committerGuy Harris <[email protected]>
Sun, 31 Aug 2014 20:06:44 +0000 (13:06 -0700)
commit82c66cfa8f093ceede7b461b9fa8e48d6d87f5ad
tree3f50ae27bc4eb9edd57de4b8b2d80290112c6fa8
parent25fdee768b9b6108a1f309511becd56daf3e17f3
Clean up configure check for libsmi.

First, check for smi.h.  If we don't have it, don't check for anything
else.

If we do have it, check for libsmi containing smiInit.  If we don't have
it, don't check for anything else.

If we do have it, check, with our test program, whether we can use it.

If that succeeds, prepend -lsmi to LIBS, and set USE_LIBSMI.  Otherwise,
don't do either of those.

Check, in source, *only* for USE_LIBSMI.  If it's set, use libsmi,
otherwise don't - don't even include smi.h, even if we happened to have
found it, and don't print the libsmi version string.
config.h.in
configure
configure.in
print-snmp.c
tcpdump.c