Ethereal-cvs: [Ethereal-cvs] Rev 11745: /trunk/: acinclude.m4

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Mon, 16 Aug 2004 01:11:28 -0000
User: guy
Date: 2004/08/15 08:11 PM

Log:
 For "pcap_findalldevs()", don't assume that just because it's in -lpcap
 it's usable - one of the updates to OS X 10.3 updated libpcap to
 0.8[.x], so that it had "pcap_findalldevs()", but didn't update
 "pcap.h", so it didn't declare "pcap_if_t", so you couldn't actually
 *use* it.  You can work around that by installing the pcap.h (and
 pcap-bpf.h) from the matching tcpdump.org release, but, as even when
 that version of OS X is pre-installed rather than being the result of a
 Software Update, you still don't get the new "pcap.h" (at least I didn't
 get it on my PowerBook with 10.3.4).  Therefore, we check whether a
 program that calls "pcap_findalldevs()" *and* declares a "pcap_if_t *"
 to pass to it can be compiled and linked with -lpcap, and only declare
 HAVE_PCAP_FINDALLDEVS if we can.
 
 Also, don't check for the functions added to libpcap after
 "pcap_findalldevs()" was added unless we have a usable
 "pcap_findalldevs()", as, if not, those functions won't be declared in
 "pcap.h" either, so we'll get compiler warnings.

Directory: /trunk/
  Changes    Path            Action
  +51 -3     acinclude.m4    Modified



http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=11745&view=rev