- CFLAGS="-pthread $FLAGS"
- save_LIBS=$LIBS
- AC_CHECK_LIB(c_r, pthread_exit)
- if test "x$ac_cv_lib_c_r_pthread_exit" != "xyes"; then
- CXXFLAGS=$save_CXXFLAGS
- CFLAGS=$save_CFLAGS
- else
- dnl This is cheating a bit. pthread_exit comes with using -pthread, not
- dnl -lpthread
- ac_cv_lib_pthread_pthread_exit="yes"
- fi
- LIBS=$save_LIBS