35 |
|
dnl Check even the libc_r (FreeBSD) |
36 |
|
AC_CHECK_LIB(c_r, pthread_create, HAVE_PTHREADS=yes, HAVE_PTHREADS=no) |
37 |
|
if [[ "x$HAVE_PTHREADS" = "xno" ]]; then |
38 |
< |
AC_MSG_ERROR([You need libpthreads to run Basilisk II.]) |
38 |
> |
dnl Or maybe the user has PTL (NetBSD) |
39 |
> |
AC_CHECK_LIB(PTL, pthread_create, HAVE_PTHREADS=yes, HAVE_PTHREADS=no) |
40 |
> |
if [[ "x$HAVE_PTHREADS" = "xno" ]]; then |
41 |
> |
AC_MSG_ERROR([You need pthreads to run Basilisk II.]) |
42 |
> |
else |
43 |
> |
LIBS="$LIBS -lPTL" |
44 |
> |
fi |
45 |
|
else |
46 |
|
LIBS="$LIBS -lc_r" |
47 |
|
fi |