1 dnl ---------------------------------------------------------------------------
2 dnl Macro: PROTOCOL_BINARY_TEST
3 dnl ---------------------------------------------------------------------------
5 AC_DEFUN([PROTOCOL_BINARY_TEST],
7 AC_CACHE_CHECK([for supported struct padding], [ac_cv_supported_struct_padding], [
10 CFLAGS="$CFLAGS -I${srcdir}"
13 #include "libmemcached/memcached/protocol_binary.h"
15 protocol_binary_request_set request;
19 case sizeof(request.bytes):
25 [ ac_cv_supported_struct_padding=no ],
26 [ ac_cv_supported_struct_padding=yes ])
30 AS_IF([test "x$ac_cv_supported_struct_padding" = "xno"],[
31 AC_MSG_ERROR([Unsupported struct padding done by compiler.])])
34 dnl ---------------------------------------------------------------------------
35 dnl End Macro: PROTOCOL_BINARY_TEST
36 dnl ---------------------------------------------------------------------------