From 7fa449a44a15a97ead3af6728a144cf91d004e08 Mon Sep 17 00:00:00 2001 From: eban Date: Mon, 31 Dec 2001 17:48:33 +0000 Subject: * ext/curses/extconf.rb: add dir_config. * Makefile.in (fake.rb): set RUBY_VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 15 ++++++--------- Makefile.in | 6 ++---- ext/curses/extconf.rb | 6 +++--- 3 files changed, 11 insertions(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index a2fc36721b..fe2def7b43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Jan 1 02:16:48 2002 WATANABE Hirofumi + + * ext/curses/extconf.rb: add dir_config. + + * Makefile.in (fake.rb): set RUBY_VERSION. + Mon Dec 31 14:20:46 2001 Nobuyoshi Nakada * parse.y (yycompile): always store copy of filename. @@ -3835,15 +3841,6 @@ Tue Feb 13 23:05:38 2001 WATANABE Hirofumi * dir.c (lstat): should use rb_sys_stat if lstat(2) is not available. -Sun Feb 11 16:00:30 2001 WATANABE Hirofumi - - * eval.c (stack_length): use __builtin_frame_address() only if - GCC and i386 CPU. - - * gc.c (rb_gc, Init_stack): ditto. - - * configure.in: add ac_cv_func_getpgrp_void=yes on DJGPP. - Tue Feb 13 08:43:10 2001 Yukihiro Matsumoto * io.c (rb_io_ctl): do not call ioctl/fcntl for f2, if f and f2 diff --git a/Makefile.in b/Makefile.in index a8d1ad79cd..43ed440f4c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -137,11 +137,9 @@ fake.rb: miniruby$(EXEEXT) @echo ' \ class Object; \ remove_const :RUBY_PLATFORM; \ + remove_const :RUBY_VERSION; \ RUBY_PLATFORM = "@arch@"; \ - if defined? PLATFORM; \ - remove_const :PLATFORM; \ - PLATFORM = "@arch@"; \ - end; \ + RUBY_VERSION = "@MAJOR@.@MINOR@.@TEENY@"; \ CROSS_COMPILING = true; \ end \ ' > $@ diff --git a/ext/curses/extconf.rb b/ext/curses/extconf.rb index 075a147937..ef83af707b 100644 --- a/ext/curses/extconf.rb +++ b/ext/curses/extconf.rb @@ -1,8 +1,8 @@ require 'mkmf' -if( ! $CPPFLAGS ) - $CPPFLAGS = "" -end +dir_config('curses') +dir_config('ncurses') +dir_config('termcap') make=false have_library("mytinfo", "tgetent") if /bow/ =~ RUBY_PLATFORM -- cgit v1.2.3