aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-09 21:33:06 -0700
committerAdam Vandenberg2010-08-09 21:33:06 -0700
commit45753d31add4661f6b5b1b77f725ced36e8ed591 (patch)
tree8a44bc8000c84dae4f13dd52ffa0d3e3d146f50b /Library
parenta62c16e77f7387761a61ccf6abdbd1da31abbad1 (diff)
downloadbrew-45753d31add4661f6b5b1b77f725ced36e8ed591.tar.bz2
brew doctor - add check for non-standard autoconf
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew_doctor.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb
index fa86dba5d..f38bdcb54 100644
--- a/Library/Homebrew/brew_doctor.rb
+++ b/Library/Homebrew/brew_doctor.rb
@@ -431,6 +431,20 @@ def check_for_git
end
end
+def check_for_autoconf
+ which_autoconf = `/usr/bin/which autoconf`.chomp
+ if which_autoconf != '/usr/bin/autoconf'
+ puts <<-EOS.undent
+ You have an "autoconf" in your path blocking the system version at:
+ #{which_autoconf}
+
+ Custom autoconf in general and autoconf 2.66 in particular has issues
+ and will cause some Homebrew formulae to fail.
+
+ EOS
+ end
+end
+
def brew_doctor
read, write = IO.pipe
@@ -458,6 +472,7 @@ def brew_doctor
check_for_symlinked_cellar
check_for_multiple_volumes
check_for_git
+ check_for_autoconf
exit! 0
else