Index: mkconfig.rb =================================================================== --- mkconfig.rb (revision 567) +++ mkconfig.rb (working copy) @@ -37,11 +37,13 @@ has_version = false File.foreach "config.status" do |line| next if /^#/ =~ line - if /^s[%,]@program_transform_name@[%,]s,(.*)/ =~ line + mkbang = /(?:#{Regexp::quote("|#_!!_#|")})?/ + case line + when /^s[%,]@program_transform_name@[%,]s,(.*)/ next if $install_name ptn = $1.sub(/\$\$/, '$').split(/,/) #' v_fast << " CONFIG[\"ruby_install_name\"] = \"" + "ruby".sub(/#{ptn[0]}/,ptn[1]) + "\"\n" - elsif /^s[%,]@(\w+)@[%,](.*)[%,]/ =~ line + when /^s[%,]@(\w+)@[%,]#{mkbang}(.*)[%,]/ name = $1 val = $2 || "" next if /^(?:ac_.*|DEFS|configure_input)$/ =~ name @@ -59,7 +61,7 @@ v_others << v end has_version = true if name == "MAJOR" - elsif /^(?:ac_given_)?INSTALL=(.*)/ =~ line + when /^(?:ac_given_)?INSTALL=(.*)/ v_fast << " CONFIG[\"INSTALL\"] = " + $1 + "\n" end # break if /^CEOF/