\documentclass{minimal}

\usepackage{filecontents}
\begin{filecontents}{RequireGlossaries.sty}
  \NeedsTeXFormat{LaTeX2e}
  \ProvidesPackage{RequireGlossaries}
  \RequirePackage{glossaries}
\end{filecontents}

%\usepackage{RequireGlossaries} % uncomment and comment \usepackage{glossaries}
\usepackage{glossaries}
\usepackage{datatool}

\begin{document}
  DOCUMENT
\end{document}
