Improve heuristic for detecting configure

This commit is contained in:
Jack Nagel 2013-11-15 00:15:50 -06:00
parent 0f0bcd4bed
commit ba0cfd3582
2 changed files with 5 additions and 5 deletions

View File

@ -262,8 +262,8 @@ class Cmd
!ENV['VERBOSE'].nil? || !ENV['HOMEBREW_VERBOSE'].nil?
end
def configure?
# configure scripts generated with autoconf 2.56 or later export DUALCASE
ENV.key? 'DUALCASE'
# configure scripts generated with autoconf 2.61 or later export as_nl
ENV.key? 'as_nl'
end
end

View File

@ -53,9 +53,9 @@ module Superenv
delete('GREP_OPTIONS') # can break CMake
delete('CLICOLOR_FORCE') # autotools doesn't like this
# Configure scripts generated by autoconf 2.56 or later export DUALCASE,
# which we use as a heuristic for running under configure
delete('DUALCASE')
# Configure scripts generated by autoconf 2.61 or later export as_nl, which
# we use as a heuristic for running under configure
delete('as_nl')
end
def setup_build_environment(formula=nil)