aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-13 07:41:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-13 07:41:01 +0000
commit770c6a5d4c94db32b35b2cb213d5005a5fa0f2e4 (patch)
treeddc407b8e31c06009dfc7b5e2c5c6bf6fb38033d
parent40a8c0054732ada2b76a0d560e8a000581c73254 (diff)
downloadruby-770c6a5d4c94db32b35b2cb213d5005a5fa0f2e4.tar.gz
configure.in: make BASERUBY fullpath
* configure.in (BOOTSTRAPRUBY): make BASERUBY full path before building ruby to get rid of unexpectedly invoking built ruby. [ruby-core:72065] [Bug #11807] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--configure.in2
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 35ba94492b..1b7c13349c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
-Sun Dec 13 16:29:22 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Dec 13 16:41:01 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (BOOTSTRAPRUBY): make BASERUBY full path before
+ building ruby to get rid of unexpectedly invoking built ruby.
+ [ruby-core:72065] [Bug #11807]
* configure.in (BOOTSTRAPRUBY): use MINIRUBY but not BASERUBY
unless cross compiling. [ruby-core:72065] [Bug #11807]
diff --git a/configure.in b/configure.in
index 5207fad759..cbefd7c1db 100644
--- a/configure.in
+++ b/configure.in
@@ -43,7 +43,7 @@ AC_ARG_WITH(baseruby,
AS_CASE(["$withval"],[*ruby*],[BASERUBY=$withval],[AC_MSG_ERROR(need ruby)])
],
[
- BASERUBY="ruby"
+ AC_PATH_PROG([BASERUBY], [ruby], [false])
])
if test "`RUBYOPT=- $BASERUBY -e 'print 42' 2>/dev/null`" = 42; then
if test "`RUBYOPT=- $BASERUBY --disable=gems -e 'print 42' 2>/dev/null`" = 42; then