summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-04-13 12:14:00 +0000
committerBruno Haible <bruno@clisp.org>2007-04-13 12:14:00 +0000
commit75032ae61b82138c1d1b9552eec2f96ab1040dc4 (patch)
tree9bd738443241922b20d78f2bab7cf3ec3541d117
parente40470ec76df3044958d17e516910385bc06d5d2 (diff)
downloadgnulib-75032ae61b82138c1d1b9552eec2f96ab1040dc4.tar.gz
Try harder to find sched_yield on Solaris.
-rw-r--r--ChangeLog6
-rw-r--r--modules/lock-tests5
-rw-r--r--modules/tls-tests5
3 files changed, 14 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7cba442c85..db7b681833 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2007-04-13 Bruno Haible <bruno@clisp.org>
+ * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
+ * modules/tls-tests (configure.ac): Likewise.
+ Reported by Arto C. Nirkko <anirkko@insel.ch>.
+
+2007-04-13 Bruno Haible <bruno@clisp.org>
+
* lib/tls.c (glthread_tls_get): Fix return type.
Patch by Arto C. Nirkko <anirkko@insel.ch>.
diff --git a/modules/lock-tests b/modules/lock-tests
index 2e410c99a2..e4ec5cbd10 100644
--- a/modules/lock-tests
+++ b/modules/lock-tests
@@ -8,7 +8,10 @@ dnl Checks for special libraries for the tests/test-lock test.
dnl On some systems, sched_yield is in librt, rather than in libpthread.
LIBSCHED=
if test $gl_threads_api = posix; then
- AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt])
+ dnl Solaris has sched_yield in librt, not in libpthread or libc.
+ AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt],
+ [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt.
+ AC_CHECK_LIB(posix4, sched_yield, [LIBSCHED=-lposix4])])
fi
AC_SUBST([LIBSCHED])
diff --git a/modules/tls-tests b/modules/tls-tests
index 7868519c10..9910af59c2 100644
--- a/modules/tls-tests
+++ b/modules/tls-tests
@@ -8,7 +8,10 @@ dnl Checks for special libraries for the tests/test-tls test.
dnl On some systems, sched_yield is in librt, rather than in libpthread.
LIBSCHED=
if test $gl_threads_api = posix; then
- AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt])
+ dnl Solaris has sched_yield in librt, not in libpthread or libc.
+ AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt],
+ [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt.
+ AC_CHECK_LIB(posix4, sched_yield, [LIBSCHED=-lposix4])])
fi
AC_SUBST([LIBSCHED])