From a8fcae0858458eeed0504a0f91071146bac8fb74 Mon Sep 17 00:00:00 2001 From: muraken Date: Thu, 18 Feb 2010 13:33:25 +0000 Subject: [PATCH] * confiure.in: new --with-ext and --with-out-ext options for extmk. * tool/mkconfig.rb: normalizing --with-out-ext to --without-ext. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ configure.in | 6 ++++++ tool/mkconfig.rb | 5 ++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 76cd12847a..fc9e4fd52e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Feb 18 22:28:00 2010 Kenta Murata + + * confiure.in: new --with-ext and --with-out-ext options for extmk. + * tool/mkconfig.rb: normalizing --with-out-ext to --without-ext. + Thu Feb 18 21:50:00 2010 Tanaka Akira * pack.c (pack_unpack): call PACK_ITEM_ADJUST for 'Q'. diff --git a/configure.in b/configure.in index 513898d3c7..4542bda2e4 100644 --- a/configure.in +++ b/configure.in @@ -1918,6 +1918,12 @@ AS_CASE(["$target_os"], [nextstep* | openstep* | rhapsody* | darwin*], [ STRIP='strip -A -n']) +AC_ARG_WITH(ext, + AC_HELP_STRING([--with-ext=EXTS], + [pass to --with-ext option of extmk.rb])) +AC_ARG_WITH(out-ext, + AC_HELP_STRING([--with-out-ext=EXTS], + [pass to --without-ext option of extmk.rb])) EXTSTATIC= AC_SUBST(EXTSTATIC)dnl AC_ARG_WITH(static-linked-ext, diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb index df3c35fb80..ac24821829 100755 --- a/tool/mkconfig.rb +++ b/tool/mkconfig.rb @@ -111,7 +111,10 @@ File.foreach "config.status" do |line| end end end - val.gsub!(/ +(?!-)/, "=") if name == "configure_args" && /mswin32/ =~ RUBY_PLATFORM + if name == "configure_args" + val.gsub!(/ +(?!-)/, "=") if /mswin32/ =~ RUBY_PLATFORM + val.gsub!(/--with-out-ext/, "--without-ext") + end val = val.gsub(/\$(?:\$|\{?(\w+)\}?)/) {$1 ? "$(#{$1})" : $&}.dump if /^prefix$/ =~ name val = "(TOPDIR || DESTDIR + #{val})"