// DIE's signature file
// Author: Jason Hood <jadoxa@yahoo.com.au>

init("compiler","djgpp");

function detect(bShowType,bShowVersion,bShowOptions)
{
    if(MSDOS.compare("'go32stub'",512))
    {
        sVersion="2";
        bDetected=1;
    }
    else if(MSDOS.isSignaturePresent(0,Math.min(8192,MSDOS.getSize()),"'StubInfoMagic!!'"))
    {
        sVersion="1";
        bDetected=1;
    }

    return result(bShowType,bShowVersion,bShowOptions);
}
