'Checks the presence of a ``configure`` file after the
autoreconf phase. If it is found sets a module attribute
appropriately, otherwise raises an error.
:raises RuntimeError: if a configure script is not found in
:py:meth:`~AutotoolsPackage.configure_directory`'

@run_after('autoreconf')
def set_configure_or_die(self):

    if (not os.path.exists(self.configure_abs_path)):
        msg = 'configure    script    not    found    in    {0}'
        raise RuntimeError(msg.format(self.configure_directory))
    inspect.getmodule(self).configure = Executable(self.configure_abs_path)
