Take him to the Vet to be sure because you can't get a diagnoses over the Internet. Our dog had the same thing when we first brought her home, green gunk in the corners of her eyes, and it turned out to NOT be an infection. The vet said it could be allergies or even stress but to wait and see and it cleared up over the next week or so. When in doubt, see the vet.