mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
configure.in: add --with-setup option
* configure.in (--with-setup): add option to select ext/Setup file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e5df8e7bb3
commit
38f3708fc1
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Nov 28 05:10:23 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (--with-setup): add option to select ext/Setup file.
|
||||
|
||||
Fri Nov 28 05:02:29 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* dmyenc.c (Init_enc): separate from dmyext.c for statically
|
||||
|
|
|
@ -3247,7 +3247,14 @@ AS_CASE([",$EXTSTATIC,"], [,static,|*,enc,*], [
|
|||
AC_SUBST(ENCOBJS)
|
||||
AC_SUBST(EXTOBJS)
|
||||
|
||||
if test -f "$srcdir/ext/Setup.$target_os"; then
|
||||
AC_ARG_WITH(setup,
|
||||
AS_HELP_STRING([--with-setup=SETUP], [use extension libraries setup]),
|
||||
[setup=$withval])
|
||||
if test -n "$setup"; then
|
||||
if ! test -f "ext/$setup" -o -f "$srcdir/ext/$setup"; then
|
||||
AC_MSG_ERROR(Setup file $setup not found under ext or $srcdir/ext)
|
||||
fi
|
||||
elif test -f "$srcdir/ext/Setup.$target_os"; then
|
||||
setup="Setup.$target_os"
|
||||
else
|
||||
setup=
|
||||
|
|
Loading…
Reference in a new issue