diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-08-18 01:46:34 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-08-18 01:46:34 +0000 |
commit | 8e9fde1c5f669e12a6a6ff68c5ed36d6284906a6 (patch) | |
tree | 7bb2826c7676c805f9a1aed026be285af869dcd8 /projects/sample/autoconf | |
parent | b5d5797426f0fd0612b4098641e7e1d28c761434 (diff) | |
download | llvm-8e9fde1c5f669e12a6a6ff68c5ed36d6284906a6.tar.gz llvm-8e9fde1c5f669e12a6a6ff68c5ed36d6284906a6.tar.bz2 llvm-8e9fde1c5f669e12a6a6ff68c5ed36d6284906a6.tar.xz |
Add support for linking librt and using clock_gettime to the sample
autoconf setup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects/sample/autoconf')
-rw-r--r-- | projects/sample/autoconf/configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/projects/sample/autoconf/configure.ac b/projects/sample/autoconf/configure.ac index c7e256e830..89527b3377 100644 --- a/projects/sample/autoconf/configure.ac +++ b/projects/sample/autoconf/configure.ac @@ -1079,6 +1079,11 @@ 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 Search for the clock_gettime() function. Note that we rely on the POSIX +dnl macros to detect whether clock_gettime is available, this just finds the +dnl right libraries to link with. +AC_SEARCH_LIBS(clock_gettime,rt) + dnl The curses library is optional; used for querying terminal info if test "$llvm_cv_enable_terminfo" = "yes" ; then dnl We need the has_color functionality in curses for it to be useful. |