Auto merged

2004/03/10 10:21:35+00:00 cantab.net!aia21
Use AC_CHECK_DECLS in configure.ac to determine if the constant bswap
functions are defined/declared and define them to the non-constant ones
in endians.h if not.

(Logical change 1.314)
edge.strict_endians
cantab.net!aia21 2004-03-10 10:22:03 +00:00
parent c89452b85a
commit 525f6519fb
1 changed files with 5 additions and 0 deletions

View File

@ -217,6 +217,11 @@ AC_FUNC_VPRINTF
AC_CHECK_FUNCS([atexit fdatasync hasmntopt memmove memset regcomp setlocale \
strcasecmp strchr strdup strerror strtol strtoul utime mbsinit])
# Check for declarations of constant bswap function as some systems do not
# provide all of them.
AC_CHECK_DECLS([__bswap_constant_16, __bswap_constant_32, __bswap_constant_64],
, , [#include <byteswap.h>])
# Makefiles to be created by configure.
AC_CONFIG_FILES([
Makefile