summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-05-10 15:46:38 +0000
committerYang Tse <yangsita@gmail.com>2008-05-10 15:46:38 +0000
commit22e6a8199f5364c2a94a3e70729707ce9e5f3039 (patch)
tree2ae0d7fadc59cd7eb356cbcb7c3a519f4b82b985 /configure.ac
parent0848b4fdaa130054c981194afa2ff0cd136d2590 (diff)
downloadc-ares-22e6a8199f5364c2a94a3e70729707ce9e5f3039.tar.gz
c-ares-22e6a8199f5364c2a94a3e70729707ce9e5f3039.tar.bz2
c-ares-22e6a8199f5364c2a94a3e70729707ce9e5f3039.zip
Add library checking for clock_gettime() support
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a7af5a1..28f90c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -260,6 +260,11 @@ fi
dnl socket lib?
AC_CHECK_FUNC(connect, , [ AC_CHECK_LIB(socket, connect) ])
+dnl **********************************************************************
+dnl Check for libraries needed for function clock_gettime
+dnl **********************************************************************
+CURL_CHECK_LIBS_CLOCK_GETTIME
+
AC_MSG_CHECKING([whether to use libgcc])
AC_ARG_ENABLE(libgcc,
AC_HELP_STRING([--enable-libgcc],[use libgcc when linking]),
@@ -644,7 +649,6 @@ AC_CHECK_MEMBER(struct addrinfo.ai_flags,
AC_CHECK_FUNCS( bitncmp \
gettimeofday \
- clock_gettime \
if_indextoname,
dnl if found
[],