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

ruby-changes:12760

From: nagai <ko1@a...>
Date: Sun, 9 Aug 2009 21:27:07 +0900 (JST)
Subject: [ruby-changes:12760] Ruby:r24485 (ruby_1_8): * ext/tk/extconf.rb (search_tclConfig): last change isn't enough. fixed it.

nagai	2009-08-09 21:26:52 +0900 (Sun, 09 Aug 2009)

  New Revision: 24485

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

  Log:
    * ext/tk/extconf.rb (search_tclConfig): last change isn't enough. fixed it.
    * ext/tk/tcltklib.c (Init_tcltklib): avoid warning when disable-pthread

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/ext/tk/extconf.rb
    branches/ruby_1_8/ext/tk/tcltklib.c

Index: ruby_1_8/ext/tk/tcltklib.c
===================================================================
--- ruby_1_8/ext/tk/tcltklib.c	(revision 24484)
+++ ruby_1_8/ext/tk/tcltklib.c	(revision 24485)
@@ -10544,9 +10544,11 @@
 
     /* --------------------------------------------------------------- */
 
+#ifdef HAVE_NATIVETHREAD
     /* if ruby->nativethread-supprt and tcltklib->doen't, 
        the following will cause link-error. */
     ruby_native_thread_p();
+#endif
 
     /* --------------------------------------------------------------- */
 
Index: ruby_1_8/ext/tk/extconf.rb
===================================================================
--- ruby_1_8/ext/tk/extconf.rb	(revision 24484)
+++ ruby_1_8/ext/tk/extconf.rb	(revision 24485)
@@ -1,6 +1,6 @@
 ##############################################################
 # extconf.rb for tcltklib
-# release date: 2009-08-07
+# release date: 2009-08-09
 ##############################################################
 require 'mkmf'
 
@@ -530,9 +530,6 @@
       tkconf = parse_tclConfig(tkpath)
       next if tkver && tkver !~ /^#{tkconf['TK_MAJOR_VERSION']}(\.?)#{tkconf['TK_MINOR_VERSION']}/
 
-      # find tclConfig.sh & tkConfig.sh
-      conf = [tclconf, tkconf] unless conf
-
       # nativethread check
       if !TkLib_Config["ruby_with_thread"] && tclconf['TCL_THREADS'] == '1'
         puts "WARNIG: find #{tclpath.inspect}, but it WITH nativethread-support under ruby WITHOUT nativethread-support. So, ignore it."
@@ -540,6 +537,9 @@
         next
       end
 
+      # find tclConfig.sh & tkConfig.sh
+      conf = [tclconf, tkconf] unless conf
+
       # check Tcl library
       if TkLib_Config["tcltk-stubs"]
         stub = "stub"
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 24484)
+++ ruby_1_8/ChangeLog	(revision 24485)
@@ -1,3 +1,10 @@
+Sun Aug  9 21:14:03 2009  Hidetoshi NAGAI  <nagai@a...>
+
+	* ext/tk/extconf.rb (search_tclConfig): last change isn't enough.
+	  fixed it.
+
+	* ext/tk/tcltklib.c (Init_tcltklib): avoid warning.
+
 Fri Aug  7 23:36:07 2009  Tanaka Akira  <akr@f...>
 
 	* eval.c (rb_thread_schedule): need select for WAIT_SELECT, even if

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

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