1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-24 20:30:28 +02:00

(AC_CHECK_FUNCS): Add pthread_getattr_np.

This commit is contained in:
Kevin Ryde 2006-07-25 00:10:17 +00:00
parent 3d9ff38eac
commit 3e494123b6

View file

@ -1021,9 +1021,13 @@ case "$with_threads" in
with_threads="pthreads",
with_threads="null")
# Reasons for testing:
# pthread_getattr_np - "np" meaning "non portable" says it
# all; not present on MacOS X or Solaris 10
#
old_CFLAGS="$CFLAGS"
CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
AC_CHECK_FUNCS(pthread_attr_getstack)
AC_CHECK_FUNCS(pthread_attr_getstack pthread_getattr_np)
CFLAGS="$old_CFLAGS"
# On Solaris, sched_yield lives in -lrt.