From 525f6519fbb43f6fc9e45860e116f8ac44fc0c1e Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Wed, 10 Mar 2004 10:22:03 +0000 Subject: [PATCH] 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) --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index b6c22530..538bede6 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ]) + # Makefiles to be created by configure. AC_CONFIG_FILES([ Makefile