diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-01-05 00:29:06 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-01-05 00:29:06 +0000 |
commit | 234aaf08c8b81127a765b2d991cafe146502853c (patch) | |
tree | a1b8fea2bd62abd41aaf8f3481296c061633a5a1 /autoconf/configure.ac | |
parent | fa511bf6c286bb93236ee5aa08e7848414459d94 (diff) |
Finally, fix the autoconf setup to allow for a missing clock_gettime;
the source code should now be set up to handle this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/configure.ac')
-rw-r--r-- | autoconf/configure.ac | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index fdda3f9567..c0af01a1e4 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -1250,9 +1250,10 @@ AC_SEARCH_LIBS(dlopen,dl,AC_DEFINE([HAVE_DLOPEN],[1], [Define if dlopen() is available on this platform.]), AC_MSG_WARN([dlopen() not found - disabling plugin support])) -dnl clock_gettime() is required for modern timing support. -AC_SEARCH_LIBS(clock_gettime,rt,[], - AC_MSG_ERROR([clock_gettime not found and is required for modern POSIX timing uspport])) +dnl Search for the clock_gettime() function. Note that we rely on the POSIX +dnl macros to detect whether clock_gettime is available, dnl this just finds +dnl the right libraries to link with. +AC_SEARCH_LIBS(clock_gettime,rt) dnl libffi is optional; used to call external functions from the interpreter if test "$llvm_cv_enable_libffi" = "yes" ; then |