diff --git a/ChangeLog b/ChangeLog index 4b9a7be8ff..30525a47b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Mar 12 02:10:57 2009 Tanaka Akira + + * configure.in: strip spaces from ruby_version. + Sun C 5.9 SunOS_i386 Build47_dlight 2007/05/22 generates + `ruby_version= 1 "." 9 "." 1'. + Thu Mar 12 01:18:09 2009 Nobuyoshi Nakada * dir.c (dir_seek): use long for seekdir(). diff --git a/configure.in b/configure.in index a8ab5e1542..43ddf738e2 100644 --- a/configure.in +++ b/configure.in @@ -2246,7 +2246,7 @@ if test ${RUBY_LIB_VERSION_STYLE+set}; then echo '#include "version.h"' echo 'ruby_version=RUBY_LIB_VERSION' } > conftest.c - ruby_version="`$CPP -I"${srcdir}" conftest.c | grep '^ruby_version='`" + ruby_version="`$CPP -I"${srcdir}" conftest.c | grep '^ruby_version=' | tr -d ' '`" eval $ruby_version else RUBY_LIB_VERSION="\"${ruby_version}\""