545 |
|
|
546 |
dnl ========================================================================== |
dnl ========================================================================== |
547 |
dnl |
dnl |
548 |
|
dnl Check for pthread |
549 |
|
dnl |
550 |
|
dnl ========================================================================== |
551 |
|
|
552 |
|
AC_CHECK_HEADER( |
553 |
|
pthread.h, |
554 |
|
AC_CHECK_LIB( |
555 |
|
pthread, |
556 |
|
pthread_create, |
557 |
|
AC_CHECK_LIB( |
558 |
|
pthread, |
559 |
|
pthread_join, |
560 |
|
SPECIFIC_CFLAGS="$SPECIFIC_CFLAGS -DHAVE_PTHREAD" |
561 |
|
SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS -lpthread", |
562 |
|
AC_MSG_WARN(Pthread not supported. No SMP support)), |
563 |
|
AC_MSG_WARN(Pthread not supported. No SMP support)), |
564 |
|
AC_MSG_WARN(Pthread not supported. No SMP support)) |
565 |
|
|
566 |
|
dnl ========================================================================== |
567 |
|
dnl |
568 |
dnl Now we can set CFLAGS if needed |
dnl Now we can set CFLAGS if needed |
569 |
dnl |
dnl |
570 |
dnl ========================================================================== |
dnl ========================================================================== |