s48_pthreads.m4 486 B

123456789101112131415161718
  1. ### s48_pthreads.m4 --- S48_PTHREADS macro -*- Autoconf -*-
  2. # serial 1
  3. dnl
  4. dnl
  5. dnl must run after S48_DYNAMIC_EXTERNALS
  6. AC_DEFUN([S48_PTHREADS], [dnl
  7. AC_CHECK_HEADERS([pthread.h],[dnl
  8. pthreads_done="no"
  9. AC_MSG_CHECKING([Pthreads support])
  10. S48_PTHREAD_TRY_FLAGS([-pthread])
  11. S48_PTHREAD_TRY_FLAGS([-pthreads])
  12. S48_PTHREAD_TRY_FLAGS([-mthreads])
  13. S48_PTHREAD_TRY_FLAGS([-thread])
  14. S48_PTHREAD_TRY_FLAGS([-mt])
  15. ])
  16. ])
  17. ### s48_pthreads.m4 ends here