Issue #4999 has been updated by Shyouhei Urabe.


Hmm, the autoconf I used to ship the 1.8.7 was autoconf 2.65.  Is it perhaps not a MinGW specific issue but an autoconf 2.67 problem?
----------------------------------------
Bug #4999: configure.in issues are breaking the build under MinGW
http://redmine.ruby-lang.org/issues/4999

Author: Luis Lavena
Status: Open
Priority: Normal
Assignee: 
Category: build
Target version: 1.9.x
ruby -v: ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]


At r32461, configure.in is generating a warning during autoconf:

<pre><code>
sh -c "autoconf"
): you should use literals: AC_LIBOBJ(\
/mingw/src/autoconf/26/autoconf-2.67/lib/autoconf/general.m4:2929: AC_LIBOBJ is expanded from...
/mingw/src/autoconf/26/autoconf-2.67/lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
/mingw/src/autoconf/26/autoconf-2.67/lib/autoconf/functions.m4:60: AC_CHECK_FUNC is expanded from...
/mingw/src/autoconf/26/autoconf-2.67/lib/autoconf/functions.m4:133: AC_REPLACE_FUNCS is expanded from...
configure.in:1354: the top level
</code></pre>

Which results in the following failure during configure:

<pre><code>
checking for strerror... yes
../../../../ruby/configure: command substitution: line 13981: unexpected EOF while looking for matching `"'
../../../../ruby/configure: command substitution: line 13982: syntax error: unexpected end of file
checking for "
if eval test "x$" = xyes; then :
  printf %s\n #define... ../../../../ruby/configure: eval: line 2204: unexpected EOF while looking for matching `"'
../../../../ruby/configure: eval: line 2205: syntax error: unexpected end of file
../../../../ruby/configure: command substitution: line 13987: unexpected EOF while looking for matching `"'
../../../../ruby/configure: command substitution: line 13988: syntax error: unexpected end of file
../../../../ruby/configure: line 13987: $as_tr_cpp`: command not found
../../../../ruby/configure: eval: line 2251: unexpected EOF while looking for matching ``'
../../../../ruby/configure: eval: line 2252: syntax error: unexpected end of file
../../../../ruby/configure: eval: line 2256: unexpected EOF while looking for matching ``'
../../../../ruby/configure: eval: line 2257: syntax error: unexpected end of file
yes
checking for isnan... (cached) yes
checking for finite... (cached) yes
checking for isinf... (cached) yes
checking for hypot... yes
checking for acosh... yes
checking for erf... yes
checking for tgamma... yes
checking for lgamma_r... no
checking for cbrt... yes
../../../../ruby/configure: command substitution: line 14178: unexpected EOF while looking for matching `"'
../../../../ruby/configure: command substitution: line 14179: syntax error: unexpected end of file
../../../../ruby/configure: line 14262: syntax error near unexpected token `('
../../../../ruby/configure: line 14262: `  $as_echo_n "(cached) " >&6'
</code></pre>



-- 
http://redmine.ruby-lang.org