* update the changelog
[tango.git] / config / RSSH_ENABLE_PTHREADS.m4
blob9c5e4e1f894e6f31c48200904dfcf0331cce8998
1 dnl@synopsis RSSH_ENABLE_PTHREADS
2 dnl
3 dnl modify CFLAGS, CXXFLAGS and LIBS for compiling pthread-based programs.
4 dnl
5 dnl@author  (C) Ruslan Shevchenko <Ruslan@Shevchenko.Kiev.UA>, 1998, 2000
6 dnl@id  $Id: RSSH_ENABLE_PTHREADS.m4,v 1.7 2001/03/28 12:20:12 rssh Exp $
7 dnl
8 dnl
9 AC_DEFUN([RSSH_ENABLE_PTHREADS],[
10 AC_REQUIRE([RSSH_CHECK_PTHREADS])
12 if test -z "$rssh_enable_pthreads_done"
13 then
14  CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
15  CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
16  LIBS="$LIBS $LIBS_PTHREADS"
18 rssh_enable_pthreads_done=yes
20 rssh_rollback="$rssh_rollback; rssh_enable_pthreads_done=" 
21 ])dnl
22 dnl