]> sjero.net Git - wget/commitdiff
[svn] Check for nanosleep in -lrt and -lposix4.
authorhniksic <devnull@localhost>
Mon, 3 Nov 2003 22:46:15 +0000 (14:46 -0800)
committerhniksic <devnull@localhost>
Mon, 3 Nov 2003 22:46:15 +0000 (14:46 -0800)
ChangeLog
configure.in

index a49627c1a6d3b0d522e7c5b8b6a5a3eb225de3ce..4c2f61c46eeee14980a1914d1ee7e1224c9d504c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-03  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * configure.in: Look for nanosleep in -lrt and -lposix4, which is
+       where Solaris has them.
+
 2003-11-03  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * configure.in: Check for nanosleep.
index eed67f1e669b98b32dba8c813e51586fa7750643..d49233bd6d5d708bc94de70ca2633795543faeea 100644 (file)
@@ -194,7 +194,10 @@ AC_FUNC_MMAP
 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 nanosleep usleep)
+AC_CHECK_FUNCS(uname gethostname usleep)
+AC_CHECK_FUNC(nanosleep,,[
+  AC_CHECK_LIB(rt,nanosleep,,[
+    AC_CHECK_LIB(posix4,nanosleep)])])
 
 dnl
 dnl Check if we need to compile in getopt.c.