diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 35 |
2 files changed, 23 insertions, 17 deletions
@@ -1,3 +1,8 @@ +Thu Aug 16 16:48:47 2007 Nobuyoshi Nakada <[email protected]> + + * configure.in (BASERUBY): check if base ruby is runnable first. + [ruby-core:11900] + Thu Aug 16 16:46:07 2007 Nobuyoshi Nakada <[email protected]> * configure.in (aix): enable shared by default. diff --git a/configure.in b/configure.in index dfa56aaf32..653fda5953 100644 --- a/configure.in +++ b/configure.in @@ -3,6 +3,24 @@ AC_INIT() AC_PREREQ(2.58) +AC_ARG_WITH(baseruby, + [ --with-baseruby=RUBY use RUBY as baseruby; RUBY is the pathname of ruby], + [ + case "$withval" in + *ruby*) + BASERUBY=$withval + ;; + *) + AC_MSG_ERROR(need ruby) + ;; + esac + ], + [ + BASERUBY="ruby" + ]) +test "`$BASERUBY -e 'p 42' 2>/dev/null`" = 42 || + AC_MSG_ERROR([executable host ruby is required. use --with-baseruby option.]) + AC_DEFUN([RUBY_MINGW32], [case "$host_os" in cygwin*) @@ -1649,23 +1667,6 @@ if test -z "$MANTYPE"; then fi AC_SUBST(MANTYPE) -AC_ARG_WITH(baseruby, - [ --with-baseruby=RUBY use RUBY as baseruby; RUBY is the pathname of ruby], - [ - case "$withval" in - *ruby*) - BASERUBY=$withval - ;; - *) - AC_MSG_ERROR(need ruby) - ;; - esac - ], - [ - BASERUBY="ruby" - ]) -AC_SUBST(BASERUBY) - arch_hdrdir="${EXTOUT}/include/${arch}/ruby" $MAKEDIRS "${arch_hdrdir}" config_h="${arch_hdrdir}/config.h" |