GSS_S_PROMPTING_NEEDED is a bit
[cyrus-sasl.git] / cmulocal / pthreads.m4
1 dnl pthreads.m4--pthreads setup macro
2 dnl Rob Earhart
3 dnl $Id: pthreads.m4,v 1.11 2003/10/08 20:35:25 rjs3 Exp $
4
5 AC_DEFUN([CMU_PTHREADS], [
6    AC_REQUIRE([AC_CANONICAL_HOST])
7    cmu_save_LIBS="$LIBS"
8    AC_CHECK_LIB(pthread, pthread_create,LIB_PTHREAD="-lpthread",
9      AC_CHECK_LIB(c_r, pthread_create,LIB_PTHREAD="-lc_r",
10        AC_ERROR([Can't compile without pthreads])))
11   LIBS="$cmu_save_LIBS"
12    AC_SUBST(LIB_PTHREAD)
13    AC_DEFINE(_REENTRANT)
14    case "$host_os" in
15    solaris2*)
16         AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
17         AC_DEFINE(__EXTENSIONS__)
18         ;;
19    irix6*)
20         AC_DEFINE(_SGI_REENTRANT_FUNCTIONS)
21         ;;
22    esac
23 ])