diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-08-31 11:57:04 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-08-31 11:57:04 -0700 |
commit | 37a4aa82a953cd13e4a6af0b75ceab287de555a3 (patch) | |
tree | c439763a1681576367e55937363a93c332657c0e /config.h.in | |
parent | 882a7b5776f350e108936064628238888d43bcad (diff) | |
download | tcpdump-37a4aa82a953cd13e4a6af0b75ceab287de555a3.tar.gz |
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.
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/config.h.in b/config.h.in index 2138832f..0342e610 100644 --- a/config.h.in +++ b/config.h.in @@ -61,9 +61,6 @@ /* Define to 1 if you have the `rpc' library (-lrpc). */ #undef HAVE_LIBRPC -/* Define to 1 if you have the `smi' library (-lsmi). */ -#undef HAVE_LIBSMI - /* Define to 1 if you have the <memory.h> header file. */ #undef HAVE_MEMORY_H @@ -169,9 +166,6 @@ /* Define to 1 if you have the `sigset' function. */ #undef HAVE_SIGSET -/* Define to 1 if you have the <smi.h> header file. */ -#undef HAVE_SMI_H - /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF @@ -241,9 +235,6 @@ /* if unaligned access fails */ #undef LBL_ALIGN -/* Define if you enable support for libsmi */ -#undef LIBSMI - /* define if you need to include missing/addrinfo.h */ #undef NEED_ADDRINFO_H @@ -301,6 +292,9 @@ /* define if you have ether_ntohost() and it works */ #undef USE_ETHER_NTOHOST +/* Define if you enable support for libsmi */ +#undef USE_LIBSMI + /* define if should chroot when dropping privileges */ #undef WITH_CHROOT |