X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Flock-tests;h=d0e5010508dd528d738552fe586b7d0ef8fea844;hb=0ef31c6a7e21186dcb5f18d53ec132b56cdf2927;hp=2e410c99a2c84eee3556a21162820e3b719a0ba1;hpb=563ea91ac9156e83e5a6dfed3510aaa3bf67c6ad;p=gnulib.git diff --git a/modules/lock-tests b/modules/lock-tests index 2e410c99a..d0e501050 100644 --- a/modules/lock-tests +++ b/modules/lock-tests @@ -2,18 +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 - AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt]) -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@