mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 03:02:15 +00:00
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
This commit is contained in:
committed by
George Joseph
parent
85dff8e26e
commit
68de35a6a0
12
configure.ac
12
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 <arpa/nameser.h>
|
||||
]],
|
||||
[[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])
|
||||
|
Reference in New Issue
Block a user