view modules/lock-tests @ 8054:aa8abb5db935

Enforce the use of gnulib modules for unportable <string.h> functions.
author Bruno Haible <bruno@clisp.org>
date Thu, 01 Feb 2007 00:29:52 +0000
parents 2d9c9ba7cf8d
children d31f3019f697
line wrap: on
line source

Files:
tests/test-lock.c

Depends-on:

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)
check_PROGRAMS += test-lock
test_lock_LDADD = @LIBMULTITHREAD@ @LIBSCHED@ $(LDADD)