Ethereal-users: Re: [ethereal-users] ./configure problem -- Header file net/bpf.h not found

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

From: Gilbert Ramirez <gram@xxxxxxxxxx>
Date: Thu, 12 Aug 1999 00:40:42 -0500
On Thu, Aug 12, 1999 at 12:13:49AM -0500, Jerry Talkington wrote:
> 
> 
> Err, I should have tested out my other theory first.  You can also
> configure ethereal by using the following command:
> 
> INCLUDE=$INCLUDE:/usr/include/pcap ./configure
> 
> and it should compile fine.

That should not be necessary. I'm using the standard RedHat 6.0 installation
and configure finds the net/bpf.h file just fine. Inside ethereal's
acinclude.m4 file the routine we use to check for pcap header files
checks for these non-standard directories:

AC_DEFUN(AC_ETHEREAL_PCAP_CHECK,
[
        # Evidently, some systems have pcap.h, etc. in */include/pcap
        AC_MSG_CHECKING(for extraneous pcap header directories)
        found_pcap_dir=""
        for pcap_dir in /usr/include/pcap /usr/local/include/pcap
.....

When it finds the directory, it adds the directory to CFLAGS, so that
when we check for pcap.h and net/bpf.h, they should be found.

I think something else is misconfigured on the particular machine.

--gilbert