summaryrefslogtreecommitdiff
path: root/libgo/configure.ac
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-29 21:58:48 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-29 21:58:48 +0000
commita101a3852efe566a1879c9a7eb6ceff00bb8c6f7 (patch)
treee7665ea556f238ad5c34dff64c5b1839162dc2ae /libgo/configure.ac
parent78e515f7b3c83f047ada836f3d769b1fd934d9d7 (diff)
downloadlinaro-gcc-a101a3852efe566a1879c9a7eb6ceff00bb8c6f7.tar.gz
linaro-gcc-a101a3852efe566a1879c9a7eb6ceff00bb8c6f7.tar.bz2
linaro-gcc-a101a3852efe566a1879c9a7eb6ceff00bb8c6f7.zip
runtime: If no sem_timedwait, use pthread_cond_timedwait.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181821 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/configure.ac')
-rw-r--r--libgo/configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgo/configure.ac b/libgo/configure.ac
index e19b5f37b70..576d1a64329 100644
--- a/libgo/configure.ac
+++ b/libgo/configure.ac
@@ -456,6 +456,14 @@ AC_CHECK_FUNCS(srandom random strerror_r strsignal wait4 mincore setenv)
AM_CONDITIONAL(HAVE_STRERROR_R, test "$ac_cv_func_strerror_r" = yes)
AM_CONDITIONAL(HAVE_WAIT4, test "$ac_cv_func_wait4" = yes)
+CFLAGS_hold="$CFLAGS"
+CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+LIBS_hold="$LIBS"
+LIBS="$LIBS $PTHREAD_LIBS"
+AC_CHECK_FUNCS(sem_timedwait)
+CFLAGS="$CFLAGS_hold"
+LIBS="$LIBS_hold"
+
AC_CACHE_CHECK([for __sync_bool_compare_and_swap_4],
[libgo_cv_func___sync_bool_compare_and_swap_4],
[AC_LINK_IFELSE([