lib/autobuild/packages/autotools.rb in autobuild-1.7.3.rc2 vs lib/autobuild/packages/autotools.rb in autobuild-1.7.3.rc3

- old
+ new

@@ -154,17 +154,10 @@ raise "invalid output of config.status --version" unless output =~ /with options "(.*)"$/ options = Shellwords.shellwords($1) # Add the --prefix option to the configureflags array testflags = ["--prefix=#{prefix}"] + Array[*configureflags] - old_opt = options.find do |o| - if testflags.include?(o) - false - else - name, value = o.split("=") - ENV[name] != value - end - end + old_opt = options.find { |o| !testflags.include?(o) } new_opt = testflags.find { |o| !options.include?(o) } if old_opt || new_opt if Autobuild.verbose Autobuild.message "forcing reconfiguration of #{name} (#{old_opt} != #{new_opt})" end