]> granicus.if.org Git - curl/commitdiff
check for MSG_NOSIGNAL
authorDaniel Stenberg <daniel@haxx.se>
Tue, 2 Dec 2003 10:11:48 +0000 (10:11 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 2 Dec 2003 10:11:48 +0000 (10:11 +0000)
configure.ac

index e570e846eba49b28b480fa21c5d56571878bfc7f..2906a0e0599611b7f8e6312dad2986ceb913b5d9 100644 (file)
@@ -331,6 +331,18 @@ AC_HELP_STRING([--disable-nonblocking],[Disable non-blocking socket detection]),
   CURL_CHECK_NONBLOCKING_SOCKET
 ])
 
+dnl **********************************************************************
+dnl Check for MSG_NOSIGNAL
+dnl **********************************************************************
+AC_MSG_CHECKING(for MSG_NOSIGNAL)
+AC_TRY_COMPILE([#include <sys/socket.h>],
+ [ int f = MSG_NOSIGNAL; ],
+ [ AC_MSG_RESULT(yes)
+   AC_DEFINE(HAVE_MSG_NOSIGNAL, 1,
+             [Define this symbol if you have MSG_NOSIGNAL]) ],
+ [ AC_MSG_RESULT(no)]
+)
+
 dnl **********************************************************************
 dnl Check for the random seed preferences 
 dnl **********************************************************************