]> gcc.gnu.org Git - gcc.git/blobdiff - libjava/configure.ac
win32.cc (_Jv_platform_nanotime): New function.
[gcc.git] / libjava / configure.ac
index 94a528133aaad599aa763a717f56366c7fa0d401..5816efec28df0b81588993ee5e99f8e4dd250768 100644 (file)
@@ -1016,6 +1016,14 @@ else
            AC_DEFINE(HAVE_SCHED_YIELD)
            THREADLIBS="$THREADLIBS -lposix4"
            THREADSPEC="$THREADSPEC -lposix4"])])])
+
+      AC_CHECK_LIB(rt, clock_gettime, [
+         AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define if you have clock_gettime()])
+        case "$THREADSPEC" in
+          *-lrt*) ;;
+          *) THREADSPEC="$THREADSPEC -lrt" ;;
+        esac])
+
       LIBS="$save_LIBS"
 
       # We can save a little space at runtime if the mutex has m_count
This page took 0.02668 seconds and 5 git commands to generate.