1 dnl # Server process model subsystem
3 SMB_MODULE_DEFAULT(process_model_thread,NOT)
5 #################################################
6 # check for pthread support
7 AC_MSG_CHECKING(whether to use pthreads)
9 [ --with-pthreads Include pthreads (default=no) ],
13 if test x"$ac_cv_func_pread" != x"yes" -o x"$ac_cv_func_pwrite" != x"yes";then
14 AC_MSG_ERROR([You cannot enable threads when you don't have pread/pwrite!])
16 SMB_MODULE_DEFAULT(process_model_thread,STATIC)
17 SMB_EXT_LIB_ENABLE(PTHREAD,YES)
26 SMB_EXT_LIB(PTHREAD,[-lpthread])