File: tls-tests

package info (click to toggle)
gnulib 20080701-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 35,032 kB
  • ctags: 13,484
  • sloc: ansic: 140,585; sh: 15,049; yacc: 1,227; perl: 706; lisp: 270; makefile: 118; java: 5
file content (22 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Files:
tests/test-tls.c

Depends-on:

configure.ac:
dnl Checks for special libraries for the tests/test-tls test.
dnl On some systems, sched_yield is in librt, rather than in libpthread.
LIBSCHED=
if test $gl_threads_api = posix; then
  dnl Solaris has sched_yield in librt, not in libpthread or libc.
  AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt],
    [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt.
     AC_CHECK_LIB(posix4, sched_yield, [LIBSCHED=-lposix4])])
fi
AC_SUBST([LIBSCHED])

Makefile.am:
TESTS += test-tls
check_PROGRAMS += test-tls
test_tls_LDADD = $(LDADD) @LIBMULTITHREAD@ @LIBSCHED@