\ProvidesPackage{pdfrack}[2007/10/15 A hack for using psfrag and pdflatex]
\RequirePackage{psfrag}
\RequirePackage{ifpdf}
\RequirePackage{graphicx}

\ifpdf
 \newcommand{\pdfrackincludegraphics}[2][]{\includegraphics[]{#2}}
\else
 \newcommand{\pdfrackincludegraphics}[2][]{\includegraphics[#1]{#2}}
\fi

% Just a command that hide its arguments
% It is used to ``hide'' some unexpected \pdfrackincludegraphics
\newcommand{\pdfracknullcommand}[2][]{}