diff --git a/configure.in b/configure.in index efe48039d..1118438b7 100644 --- a/configure.in +++ b/configure.in @@ -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.