dnl CF_NCURSES_PTHREADS version: 3 updated: 2024/07/06 13:57:42
dnl -------------------
dnl Use this followup check, e.g., in CF_WITH_NCURSES_ETC, to ensure that we
dnl link with pthreads if ncurses uses it.
AC_DEFUN([CF_NCURSES_PTHREADS],[
AC_CHECK_FUNC(_nc_init_pthreads,
	cf_cv_ncurses_pthreads=yes,
	cf_cv_ncurses_pthreads=no)
if test "$cf_cv_ncurses_pthreads" = yes
then
	CF_ADD_LIBS(-lpthread)
fi
])dnl
