diff --git a/mkconfig.rb b/mkconfig.rb index 14e5829f53..178e934b55 100644 --- a/mkconfig.rb +++ b/mkconfig.rb @@ -48,7 +48,7 @@ File.foreach "config.status" do |line| v_others << v end has_version = true if name == "MAJOR" - elsif /^(?:ac_given_)srcdir=(.*)/ =~ line + elsif /^(?:ac_given_)?srcdir=(.*)/ =~ line v_fast << " CONFIG[\"srcdir\"] = \"" + File.expand_path($1) + "\"\n" has_srcdir = true elsif /^ac_given_INSTALL=(.*)/ =~ line