cmake HAVE_PCAP_OPEN examples

CTSRD-CHERI/cheribsd contrib/tcpdump/CMakeLists.txt :919

check_function_exists(pcap_open HAVE_PCAP_OPEN)