summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-28 14:19:02 +0000
committerYang Tse <yangsita@gmail.com>2006-07-28 14:19:02 +0000
commit77b3bc239daf75d9fb7702ee34c8e5871c47d387 (patch)
treedd95de134f25ea8196884c454d1f13dbabfc6863 /acinclude.m4
parentc10d15aa0fe332f98fb4eac34328034a0de03095 (diff)
downloadcurl-77b3bc239daf75d9fb7702ee34c8e5871c47d387.tar.gz
First step trying to avoid the multiple header inclusion and recursion nightmare.
Reintroduce checking for HAVE_MSG_NOSIGNAL in configure script, so that we don't depend on header inclusion order for a valid check.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m433
1 files changed, 33 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 2dfc7e1ca..4ec27d2ae 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -926,6 +926,39 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [
]) # AC_DEFUN
+dnl CURL_CHECK_MSG_NOSIGNAL
+dnl -------------------------------------------------
+dnl Check for MSG_NOSIGNAL
+
+AC_DEFUN([CURL_CHECK_MSG_NOSIGNAL], [
+ AC_CHECK_HEADERS(sys/types.h sys/socket.h)
+ AC_CACHE_CHECK([for MSG_NOSIGNAL], [ac_cv_msg_nosignal], [
+ AC_COMPILE_IFELSE([
+ AC_LANG_PROGRAM([
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+ ],[
+ int flag=MSG_NOSIGNAL;
+ ])
+ ],[
+ ac_cv_msg_nosignal="yes"
+ ],[
+ ac_cv_msg_nosignal="no"
+ ])
+ ])
+ case "$ac_cv_msg_nosignal" in
+ yes)
+ AC_DEFINE_UNQUOTED(HAVE_MSG_NOSIGNAL, 1,
+ [Define to 1 if you have the MSG_NOSIGNAL flag.])
+ ;;
+ esac
+]) # AC_DEFUN
+
+
dnl CURL_CHECK_NONBLOCKING_SOCKET
dnl -------------------------------------------------
dnl Check for how to set a socket to non-blocking state. There seems to exist