1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Yet another version of nanosleep test.

This commit is contained in:
hniksic 2003-11-03 15:31:01 -08:00
parent 3f039e9360
commit 6353192009

View File

@ -195,9 +195,6 @@ AC_CHECK_FUNCS(strdup strstr strcasecmp strncasecmp strpbrk memmove)
AC_CHECK_FUNCS(gettimeofday mktime strptime strerror snprintf vsnprintf)
AC_CHECK_FUNCS(select sigblock sigsetjmp signal symlink access isatty)
AC_CHECK_FUNCS(uname gethostname usleep)
AC_CHECK_FUNCS(nanosleep,,[
AC_CHECK_LIB(rt,nanosleep,[AC_DEFINE(HAVE_NANOSLEEP)],[
AC_CHECK_LIB(posix4,nanosleep,[AC_DEFINE(HAVE_NANOSLEEP)])])])
dnl
dnl Check if we need to compile in getopt.c.
@ -230,6 +227,20 @@ fi
AC_CHECK_LIB(socket, socket)
dnl nanosleep on Solaris requires -lrt (more recently) or -lposix4
dnl (older versions).
AC_CHECK_FUNCS(nanosleep, [], [
AC_CHECK_LIB(rt, nanosleep, [
AC_DEFINE(HAVE_NANOSLEEP)
LIBS="-lrt $LIBS"
], [
AC_CHECK_LIB(posix4, nanosleep, [
AC_DEFINE(HAVE_NANOSLEEP)
LIBS="-lposix4 $LIBS"
])
])])
dnl #### This appears to be deficient with later versions of SOCKS.
if test "x${with_socks}" = xyes
then