On Tue, Apr 01, 2014 at 06:51:12AM -0400, James McCoy wrote: > > On Apr 1, 2014 2:57 AM, "Daniel Shahaf" <d...@daniel.shahaf.name> wrote: > > > > James McCoy wrote on Mon, Mar 31, 2014 at 22:38:49 -0400: > > > Index: configure.ac > > > =================================================================== > > > --- configure.ac (revision 1583233) > > > +++ configure.ac (working copy) > > > @@ -1306,7 +1306,7 @@ > > > if test -n "$RUBY"; then > > > AC_PATH_PROG(RUBY, "$RUBY", none) > > > else > > > - AC_PATH_PROGS(RUBY, ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 > > > ruby193, > none) > > > + AC_PATH_PROGS(RUBY, ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 > > > ruby193, > ruby2.0, none) > > > > Did you mean without an extra comma? > > Yes, I did.
Updated patch attached. Cheers, -- James GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <james...@debian.org>
Index: build/ac-macros/swig.m4 =================================================================== --- build/ac-macros/swig.m4 (revision 1595487) +++ build/ac-macros/swig.m4 (working copy) @@ -185,7 +185,7 @@ rbconfig="$RUBY -rrbconfig -e " for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \ - rubyhdrdir sitedir sitelibdir sitearchdir libdir + rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir do rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG@<:@'$var_name'@:>@"` eval "rbconfig_$var_name=\"$rbconfig_tmp\"" @@ -196,7 +196,13 @@ AC_CACHE_CHECK([for Ruby include path], [svn_cv_ruby_includes],[ if test -d "$rbconfig_rubyhdrdir"; then dnl Ruby >=1.9 - svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch" + svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward" + if test -d "$rbconfig_rubyarchhdrdir"; then + dnl Ruby >=2.0 + svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir" + else + svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch" + fi else dnl Ruby 1.8 svn_cv_ruby_includes="-I. -I$rbconfig_archdir" Index: configure.ac =================================================================== --- configure.ac (revision 1595487) +++ configure.ac (working copy) @@ -1306,7 +1306,7 @@ if test -n "$RUBY"; then AC_PATH_PROG(RUBY, "$RUBY", none) else - AC_PATH_PROGS(RUBY, ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 ruby193, none) + AC_PATH_PROGS(RUBY, ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 ruby193 ruby2.0 ruby2.1, none) fi if test "$RUBY" != "none"; then AC_MSG_CHECKING([rb_hash_foreach]) @@ -1315,7 +1315,7 @@ if test -n "$RDOC"; then AC_PATH_PROG(RDOC, "$RDOC", none) else - AC_PATH_PROGS(RDOC, rdoc rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193, none) + AC_PATH_PROGS(RDOC, rdoc rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193 rdoc2.0 rdoc2.1, none) fi AC_CACHE_CHECK([for Ruby major version], [svn_cv_ruby_major],[ svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`"
signature.asc
Description: Digital signature