From 40c35f214799bb3e431cfa04a57aed2323be898d Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 10 Nov 2005 23:22:03 +0000 Subject: * Makefile.in (OUTFLAG): keep trailing spaces. [ruby-dev:27666] * mkconfig.rb: substitution refereces added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 10 ++++++++-- Makefile.in | 3 ++- mkconfig.rb | 37 +++++++++++++++++++++---------------- 3 files changed, 31 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 773224de0a..210a1b2518 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Nov 11 08:20:56 2005 Nobuyoshi Nakada + + * Makefile.in (OUTFLAG): keep trailing spaces. [ruby-dev:27666] + + * mkconfig.rb: substitution refereces added. + Fri Nov 11 07:44:18 2005 Hirokazu Yamamoto * configure.in: undef HAVE_LINK on BeOS. (link(2) always returns @@ -17,9 +23,9 @@ Tue Nov 8 15:32:27 2005 GOTOU Yuuzou Mon Nov 7 13:43:51 2005 Hidetoshi NAGAI - * ext/tk/stubs.c (_nativethread_consistency_check): use simpler + * ext/tk/stubs.c (_nativethread_consistency_check): use simpler (low cost) way to check whether the Tcl interpreter was compiled - with threads enabled of not. + with threads enabled of not. * ext/tk/tcltklib.c: reduce warnings. diff --git a/Makefile.in b/Makefile.in index 9dde68840e..d03aa007ff 100644 --- a/Makefile.in +++ b/Makefile.in @@ -30,7 +30,8 @@ RDOCTARGET = @RDOCTARGET@ EXTOUT = @EXTOUT@ RIDATADIR = $(DESTDIR)$(datadir)/ri/$(MAJOR).$(MINOR)/system -OUTFLAG = -o +empty = +OUTFLAG = @OUTFLAG@$(empty) CFLAGS = @CFLAGS@ @XCFLAGS@ @ARCH_FLAG@ CPPFLAGS = -I. -I$(srcdir) @CPPFLAGS@ LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@ diff --git a/mkconfig.rb b/mkconfig.rb index b4897e6aaa..bce0021669 100644 --- a/mkconfig.rb +++ b/mkconfig.rb @@ -16,10 +16,10 @@ unless File.directory?(dir = File.dirname(rbconfig_rb)) end version = RUBY_VERSION -rbconfig_rb_tmp = rbconfig_rb + '.tmp' -config = open(rbconfig_rb_tmp, "w") -$orgout = $stdout.dup -$stdout.reopen(config) +def (config = "").write(arg) + concat(arg.to_s) +end +$stdout = config fast = {'prefix'=>TRUE, 'ruby_install_name'=>TRUE, 'INSTALL'=>TRUE, 'EXEEXT'=>TRUE} print %[ @@ -119,10 +119,13 @@ print <