Permalink
Browse files

fix pthread configure bug

  • Loading branch information...
ice799 committed May 5, 2009
1 parent 039eaea commit 0b9b69f9653782a33aee2b8937d405eae245b60c
Showing with 6 additions and 1 deletion.
  1. +6 −1 configure.in
View
@@ -368,6 +368,10 @@ AC_ARG_WITH(libc_r,
*) with_libc_r=no;;
esac], [with_libc_r=no])
AC_ARG_ENABLE(ucontext,
[ --disable-ucontext do not use getcontext()/setcontext().],
[disable_ucontext=yes], [disable_ucontext=no])
AC_ARG_ENABLE(pthread,
[ --enable-pthread use pthread library.],
[enable_pthread=$enableval], [enable_pthread=no])
@@ -1038,7 +1042,8 @@ if test x"$enable_pthread" = xyes; then
fi
fi
fi
if test x"$ac_cv_header_ucontext_h" = xyes; then
if test x"$ac_cv_header_ucontext_h" = xyes && test x"$disable_ucontext" = xno; then
if test x"$rb_with_pthread" = xyes; then
AC_CHECK_FUNCS(getcontext setcontext)
fi

0 comments on commit 0b9b69f

Please sign in to comment.