X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Flock-tests;h=d0e5010508dd528d738552fe586b7d0ef8fea844;hb=279067b9021cfd0935711cae3f3297ae4b3808af;hp=e4ec5cbd10682f23381904930045030062496671;hpb=75032ae61b82138c1d1b9552eec2f96ab1040dc4;p=gnulib.git diff --git a/modules/lock-tests b/modules/lock-tests index e4ec5cbd1..d0e501050 100644 --- a/modules/lock-tests +++ b/modules/lock-tests @@ -2,21 +2,12 @@ Files: tests/test-lock.c Depends-on: +thread +yield configure.ac: -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 - 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-lock check_PROGRAMS += test-lock -test_lock_LDADD = @LIBMULTITHREAD@ @LIBSCHED@ $(LDADD) - +test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@