##
# The setting that we look for here is toggled using the +autocompile+
# command.

if Gem.configuration.[:compile] && Gem.configuration[:compile].match(/true/)
  module Gem
    @post_install_hooks << ::Gem::Compiler.new
  end
end

Enable the post-install hook if appropriate
Enable the post-install hook if appropriate