1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* configure.in: checks if cd really succeeded.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-03-07 09:47:05 +00:00
parent 33b9638cfc
commit 31c2bfe881
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Sat Mar 7 18:45:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in: checks if cd really succeeded.
Sat Mar 7 14:24:47 2009 Tanaka Akira <akr@fsij.org>
* configure.in: don't use CONFIG_SHELL for testing shell feature in

View file

@ -302,10 +302,10 @@ mkdir conf$$.dir &&
(cd conf$$.dir && mkdir src build && cd src &&
$as_ln_s ../build . > /dev/null 2>&1 && cd build &&
for chdir in 'cd -P' 'PWD= cd'; do
( /bin/sh -c "$chdir ../src" 2> /dev/null && echo "$chdir" > ../cdcmd) && break
/bin/sh -c "$chdir ../src && echo '$chdir' > cdcmd" 2> /dev/null && break
done)
if test -e conf$$.dir/cdcmd; then
read CHDIR < conf$$.dir/cdcmd 2> /dev/null
if test -e conf$$.dir/src/cdcmd; then
read CHDIR < conf$$.dir/src/cdcmd 2> /dev/null
else
CHDIR=cd
fi