add some missing checks to the configure script