diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-01-21 19:46:03 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-01-21 19:46:03 -0800 |
commit | a7b0e673febec04e75bbf2075d6648aa7020ac2e (patch) | |
tree | 315e3e809c7f02612d19e811560a1ac0b92df7a6 /configure.ac | |
parent | 2a3509a466d10d68dc6442187f7bf9372acef77a (diff) | |
download | tcpdump-a7b0e673febec04e75bbf2075d6648aa7020ac2e.tar.gz |
Do more substitution for missing libpcap functions.
Clean up some comments while we're at it.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 579c5df2..f33f2da6 100644 --- a/configure.ac +++ b/configure.ac @@ -567,8 +567,13 @@ don't.]) fi dnl -dnl Check for "pcap_list_datalinks()" and use a substitute version -dnl if it's not present. +dnl Check for "pcap_list_datalinks()" and use a substitute version if +dnl it's not present. If it is present, check for "pcap_free_datalinks()"; +dnl if it's not present, we don't replace it for now. (We could do so +dnl on UN*X, but not on Windows, where hilarity ensues if a program +dnl built with one version of the MSVC support library tries to free +dnl something allocated by a library built with another version of +dnl the MSVC support library.) dnl AC_CHECK_FUNC(pcap_list_datalinks, [ @@ -581,8 +586,10 @@ AC_CHECK_FUNC(pcap_list_datalinks, ]) dnl -dnl Check for "pcap_datalink_name_to_val()", and use a substitute version -dnl if it's not present. +dnl Check for "pcap_datalink_name_to_val()", and use a substitute +dnl version if it's not present. If it is present, check for +dnl "pcap_datalink_val_to_description()", and if we don't have it, +dnl use a substitute version. dnl AC_CHECK_FUNC(pcap_datalink_name_to_val, [ |