Added m4 script to check for gear.