From 68de35a6a01e2a1fe732e156b73f800bb672a421 Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Tue, 6 Jun 2017 14:54:43 -0500 Subject: CFLAGS for BIND8 support Some systems (like macOS) require BIND_8_COMPAT to be defined so that the nameser libraries are, well, BIND8 compatible. Change-Id: If79fc27a64f90de1835b5aa3aadfa9be22bd16b0 --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e36f2de6d..c18f12232 100644 --- a/configure.ac +++ b/configure.ac @@ -1333,6 +1333,18 @@ AC_LINK_IFELSE( AC_MSG_RESULT(no) ) +AC_MSG_CHECKING(for BIND_8_COMPAT required) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM( +[[ +#undef BIND_8_COMPAT +#include +]], +[[int x = NXDOMAIN]])], +AC_MSG_RESULT(no), +AC_MSG_RESULT(yes) +[BIND8_CFLAGS=-DBIND_8_COMPAT]) +AC_SUBST(BIND8_CFLAGS) + AST_C_DEFINE_CHECK([GLOB_NOMAGIC], [GLOB_NOMAGIC], [glob.h]) AST_C_DEFINE_CHECK([GLOB_BRACE], [GLOB_BRACE], [glob.h]) -- cgit v1.2.3