\ifx\pdfoutput\undefined Actually, this test works in TL 2004 (but not in current teTeX, last I knew). A sample document is needed to know for sure if that is the problem.