if ($::opt_tex eq 'luatex') {
print TMP <<'END_TMP';
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname directlua\endcsname\relax
\errmessage{LuaTeX not found!}%
\else
\begingroup
\newlinechar=10 %
\endlinechar=\newlinechar %
\ifnum0%
\directlua{%
if tex.enableprimitives then
tex.enableprimitives('TEST', {
'luatexversion',
'outputmode',
'pdfvariable',
'pagewidth',