Changeset d47ca18 for configure.in


Ignore:
Timestamp:
06/21/17 15:41:47 (4 years ago)
Author:
Richard Sanger <rsanger@…>
Branches:
cachetimestamps, develop, dpdk-ndag, etsilive, master, ndag_format, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
Children:
e9c089a
Parents:
f398c61
Message:

Fix issue #49 compile issues when missing BPF header file

If pcap was installed but somehow the BPF header was missing.
Libtrace was using two different macros HAVE_BPF and HAVE_BPF_FILTER
to determine if BPF was installed.

HAVE_BPF_FILTER was set if pcap was found, wereas HAVE_BPF was
set if the BPF header was found.

This removes and replaces HAVE_BPF_FILTER with HAVE_BPF.
It also adds ifdef blocks around formats that try to install
BPF filters directly as needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    rd759ee1 rd47ca18  
    250250        LIBTRACE_LIBS="$LIBTRACE_LIBS -lpcap"
    251251        AC_DEFINE([HAVE_LIBPCAP],1,[compile with libpcap support])
    252         AC_DEFINE([HAVE_BPF_FILTER],1,[compile with bpf filter support])
    253252
    254253        LIBS="-lpcap"
Note: See TracChangeset for help on using the changeset viewer.