redmine

mhash support enabled

... ... @@ -29,7 +29,6 @@
-- 0x8E30679C
*/
#define NO_MHASH
#ifdef CLUSTER_SUPPORT
... ... @@ -409,7 +408,6 @@ int node_status_change(uint8_t node_id, uint8_t node_status) {
int cluster_send(clustercmd_t *clustercmd_p) {
clustercmd_p->h.src_node_id = node_id_my;
hexdump_e((unsigned char *)&clustercmd_p->h, sizeof(clustercmd_p->h));
clustercmd_crc32_calc(clustercmd_p, &clustercmd_p->h.crc32, CRC32_CALC_ALL);
printf_ddd("Debug3: cluster_send(): Sending: "
... ...
... ... @@ -55,6 +55,11 @@
#include <arpa/inet.h>
#include <netinet/in.h>
#include <libgen.h>
#ifdef CLUSTER_SUPPORT
#ifndef NO_MHASH
#include <mhash.h>
#endif
#endif
#include "configuration.h"
#ifdef HAVE_CONFIG_H
... ...
... ... @@ -42,10 +42,14 @@ PKG_PROG_PKG_CONFIG([0.20])
# Checks for libraries.
AC_CHECK_LIB([pthread], [pthread_create])
PKG_CHECK_MODULES(GLIB, [glib-2.0])
PKG_CHECK_MODULES(GLIB, [glib-2.0])
AC_CHECK_HEADER([mhash.h], [:], [MHASH_ENABLE=0])
AC_CHECK_LIB([mhash], [mhash], [:], [MHASH_ENABLE=0])
AS_IF([test "$MHASH_ENABLE" = "0"], [CPPFLAGS+=" -DNO_MHASH "], [LIBS+=" -lmhash "])
LIBS="${GLIB_LIBS} ${LIBS}"
AM_CPPFLAGS="${GLIB_CFLAGS}"
AC_SUBST(AM_CPPFLAGS)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
... ...