diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb
index a7bc9c45deb3e3b62fcd04a948599ecb05d8a223..d452ae452bb464ae6bc0a2e9f6bf15ead965ba98 100644
--- a/Library/Homebrew/requirements.rb
+++ b/Library/Homebrew/requirements.rb
@@ -124,6 +124,11 @@ class MPIDependency < Requirement
   end
 
   def satisfied?
+    # we have to assure the ENV is (almost) as during the build
+    orig_PATH = ENV['PATH']
+    require 'superenv'
+    ENV.setup_build_environment
+    ENV.userpaths!
     @lang_list.each do |lang|
       case lang
       when :cc, :cxx, :f90, :f77
@@ -134,6 +139,9 @@ class MPIDependency < Requirement
       end
     end
 
+    # Restore the original paths
+    ENV['PATH'] = orig_PATH
+
     @unknown_langs.empty? and @non_functional.empty?
   end