mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in (BASERUBY): check if base ruby is runnable first.
[ruby-core:11900] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
29ab4251f7
commit
ff31ae0141
2 changed files with 23 additions and 17 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Aug 16 16:48:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (BASERUBY): check if base ruby is runnable first.
|
||||
[ruby-core:11900]
|
||||
|
||||
Thu Aug 16 16:46:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (aix): enable shared by default.
|
||||
|
|
35
configure.in
35
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"
|
||||
|
|
Loading…
Reference in a new issue