I am buying a new iMac and would like to know if I will have to upgrade Adobe CS 4 software.
All bets are off with CS4 on 10.8. You can try, though.
As for upgrading you have no upgrade path except to Creative Cloud.
Retrieving data ...