diff options
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | win32/Makefile.sub | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5b0aa218d9..f981d1aa70 100644 --- a/configure.ac +++ b/configure.ac @@ -76,6 +76,7 @@ AS_IF([test "$HAVE_BASERUBY" != no -a "`RUBYOPT=- $BASERUBY --disable=gems -e 'p HAVE_BASERUBY=no ]) AS_IF([test "$HAVE_BASERUBY" = no], [ + AS_IF([test "$cross_compiling" = yes], [AC_MSG_ERROR([executable host ruby is required for cross-compiling])]) BASERUBY="echo executable host ruby is required. use --with-baseruby option.; false" ]) AC_SUBST(BASERUBY) diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 2910901d7e..b3d0a2f76e 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -24,6 +24,14 @@ REVISION_FORCE = PHONY !ifndef CROSS_COMPILING CROSS_COMPILING = no +!else if "$(CROSS_COMPILING)" == "yes" +! if "$(HAVE_BASERUBY)" != "yes" +! error executable host ruby is required for cross-compiling +! endif +!else +! if "$(CROSS_COMPILING)" != "no" +! error Bad CROSS_COMPILING +! endif !endif !ifndef win_srcdir win_srcdir = $(srcdir)/win32 |