aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-09 22:15:10 -0700
committerAdam Vandenberg2010-08-09 22:15:10 -0700
commit23ae686a9ae85569f21a7fbc6e8710dfc00781e5 (patch)
tree416e0a006064ed12de9fc3ecbf2271ae7f6fcbef /Library
parent5615f9d0a95c09cc53e8270ca7dd64237663f3ff (diff)
downloadhomebrew-23ae686a9ae85569f21a7fbc6e8710dfc00781e5.tar.bz2
brew doctor - add libiconv check
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew_doctor.rb25
1 files changed, 23 insertions, 2 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb
index 204337754..fae8939b0 100644
--- a/Library/Homebrew/brew_doctor.rb
+++ b/Library/Homebrew/brew_doctor.rb
@@ -310,8 +310,9 @@ def check_pkg_config_paths
end
def check_for_gettext
- if File.exist? "#{HOMEBREW_PREFIX}/lib/libgettextlib.dylib" or
- File.exist? "#{HOMEBREW_PREFIX}/lib/libintl.dylib"
+ if %w[lib/libgettextlib.dylib
+ lib/libintl.dylib
+ include/libintl.h ].any? { |f| File.exist? "#{HOMEBREW_PREFIX}/#{f}" }
puts <<-EOS.undent
gettext was detected in your PREFIX.
@@ -322,6 +323,26 @@ def check_for_gettext
otherwise have a `depends_on 'gettext'` will pick up gettext anyway
during the `./configure` step.
+ If you have a non-Homebrew provided gettext, other problems will happen
+ especially if it wasn't compiled with the proper architectures.
+
+ EOS
+ end
+end
+
+def check_for_iconv
+ if %w[lib/libiconv.dylib
+ include/iconv.h ].any? { |f| File.exist? "#{HOMEBREW_PREFIX}/#{f}" }
+ puts <<-EOS.undent
+ libiconv was detected in your PREFIX.
+
+ Homebrew doesn't provide a libiconv formula, and expects to link against
+ the system version in /usr/lib.
+
+ If you have a non-Homebrew provided libiconv, many formulae will fail
+ to compile or link, especially if it wasn't compiled with the proper
+ architectures.
+
EOS
end
end