aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMislav Marohnić2011-07-10 20:57:00 +0200
committerAdam Vandenberg2011-07-10 12:18:55 -0700
commitad5c973a3f7d078743d312d9139f37fcb787118f (patch)
tree7da6eeaad97a803750b78b23a20cf4ce457821c7 /Library
parenta14b897e8f856f18b208b2bd37d1081208760d2f (diff)
downloadhomebrew-ad5c973a3f7d078743d312d9139f37fcb787118f.tar.bz2
doctor: don't report wrong location of autoconf if it's missing
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 1d56da375..715edd64f 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -591,11 +591,12 @@ def check_git_newline_settings
end
def check_for_autoconf
- which_autoconf = `/usr/bin/which autoconf`.chomp
- unless (which_autoconf == '/usr/bin/autoconf' or which_autoconf == '/Developer/usr/bin/autoconf')
+ autoconf = `/usr/bin/which autoconf`.chomp
+ safe_autoconfs = %w[/usr/bin/autoconf /Developer/usr/bin/autoconf]
+ unless autoconf.empty? or safe_autoconfs.include? autoconf
puts <<-EOS.undent
An "autoconf" in your path blocking the Xcode-provided version at:
- #{which_autoconf}
+ #{autoconf}
This custom autoconf may cause some Homebrew formulae to fail to compile.