# Extconf of tcltklib for Aqua on MacOS X Tiger

**URL:** <https://www.ruby-forum.com/t/extconf-of-tcltklib-for-aqua-on-macos-x-tiger/51056>\
**Category:** Ruby\
**Created:** [November 30, 2005, 7:02am UTC](https://www.ruby-forum.com/t/extconf-of-tcltklib-for-aqua-on-macos-x-tiger/51056 "2005-11-30T07:02:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nagai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c68b51/32.png) [@nagai](https://www.ruby-forum.com/u/nagai)\
**Post date:** [November 30, 2005, 7:02am UTC](https://www.ruby-forum.com/t/extconf-of-tcltklib-for-aqua-on-macos-x-tiger/51056/1 "2005-11-30T07:02:43Z")

</div>

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}"

---

<div class="post-metadata">

**Author:** ![nagai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c68b51/32.png) [@nagai](https://www.ruby-forum.com/u/nagai)\
**Post date:** [November 30, 2005, 7:10am UTC](https://www.ruby-forum.com/t/extconf-of-tcltklib-for-aqua-on-macos-x-tiger/51056/2 "2005-11-30T07:10:50Z")

</div>

From: Hidetoshi NAGAI [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: extconf of tcltklib for Aqua on MacOS X Tiger  
Date: Wed, 30 Nov 2005 15:01:47 +0900  
Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> If it is not nonsense and you can try it, please try it with  
> “–enable-macosx-aqua” configure option and teach me the result.

Preferably, please try on Ruby1.8.4-preview.  
If it is valid, I want to adopt it for the next release of Ruby.

---

<div class="post-metadata">

**Author:** ![nagai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/c68b51/32.png) [@nagai](https://www.ruby-forum.com/u/nagai)\
**Post date:** [December 1, 2005, 3:38am UTC](https://www.ruby-forum.com/t/extconf-of-tcltklib-for-aqua-on-macos-x-tiger/51056/3 "2005-12-01T03:38:32Z")

</div>

From: Hidetoshi NAGAI [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: extconf of tcltklib for Aqua on MacOS X Tiger  
Date: Wed, 30 Nov 2005 15:08:18 +0900  
Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> Preferably, please try on Ruby1.8.4-preview.  
> If it is valid, I want to adopt it for the next release of Ruby.

1.8.4-preview2 is available. So please try on 1.8.4-preview2.
