From: Monty Taylor Date: Wed, 13 May 2009 19:03:28 +0000 (-0700) Subject: Added srcdir includes so that the include files could be found in vpath builds. X-Git-Tag: 0.29-2~10 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=19a9f1981b279acac6295b9316f68eb0f3543c24;p=m6w6%2Flibmemcached Added srcdir includes so that the include files could be found in vpath builds. --- diff --git a/config/protocol_binary.m4 b/config/protocol_binary.m4 index 7d3a1590..8b8f3f98 100644 --- a/config/protocol_binary.m4 +++ b/config/protocol_binary.m4 @@ -1,6 +1,8 @@ dnl --------------------------------------------------------------------------- dnl Macro: PROTOCOL_BINARY_TEST dnl --------------------------------------------------------------------------- +save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -I${srcdir}" AC_RUN_IFELSE([ AC_LANG_PROGRAM([ #include "libmemcached/memcached/protocol_binary.h" @@ -11,6 +13,7 @@ AC_RUN_IFELSE([ } ]) ],, AC_MSG_ERROR([Unsupported struct padding done by compiler.])) +CFLAGS="$save_CFLAGS" dnl --------------------------------------------------------------------------- dnl End Macro: PROTOCOL_BINARY_TEST