Added -I option to aclocal so the system finds the right libtool.m4 file.
[awesomized/libmemcached] / config / protocol_binary.m4
1 dnl ---------------------------------------------------------------------------
2 dnl Macro: PROTOCOL_BINARY_TEST
3 dnl ---------------------------------------------------------------------------
4 save_CFLAGS="$CFLAGS"
5 CFLAGS="$CFLAGS -I${srcdir}"
6 AC_RUN_IFELSE([
7 AC_LANG_PROGRAM([
8 #include "libmemcached/memcached/protocol_binary.h"
9 ], [
10 protocol_binary_request_set request;
11 if (sizeof(request) != sizeof(request.bytes)) {
12 return 1;
13 }
14 ])
15 ],, AC_MSG_ERROR([Unsupported struct padding done by compiler.]))
16 CFLAGS="$save_CFLAGS"
17
18 dnl ---------------------------------------------------------------------------
19 dnl End Macro: PROTOCOL_BINARY_TEST
20 dnl ---------------------------------------------------------------------------