configure: Fix PCAP_LIBS without pcap-config

Also remove XXX comment (answer: no, using package flags is preferable).

Change-Id: I05e7c0a40db9f1e1931b0fc585fed49cd7409526
Reviewed-on: https://code.wireshark.org/review/23901
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
João Valverde 2017-10-14 19:07:10 +01:00 committed by Guy Harris
parent 2ecc51f28f
commit c4fbd43ade
1 changed files with 3 additions and 3 deletions

View File

@ -200,9 +200,9 @@ AC_DEFUN([AC_WIRESHARK_PCAP_CHECK],
# "$prefix/include/pcap", in case $prefix is set to
# "/usr/include" or "/usr/local/include".
#
# XXX - should we just add "$prefix/include" to the include
# search path and "$prefix/lib" to the library search path?
#
PCAP_CFLAGS=""
PCAP_LIBS="-lpcap"
AC_MSG_CHECKING(for extraneous pcap header directories)
found_pcap_dir=""
pcap_dir_list="/usr/local/include/pcap /usr/include/pcap $prefix/include/pcap $prefix/include"