summaryrefslogtreecommitdiff
path: root/configure.ac+lt
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac+lt')
-rw-r--r--configure.ac+lt10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac+lt b/configure.ac+lt
index 742207a1..e4299039 100644
--- a/configure.ac+lt
+++ b/configure.ac+lt
@@ -621,6 +621,16 @@ AC_CHECK_FUNCS(strlcat)
# For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
AC_SEARCH_LIBS(if_nametoindex, [ipv6])
+# For some Solaris nanosleep is found by BIND in librt
+have_nanosleep="no"
+AC_CHECK_FUNC(nanosleep, have_nanosleep="yes")
+if test "$have_nanosleep" = "no"; then
+ AC_CHECK_LIB(rt, nanosleep, have_nanosleep="rt")
+fi
+if test "$have_nanosleep" = "rt"; then
+ LIBS="-lrt $LIBS"
+fi
+
# check for /dev/random (declares HAVE_DEV_RANDOM)
AC_MSG_CHECKING(for random device)
AC_ARG_WITH(randomdev,