projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
4d91f4d
)
Fix CFLAGS in socket.
author
Brian Aker
<brian@tangent.org>
Mon, 17 Sep 2012 11:16:53 +0000
(07:16 -0400)
committer
Brian Aker
<brian@tangent.org>
Mon, 17 Sep 2012 11:16:53 +0000
(07:16 -0400)
m4/socket_send_flags.m4
patch
|
blob
|
history
diff --git
a/m4/socket_send_flags.m4
b/m4/socket_send_flags.m4
index 1eefa1bd5c493b509afc4630353054e5584a3525..2501f03ee2f2e110bba5ee6b166047e827636c28 100644
(file)
--- a/
m4/socket_send_flags.m4
+++ b/
m4/socket_send_flags.m4
@@
-16,6
+16,7
@@
AC_DEFUN([SOCKET_SEND_FLAGS],
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <netdb.h>], [ int flags= MSG_NOSIGNAL ])], [ac_cv_msg_nosignal="yes"])
AC_LANG_POP
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <netdb.h>], [ int flags= MSG_NOSIGNAL ])], [ac_cv_msg_nosignal="yes"])
AC_LANG_POP
+ CFLAGS="$save_CFLAGS"
])
AC_CACHE_CHECK([for MSG_DONTWAIT], [ac_cv_msg_dontwait], [
])
AC_CACHE_CHECK([for MSG_DONTWAIT], [ac_cv_msg_dontwait], [
@@
-25,6
+26,7
@@
AC_DEFUN([SOCKET_SEND_FLAGS],
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <netdb.h>], [ int flags= MSG_DONTWAIT ])], [ac_cv_msg_dontwait="yes"])
AC_LANG_POP
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <netdb.h>], [ int flags= MSG_DONTWAIT ])], [ac_cv_msg_dontwait="yes"])
AC_LANG_POP
+ CFLAGS="$save_CFLAGS"
])
AC_CACHE_CHECK([for MSG_MORE], [ac_cv_msg_more], [
])
AC_CACHE_CHECK([for MSG_MORE], [ac_cv_msg_more], [
@@
-34,6
+36,7
@@
AC_DEFUN([SOCKET_SEND_FLAGS],
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <netdb.h>], [ int flags= MSG_MORE ])], [ac_cv_msg_more="yes"])
AC_LANG_POP
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <netdb.h>], [ int flags= MSG_MORE ])], [ac_cv_msg_more="yes"])
AC_LANG_POP
+ CFLAGS="$save_CFLAGS"
])
AS_IF([test "x$ac_cv_msg_nosignal" = "xyes"],[ AC_DEFINE(HAVE_MSG_NOSIGNAL, 1, [Define to 1 if you have a MSG_NOSIGNAL])])
])
AS_IF([test "x$ac_cv_msg_nosignal" = "xyes"],[ AC_DEFINE(HAVE_MSG_NOSIGNAL, 1, [Define to 1 if you have a MSG_NOSIGNAL])])