7868519c1031eaca6a8d3c1864e052b60525dcba
[gnulib.git] / tls-tests
1 Files:
2 tests/test-tls.c
3
4 Depends-on:
5
6 configure.ac:
7 dnl Checks for special libraries for the tests/test-tls 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-tls
17 check_PROGRAMS += test-tls
18 test_tls_LDADD = @LIBMULTITHREAD@ @LIBSCHED@ $(LDADD)
19