mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-12-22 04:21:08 +00:00
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:
parent
14c64ec3a5
commit
86e7cd9eb1
1 changed files with 10 additions and 2 deletions
12
configure.ac
12
configure.ac
|
@ -34,8 +34,16 @@ AC_PROG_INSTALL
|
|||
#
|
||||
|
||||
AC_CHECK_HEADERS([endian.h sys/endian.h])
|
||||
AC_CHECK_FUNCS([be32enc be32dec le32enc le32dec])
|
||||
AC_CHECK_FUNCS([be64enc be64dec le64enc le64dec])
|
||||
AC_CHECK_DECLS([be32enc, be32dec, le32enc, le32dec,
|
||||
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])
|
||||
|
||||
# For tracing allocations in unit tests
|
||||
|
|
Loading…
Reference in a new issue