Plan for an M&A from the beginning, and you’ll be in better shape than most when acquirers start calling.