[llvm-commits] [llvm] r171570 - in /llvm/trunk: autoconf/configure.ac configure

Chandler Carruth chandlerc at gmail.com
Fri Jan 4 16:29:07 PST 2013


Author: chandlerc
Date: Fri Jan  4 18:29:06 2013
New Revision: 171570

URL: http://llvm.org/viewvc/llvm-project?rev=171570&view=rev
Log:
Finally, fix the autoconf setup to allow for a missing clock_gettime;
the source code should now be set up to handle this.

Modified:
    llvm/trunk/autoconf/configure.ac
    llvm/trunk/configure

Modified: llvm/trunk/autoconf/configure.ac
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=171570&r1=171569&r2=171570&view=diff
==============================================================================
--- llvm/trunk/autoconf/configure.ac (original)
+++ llvm/trunk/autoconf/configure.ac Fri Jan  4 18:29:06 2013
@@ -1250,9 +1250,10 @@
                [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

Modified: llvm/trunk/configure
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/configure?rev=171570&r1=171569&r2=171570&view=diff
==============================================================================
--- llvm/trunk/configure (original)
+++ llvm/trunk/configure Fri Jan  4 18:29:06 2013
@@ -12614,10 +12614,6 @@
 if test "$ac_res" != no; then
   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
-else
-  { { echo "$as_me:$LINENO: error: clock_gettime not found and is required for modern POSIX timing uspport" >&5
-echo "$as_me: error: clock_gettime not found and is required for modern POSIX timing uspport" >&2;}
-   { (exit 1); exit 1; }; }
 fi
 
 





More information about the llvm-commits mailing list