Hi,
I don’t know about development on MacOS X Tiger.
To make tcltklib for Aqua except X11, is the following patch to
‘ext/tcltklib/extconf.rb’ ( or ‘ext/tk/extconf.rb’) required?
Or is it nonsense?
If it is not nonsense and you can try it, please try it with
“–enable-macosx-aqua” configure option and teach me the result.
Index: extconf.rb
RCS file: /var/cvs/src/ruby/ext/tk/extconf.rb,v
retrieving revision 1.2.8.4
diff -u -r1.2.8.4 extconf.rb
— extconf.rb 2 Nov 2005 11:28:40 -0000 1.2.8.4
+++ extconf.rb 30 Nov 2005 05:45:16 -0000
@@ -32,6 +32,14 @@
tcltk_framework = find_framework(tcl_framework_header,
tk_framework_header)
+def use_macosx_aqua
- if /darwin/ =~ RUBY_PLATFORM
- enable_config(“macosx-aqua”, true)
- else
- false
- end
+end
unless is_win32
have_library(“nsl”, “t_open”)
have_library(“socket”, “socket”)
@@ -280,6 +288,11 @@
$CPPFLAGS += ’ -DUSE_TCL_STUBS -DUSE_TK_STUBS’ if stubs
$CPPFLAGS += ’ -D_WIN32’ if /cygwin/ =~ RUBY_PLATFORM
- if use_macosx_aqua
- $CPPFLAGS += ’ -DMAC_OSX_TK=1’
- $LDFLAGS += ’ -framework CoreFoundation -framework Carbon’
- end
- if tcltk_framework
if tcl_framework_header
$CPPFLAGS += " -I#{tcl_framework_header}"