rely on the administrator to tell us which is installed because PHP is not reliable (eg GD 2.* functions are available in 4.0.6 and later EVEN WHEN gd 2 is not present ... sigh). So, new config variable $CFG->gdversion