X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=modules%2Flock-tests;h=d0e5010508dd528d738552fe586b7d0ef8fea844;hb=a1ca82b4d75b5d4c61d510d87a3d402f9a20c7a0;hp=95607b6401ee231cf42d2a4f68ad4d558c84a2e2;hpb=bb469ee630001079611573fa2f9924d6b5e242a9;p=gnulib.git diff --git a/modules/lock-tests b/modules/lock-tests index 95607b640..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$(EXEEXT) +TESTS += test-lock check_PROGRAMS += test-lock -test_lock_LDADD = @LIBMULTITHREAD@ @LIBSCHED@ $(LDADD) - +test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@