Bug #3307: ext/tk e$B$,e(Bheader filee$B$NM-L5$r8mH=Dj$9$ke(B
http://redmine.ruby-lang.org/issues/show/3307
e$B5/I<<Te(B: Masaya T.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$B%+%F%4%je(B: ext, Target version: 1.9.2
ruby -v: ruby 1.9.2dev (2010-05-17 revision 27861) [i386-mswin32_90]
e$BC.2H$G$9!#e(B
tcl.he$B$,L5$$$N$K%3%s%Q%$%k$r$7$h$&$H$7$F<:GT$7$^$9!#e(B
mkmf.loge$B$r8+$k$H<!$N$h$&$K$J$C$F$$$^$7$?!#e(B
“cl -nologo -E -I…/…/.ext/include/i386-mswin32_90 -I…/…/…/include
-I…/…/…/ext/tk -DPACKAGE_NAME="" -DPACKAGE_TARNAME=""
-DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT=""
-DHAVE_NO_LPFN_DECLS=1 -DHAVE_NO_FINDEX_ENUMS=1
-DTCL_CFGVAL_ENCODING="cp1252" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1
-DHAVE_UXTHEME_H=1 -MD -Zi -W2 -wd4996 -O2sy- -Zm600 -I/mingw/include
conftest.c -P”
conftest.c
checked program was:
/* begin /
1: #include “ruby.h”
2:
3: #define WIN32_LEAN_AND_MEAN
4: #define WIN32
5: #include <winsock2.h>
6: #include <ws2tcpip.h>
7: #include <windows.h>
8: tcl.h
/ end */
“cl -nologo -E -I…/…/.ext/include/i386-mswin32_90 -I…/…/…/include
-I…/…/…/ext/tk -I/mingw/include -DPACKAGE_NAME=""
-DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING=""
-DPACKAGE_BUGREPORT="" -DHAVE_NO_LPFN_DECLS=1 -DHAVE_NO_FINDEX_ENUMS=1
-DTCL_CFGVAL_ENCODING="cp1252" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1
-DHAVE_UXTHEME_H=1 -MD -Zi -W2 -wd4996 -O2sy- -Zm600 conftest.c -P”
conftest.c
checked program was:
/* begin /
1: #include “ruby.h”
2:
3: #define WIN32_LEAN_AND_MEAN
4: #define WIN32
5: #include <winsock2.h>
6: #include <ws2tcpip.h>
7: #include <windows.h>
8: tk.h
/ end */
e$B%Q%C%A$G$9!#e(B
Index: ext/tk/extconf.rb
— ext/tk/extconf.rb (e$B%j%S%8%g%se(B 27864)
+++ ext/tk/extconf.rb (e$B:n6H%3%T!<e(B)
@@ -989,7 +989,7 @@
end
if TclConfig_Info[‘TCL_INCLUDE_SPEC’] &&
-
have_tcl_h = try_cpp('tcl.h', TclConfig_Info['TCL_INCLUDE_SPEC'])
-
have_tcl_h = try_cpp('#include<tcl.h>',
TclConfig_Info[‘TCL_INCLUDE_SPEC’
])
$INCFLAGS << " " << TclConfig_Info[‘TCL_INCLUDE_SPEC’]
elsif have_tcl_h = have_header(‘tcl.h’)
# find
@@ -1009,7 +1009,7 @@
end
if TkConfig_Info[‘TK_INCLUDE_SPEC’] &&
-
have_tk_h = try_cpp('tk.h', TkConfig_Info['TK_INCLUDE_SPEC'])
-
have_tk_h = try_cpp('#include<tk.h>',
TkConfig_Info[‘TK_INCLUDE_SPEC’])
$INCFLAGS << " " << TkConfig_Info[‘TK_INCLUDE_SPEC’]
elsif have_tk_h = have_header(‘tk.h’)
# find