X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Flock-tests;h=d0e5010508dd528d738552fe586b7d0ef8fea844;hb=56d6664559f449af25f0d331457b014b02324d65;hp=568077176581d81dff488e5faf071d4c36bab843;hpb=271b13d611201973d7a5365a2fba8753b1105089;p=gnulib.git diff --git a/modules/lock-tests b/modules/lock-tests index 568077176..d0e501050 100644 --- a/modules/lock-tests +++ b/modules/lock-tests @@ -2,19 +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 -noinst_PROGRAMS += test-lock -test_lock_SOURCES = test-lock.c -test_lock_LDADD = @LIBMULTITHREAD@ @LIBSCHED@ $(LDADD) - +check_PROGRAMS += test-lock +test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@