Fix the checks for the unaligned encoding / decoding functions, as

they can be macros or inline functions in either <endian.h> or
<sys/endian.h>.
This commit is contained in:
Dag-Erling Smørgrav 2014-10-30 13:24:53 +00:00 committed by des
parent 14c64ec3a5
commit 86e7cd9eb1

View file

@ -34,8 +34,16 @@ AC_PROG_INSTALL
# #
AC_CHECK_HEADERS([endian.h sys/endian.h]) AC_CHECK_HEADERS([endian.h sys/endian.h])
AC_CHECK_FUNCS([be32enc be32dec le32enc le32dec]) AC_CHECK_DECLS([be32enc, be32dec, le32enc, le32dec,
AC_CHECK_FUNCS([be64enc be64dec le64enc le64dec]) be64enc, be64dec, le64enc, le64dec], [], [], [[
#ifdef HAVE_SYS_ENDIAN_H
#include <sys/endian.h>
#endif
#ifdef HAVE_ENDIAN_H
#include <endian.h>
#endif
]])
AC_CHECK_DECLS([])
AC_CHECK_FUNCS([strlcat strlcmp strlcpy]) AC_CHECK_FUNCS([strlcat strlcmp strlcpy])
# For tracing allocations in unit tests # For tracing allocations in unit tests