% xcolor inputs this file and ignores the global document options to choose the engine
% Here we just make sure that a driver is selected
\expandafter\ifx\csname Gin@driver\endcsname\relax
  \errmessage{No graphics driver has been selected. Load graphicx before xcolor.}%
\fi