642 |
, with_threads=yes) |
, with_threads=yes) |
643 |
|
|
644 |
case "$with_threads" in |
case "$with_threads" in |
645 |
"yes" | "coop-pthread" | "copt" | "coop" | "") |
"yes" | "pthread" | "pthreads" | "pthread-threads" | "") |
646 |
AC_CHECK_LIB(pthread, main, |
AC_CHECK_LIB(pthread, main, |
647 |
LIBS="-lpthread $LIBS" |
LIBS="-lpthread $LIBS" |
648 |
AC_DEFINE(USE_COPT_THREADS, 1, |
AC_DEFINE(USE_PTHREAD_THREADS, 1, |
649 |
[Define if using coop-pthread multithreading.]) |
[Define if using pthread multithreading.]) |
650 |
with_threads="coop-pthreads", |
with_threads="pthreads", |
651 |
with_threads="null") |
with_threads="null") |
652 |
;; |
;; |
653 |
esac |
esac |
654 |
|
|
655 |
case "$with_threads" in |
case "$with_threads" in |
656 |
"coop-pthreads") |
"pthreads") |
657 |
;; |
;; |
658 |
"no" | "null") |
"no" | "null") |
659 |
AC_DEFINE(USE_NULL_THREADS, 1, |
AC_DEFINE(USE_NULL_THREADS, 1, |