diff options
author | Bruno Haible <bruno@clisp.org> | 2008-08-31 00:01:36 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-08-31 00:01:36 +0200 |
commit | dcf49e35108a6a1897f15090e22dcd9763872292 (patch) | |
tree | 304463f74ce489232f06066115d15a16dd1ca04c /modules/tls-tests | |
parent | ec05a8bbc1eb5feacf9fc37a9ebb34c92ab4371c (diff) | |
download | gnulib-dcf49e35108a6a1897f15090e22dcd9763872292.tar.gz |
Undo unintentional commit.
Diffstat (limited to 'modules/tls-tests')
-rw-r--r-- | modules/tls-tests | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/modules/tls-tests b/modules/tls-tests index 107cfe45f6..b9f5a23131 100644 --- a/modules/tls-tests +++ b/modules/tls-tests @@ -2,13 +2,21 @@ Files: tests/test-tls.c Depends-on: -thread -yield configure.ac: +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 + 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]) Makefile.am: TESTS += test-tls check_PROGRAMS += test-tls -test_tls_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@ +test_tls_LDADD = $(LDADD) @LIBMULTITHREAD@ @LIBSCHED@ |