can you please test the attached patch to configure?
you need to apply it with
~/src/citadel/libcitadel$ patch -p2 < /tmp/check_memcpy.diff
and coppy the attached other file to ~/src/citadel/libcitadel/m4/localm4
then re-run bootstrap, and configure.
on my system I get:
checking "whether memcpy is a define"... checking for memcpy defined.. no
no define
yours should be different then.
diff --git a/libcitadel/configure.in b/libcitadel/configure.in index fb45b74..28f00ac 100755 --- a/libcitadel/configure.in +++ b/libcitadel/configure.in @@ -10,6 +10,7 @@ AC_INIT(libcitadel, 3.8.13, http://uncensored.citadel.org) AC_CONFIG_SRCDIR(Makefile.in) AC_CONFIG_AUX_DIR(conftools) AC_CONFIG_SRCDIR(tests/Makefile.in) +m4_include([m4/local.m4]) dnl dnl Increment LIBREVISION if source code has changed at all @@ -57,6 +58,14 @@ fi dnl Checks for header files. AC_HEADER_STDC +dnl AX_CHECK_DEFINE(, memcpy, AC_MSG_RESULT(its a define), AC_MSG_RESULT(no define)) +dnl AC_CHECK_DEFINE(lib/libcitadel.h __STRICT_ANSI__, CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500" memcpy, AC_MSG_RESULT(its a define), AC_MSG_RESULT(no define)) +AC_MSG_CHECKING("whether memcpy is a define") +AX_CHECK_DEFINED([ +#include "lib/libcitadel.h" +#include <string.h> +], + memcpy, AC_MSG_RESULT(its a define), AC_MSG_RESULT(no define)) AC_CHECK_HEADER(sys/mman.h, [CFLAGS="$CFLAGS -D HAVE_MMAP"]) AC_ARG_WITH(with_zlib, [ --with-zlib use zlib compression if present]) dnl Checks for the zlib compression library.
local.m4
Description: application/m4