summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog13
-rw-r--r--bcc32/Makefile.sub2
-rw-r--r--ext/extmk.rb4
-rw-r--r--lib/mkmf.rb8
-rw-r--r--win32/Makefile.sub2
-rw-r--r--wince/Makefile.sub2
6 files changed, 24 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 8de81ac314..174a8beb21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+Fri May 13 23:44:22 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: keep srcdir unexpanded.
+
+ * lib/mkmf.rb (create_makefile): quote topdir and hdrdir if necessary.
+ fixed: [ruby-core:04932]
+
+ * lib/mkmf.rb (configuration), {bcc32,win32,wince}/Makefile.sub: make
+ also INSTALL_PROG and INSTALL_DATA system dependent.
+ fixed: [ruby-core:04931]
+
Fri May 13 17:54:39 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* variable.c (generic_ivar_get): rb_attr_get should not warn.
@@ -29,7 +40,7 @@ Thu May 12 16:52:20 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
Thu May 12 16:31:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/nkf/nkf-utf8/nkf.c: follow nkf 2.0.5
+ * ext/nkf/nkf-utf8/nkf.c: follow nkf 2.0.5
Thu May 12 16:15:01 2005 Tanaka Akira <akr@m17n.org>
diff --git a/bcc32/Makefile.sub b/bcc32/Makefile.sub
index c1987971e7..7c84aaed5a 100644
--- a/bcc32/Makefile.sub
+++ b/bcc32/Makefile.sub
@@ -333,6 +333,8 @@ s,@LN_S@,$(LN_S),;t t
s,@SET_MAKE@,$(SET_MAKE),;t t
s,@CP@,copy > nul,;t t
s,@INSTALL@,copy > nul,;t t
+s,@INSTALL_PROG@,$$(INSTALL),;t t
+s,@INSTALL_DATA@,$$(INSTALL),;t t
s,@LIBOBJS@, acosh.obj crypt.obj erf.obj win32.obj,;t t
s,@ALLOCA@,$(ALLOCA),;t t
s,@DEFAULT_KCODE@,$(DEFAULT_KCODE),;t t
diff --git a/ext/extmk.rb b/ext/extmk.rb
index b5028c21b2..04cefd767b 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -22,9 +22,9 @@ $compiled = {}
$:.replace([Dir.pwd])
require 'rbconfig'
-srcdir = File.expand_path("../..", __FILE__)
+srcdir = File.dirname(File.dirname(__FILE__))
-$:.unshift(srcdir, srcdir+"/lib")
+$:.unshift(srcdir, File.expand_path("lib", srcdir))
$topdir = "."
$top_srcdir = srcdir
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 6123877994..184b9b3269 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -846,8 +846,8 @@ SHELL = /bin/sh
#### Start of system configuration section. ####
srcdir = #{srcdir.gsub(/\$\((srcdir)\)|\$\{(srcdir)\}/) {CONFIG[$1||$2]}}
-topdir = #{$extmk ? CONFIG["topdir"] : $topdir}
-hdrdir = #{$extmk ? CONFIG["hdrdir"] : '$(topdir)'}
+topdir = #{($extmk ? CONFIG["topdir"] : $topdir).quote}
+hdrdir = #{$extmk ? CONFIG["hdrdir"].quote : '$(topdir)'}
VPATH = #{vpath.join(CONFIG['PATH_SEPARATOR'])}
}
drive = File::PATH_SEPARATOR == ';' ? /\A\w:/ : /\A/
@@ -888,8 +888,8 @@ RUBY = #{($nmake && !$extmk && !$configure_args.has_key?('--ruby')) ? '$(ruby:/=
RM = #{config_string('RM') || '$(RUBY) -run -e rm -- -f'}
MAKEDIRS = #{config_string('MAKEDIRS') || '@$(RUBY) -run -e mkdir -- -p'}
INSTALL = #{config_string('INSTALL') || '@$(RUBY) -run -e install -- -vp'}
-INSTALL_PROG = $(INSTALL) -m 0755
-INSTALL_DATA = $(INSTALL) -m 0644
+INSTALL_PROG = #{config_string('INSTALL_PROG') || '$(INSTALL) -m 0755'}
+INSTALL_DATA = #{config_string('INSTALL_DATA') || '$(INSTALL) -m 0644'}
COPY = #{config_string('CP') || '@$(RUBY) -run -e cp -- -v'}
#### End of system configuration section. ####
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 37ad8ff3b9..9509f9cc6b 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -336,6 +336,8 @@ s,@LN_S@,$(LN_S),;t t
s,@SET_MAKE@,$(SET_MAKE),;t t
s,@CP@,copy > nul,;t t
s,@INSTALL@,copy > nul,;t t
+s,@INSTALL_PROG@,$$(INSTALL),;t t
+s,@INSTALL_DATA@,$$(INSTALL),;t t
s,@LIBOBJS@, acosh.obj crypt.obj erf.obj win32.obj,;t t
s,@ALLOCA@,$(ALLOCA),;t t
s,@DEFAULT_KCODE@,$(DEFAULT_KCODE),;t t
diff --git a/wince/Makefile.sub b/wince/Makefile.sub
index 2bc6af5ae9..829ce48c58 100644
--- a/wince/Makefile.sub
+++ b/wince/Makefile.sub
@@ -356,6 +356,8 @@ s,@LN_S@,$(LN_S),;t t
s,@SET_MAKE@,$(SET_MAKE),;t t
s,@CP@,copy > nul,;t t
s,@INSTALL@,copy > nul,;t t
+s,@INSTALL_PROG@,$$(INSTALL),;t t
+s,@INSTALL_DATA@,$$(INSTALL),;t t
s,@LIBOBJS@, acosh.obj crypt.obj erf.obj win32.obj isinf.obj isnan.obj,;t t
s,@ALLOCA@,$(ALLOCA),;t t
s,@DEFAULT_KCODE@,$(DEFAULT_KCODE),;t t