Precisely when it stops being a machine. A machine is something built to serve someone else's purposes. But to think is to have one's own purposes. When a chess playing computer tells its "master", "I don't feel like playing today: go do something else", that will be an intelligent computer. But it will no longer be a machine.