Fix implementation of configure check related to TM_IN_TIME

The logic introduced in commit bfbc549 was incorrect, it should be
inversed.