-# Check for pthread
-AC_CHECK_LIB([pthread], [pthread_create],
- [AM_CONDITIONAL(LIBC_INCLUDES_PTHREAD, false)],
- [AC_CHECK_LIB([c], [pthread_create],
- [AM_CONDITIONAL(LIBC_INCLUDES_PTHREAD, true)],
- [AC_MSG_ERROR([Cannot find libpthread. Use [LDFLAGS]=-Ldir to specify its location.])]
- )]
-)
-