]> sjero.net Git - wget/blobdiff - aclocal.m4
[svn] Updated the translation from the TP.
[wget] / aclocal.m4
index 9a2a0666621613f8dfb0f2add4816a9224727300..cf93b2bfaac31e6d3c4f183b22fd72034d64a2dc 100644 (file)
@@ -63,7 +63,7 @@ AC_DEFUN([WGET_FNMATCH], [
 ])
 
 dnl Check for nanosleep.  For nanosleep to work on Solaris, we must
-dnl link with -lt (recently) or with -lposix (older releases).
+dnl link with -lrt (recently) or with -lposix4 (older releases).
 
 AC_DEFUN([WGET_NANOSLEEP], [
   AC_CHECK_FUNCS(nanosleep, [], [
@@ -81,6 +81,12 @@ AC_DEFUN([WGET_NANOSLEEP], [
   ])
 ])
 
+AC_DEFUN([WGET_POSIX_CLOCK], [
+  AC_CHECK_FUNCS(clock_gettime, [], [
+    AC_CHECK_LIB(rt, clock_gettime)
+  ])
+])
+
 dnl Check whether we need to link with -lnsl and -lsocket, as is the
 dnl case on e.g. Solaris.
 
@@ -239,30 +245,6 @@ AC_DEFUN([PROTO_INET6],[
 ])
 
 
-AC_DEFUN([GETADDRINFO_AI_ADDRCONFIG],[
-  AC_CACHE_CHECK([if getaddrinfo supports AI_ADDRCONFIG],
-    [wget_cv_gai_ai_addrconfig],[
-    AC_TRY_CPP([
-#include <netdb.h>
-
-#ifndef AI_ADDRCONFIG
- #error Missing AI_ADDRCONFIG
-#endif
-    ],[
-      wget_cv_gai_ai_addrconfig=yes
-    ],[
-      wget_cv_gai_ai_addrconfig=no
-    ])
-  ])
-
-  if test "X$wget_cv_gai_ai_addrconfig" = "Xyes"; then :
-    $1
-  else :
-    $2
-  fi
-])
-
-
 AC_DEFUN([WGET_STRUCT_SOCKADDR_STORAGE],[
   AC_CHECK_TYPES([struct sockaddr_storage],[], [], [
 #include <sys/types.h>