X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fsocket_send_flags.m4;h=5c1c747030f35fbdcf822a1e9aaa03e9dfc3874e;hb=38d8a23b191882419106665e8988f8f5b5532fe2;hp=1eefa1bd5c493b509afc4630353054e5584a3525;hpb=906d0558357bdd81dec000c71c165646af8c6e5f;p=awesomized%2Flibmemcached diff --git a/m4/socket_send_flags.m4 b/m4/socket_send_flags.m4 index 1eefa1bd..5c1c7470 100644 --- a/m4/socket_send_flags.m4 +++ b/m4/socket_send_flags.m4 @@ -1,5 +1,5 @@ -dnl Copyright (C) 2012 Data Differential LLC -dnl Copyright (C) 2011 Trond Norbye +dnl Copyright (C) 2012 Data Differential LLC +dnl Copyright (C) 2011 Trond Norbye dnl This file is free software; Trond Norbye dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,33 +7,35 @@ dnl --------------------------------------------------------------------------- dnl Macro: SOCKET_SEND_FLAGS dnl --------------------------------------------------------------------------- -AC_DEFUN([SOCKET_SEND_FLAGS], -[ +AC_DEFUN([SOCKET_SEND_FLAGS],[ AC_CACHE_CHECK([for MSG_NOSIGNAL], [ac_cv_msg_nosignal], [ AC_LANG_PUSH([C]) - save_CFLAGS="$CFLAGS" + AX_SAVE_FLAGS CFLAGS="$CFLAGS -I${srcdir}" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], [ int flags= MSG_NOSIGNAL ])], [ac_cv_msg_nosignal="yes"]) AC_LANG_POP + AX_RESTORE_FLAGS ]) AC_CACHE_CHECK([for MSG_DONTWAIT], [ac_cv_msg_dontwait], [ AC_LANG_PUSH([C]) - save_CFLAGS="$CFLAGS" + AX_SAVE_FLAGS CFLAGS="$CFLAGS -I${srcdir}" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], [ int flags= MSG_DONTWAIT ])], [ac_cv_msg_dontwait="yes"]) AC_LANG_POP + AX_RESTORE_FLAGS ]) AC_CACHE_CHECK([for MSG_MORE], [ac_cv_msg_more], [ AC_LANG_PUSH([C]) - save_CFLAGS="$CFLAGS" + AX_SAVE_FLAGS CFLAGS="$CFLAGS -I${srcdir}" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], [ int flags= MSG_MORE ])], [ac_cv_msg_more="yes"]) AC_LANG_POP + AX_RESTORE_FLAGS ]) AS_IF([test "x$ac_cv_msg_nosignal" = "xyes"],[ AC_DEFINE(HAVE_MSG_NOSIGNAL, 1, [Define to 1 if you have a MSG_NOSIGNAL])])