mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

- Asynchronous DNS resolver support assumed by default - HAVE_ASYNC_DNS, HAVE_NB_DNS, and USE_NB_DNS preprocessor definitions removed - In the process, I added FindBIND and CheckNameserCompat CMake modules
21 lines
672 B
CMake
21 lines
672 B
CMake
include(CheckCSourcecompiles)
|
|
|
|
# Check whether the namser compatibility header is required
|
|
# This can be the case on the Darwin platform
|
|
|
|
check_c_source_compiles("
|
|
#include <arpa/nameser.h>
|
|
int main() { HEADER *hdr; int d = NS_IN6ADDRSZ; return 0; }"
|
|
have_nameser_header)
|
|
|
|
if (NOT have_nameser_header)
|
|
check_c_source_compiles("
|
|
#include <arpa/nameser.h>
|
|
#include <arpa/nameser_compat.h>
|
|
int main() { HEADER *hdr; int d = NS_IN6ADDRSZ; return 0; }"
|
|
NEED_NAMESER_COMPAT_H)
|
|
if (NOT NEED_NAMESER_COMPAT_H)
|
|
message(FATAL_ERROR
|
|
"Asynchronous DNS support compatibility check failed.")
|
|
endif ()
|
|
endif ()
|