summaryrefslogtreecommitdiffstats
path: root/ext/thread/extconf.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-09 11:48:34 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-09 11:48:34 +0000
commitbf96b55e56fcca2646fd2cb9f15b12a9be0c05dd (patch)
tree0b2b65031eef87df776e14a24c7727621519d7f9 /ext/thread/extconf.rb
parentff36d3048a03367f9184912166d419a3820964cd (diff)
downloadruby-bf96b55e56fcca2646fd2cb9f15b12a9be0c05dd.tar.gz
ruby-bf96b55e56fcca2646fd2cb9f15b12a9be0c05dd.tar.xz
ruby-bf96b55e56fcca2646fd2cb9f15b12a9be0c05dd.zip
* ext/thread: Make style fixes (mostly de-K&R'ism) to match the
rest of the source code. * ext/thread: Make USE_MEM_POOLS an extconf option. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/thread/extconf.rb')
-rw-r--r--ext/thread/extconf.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/thread/extconf.rb b/ext/thread/extconf.rb
index f83dacae3..efe1d5dbe 100644
--- a/ext/thread/extconf.rb
+++ b/ext/thread/extconf.rb
@@ -1,2 +1,7 @@
require 'mkmf'
+
+if with_config('mem-pools', true)
+ $CPPFLAGS << ' -DUSE_MEM_POOLS'
+end
+
create_makefile("thread")