aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-10-01 08:58:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-10-01 08:58:03 +0000
commit6ca45beaed85e9e0b320600976be42073d7272f6 (patch)
treec0f7dda7ddfb3af100fdcaa788498b6ec0aa6c9c /configure.in
parent2a07626aa8dcf601eb575cac4c8817fa0e8e245e (diff)
Added non-blocking sockets test
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 8fbe508f6..5af823cf6 100644
--- a/configure.in
+++ b/configure.in
@@ -159,6 +159,24 @@ dnl dl lib?
AC_CHECK_FUNC(dlclose, , AC_CHECK_LIB(dl, dlopen))
dnl **********************************************************************
+dnl Check how non-blocking sockets are set
+dnl **********************************************************************
+AC_ARG_ENABLE(nonblocking,
+[ --enable-nonblocking Makes the script detect how to do it
+ --disable-nonblocking Makes the script disable non-blocking sockets],
+[
+ if test "$enableval" = "no" ; then
+ AC_MSG_WARN([non-blocking sockets disabled])
+ AC_DEFINE(HAVE_DISABLED_NONBLOCKING)
+ else
+ CURL_CHECK_NONBLOCKING_SOCKET
+ fi
+],
+[
+ CURL_CHECK_NONBLOCKING_SOCKET
+])
+
+dnl **********************************************************************
dnl Check for the random seed preferences
dnl **********************************************************************