Branch: Tag:

1997-02-01

1997-02-01 02:56:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Some more thread-support.

Rev: src/acconfig.h:1.4
Rev: src/configure.in:1.55
Rev: src/threads.h:1.9

1: - AC_REVISION("$Id: configure.in,v 1.54 1997/01/31 23:46:11 hubbe Exp $") + AC_REVISION("$Id: configure.in,v 1.55 1997/02/01 02:56:07 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
512:    AC_DEFINE(_REENTRANT)    AC_DEFINE(_THREAD_SAFE)    AC_DEFINE(_MIT_POSIX_THREADS) -  AC_CHECK_FUNCS(pthread_attr_setstacksize) +  AC_CHECK_FUNCS(pthread_attr_setstacksize pthread_yield \ +  pthread_cond_init) +  AC_MSG_CHECKING(if pthread_condattr_default is defined) +  AC_CACHE_VAL(pike_cv_have_pthread_condattr_default,[ +  AC_TRY_COMPILE([ + #ifdef HAVE_PTHREAD_H + #include <pthread.h> + #endif /* HAVE_PTHREAD_H */ + void foo(pthread_cond_t *bar) + { +  pthread_cond_init(bar, pthread_condattr_default) + } +  + int main(int argc, char **argv) + { +  exit(0); + } +  ],[ +  pike_cv_have_pthread_condattr_default=yes +  ],[ +  pike_cv_have_pthread_condattr_default=no +  ]) +  ]) +  +  AC_MSG_RESULT($pike_cv_have_pthread_condattr_default) +  +  if test x$pike_cv_have_pthread_condattr_default = xyes ; then +  AC_DEFINE(HAVE_PTHREAD_CONDATTR_DEFAULT)    else -  +  : +  fi +  else    AC_MSG_RESULT(no)    LIBS="$OLDLIBS"