Simplify.
[gnulib.git] / modules / lock-tests
1 Files:
2 tests/test-lock.c
3
4 Depends-on:
5
6 configure.ac:
7 dnl Checks for special libraries for the tests/test-lock test.
8 dnl On some systems, sched_yield is in librt, rather than in libpthread.
9 LIBSCHED=
10 if test $gl_threads_api = posix; then
11   AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt])
12 fi
13 AC_SUBST([LIBSCHED])
14
15 Makefile.am:
16 TESTS += test-lock
17 check_PROGRAMS += test-lock
18 test_lock_LDADD = @LIBMULTITHREAD@ @LIBSCHED@ $(LDADD)
19