[前][次][番号順一覧][スレッド一覧]

ruby-changes:31101

From: nobu <ko1@a...>
Date: Mon, 7 Oct 2013 22:19:08 +0900 (JST)
Subject: [ruby-changes:31101] nobu:r43180 (trunk): configure.in: add mingw FIBER_USE_NATIVE

nobu	2013-10-07 22:19:02 +0900 (Mon, 07 Oct 2013)

  New Revision: 43180

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43180

  Log:
    configure.in: add mingw FIBER_USE_NATIVE
    
    * configure.in (FIBER_USE_NATIVE): add mingw condition.

  Modified files:
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 43179)
+++ configure.in	(revision 43180)
@@ -2352,6 +2352,7 @@ if test x"$enable_pthread" = xyes; then https://github.com/ruby/ruby/blob/trunk/configure.in#L2352
       AC_CHECK_FUNCS(pthread_attr_init)
     fi
 fi
+FIBER_USE_NATIVE=0
 if test x"$ac_cv_header_ucontext_h" = xyes; then
     if test x"$rb_with_pthread" = xyes; then
 	AC_CHECK_FUNCS(getcontext setcontext)
@@ -2360,10 +2361,14 @@ if test x"$ac_cv_header_ucontext_h" = xy https://github.com/ruby/ruby/blob/trunk/configure.in#L2361
 		[*-netbsd*], [],
 		[ia64-*], [], # r38766
 		[*-sunos*|*-solaris*], [], # r32408
-		[AC_DEFINE(FIBER_USE_NATIVE, 1)])
+		[FIBER_USE_NATIVE=1])
 	fi
     fi
+else
+    AS_CASE("$target_os", [mingw*|mswin*],
+	    [test "[$[with_winnt_ver]]" -ge [$[0x0400]] && FIBER_USE_NATIVE=1])
 fi
+AC_DEFINE(FIBER_USE_NATIVE)
 
 if test "$ac_cv_func_fork" = "yes" -a "$rb_with_pthread" = "yes"; then
     AC_CACHE_CHECK([if fork works with pthread], rb_cv_fork_with_pthread,

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]