diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-10-01 08:58:03 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-10-01 08:58:03 +0000 |
commit | 6ca45beaed85e9e0b320600976be42073d7272f6 (patch) | |
tree | c0f7dda7ddfb3af100fdcaa788498b6ec0aa6c9c /configure.in | |
parent | 2a07626aa8dcf601eb575cac4c8817fa0e8e245e (diff) | |
download | curl-6ca45beaed85e9e0b320600976be42073d7272f6.tar.gz |
Added non-blocking sockets test
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 18 |
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 ********************************************************************** |