aww poor guy.
First I would say canned pumpkin- that stuff is a miracle worker with constipation AND diarrhea- go figure
It has to be the pure type, not spiced.
I would also try a warm bath if he will let you.
After the pumpkin see if he will go for a walk to get things moving however the pumpkin should fix the problem rather quickly.