Krishnakant -
Export your 4.0 configuration file, then import it into a new blank/empty 4.0 database.
Backup this newly configured, but data-free, temporary 4.0 database and upgrade it to 2011 - by importing it into a temporary 2011 server (on-premise / virtual machine)
From within this new 2011 configured database you can export the configuration and import it to 2011 online.
Scott.
(There isn't a direct way to import a 4.0 customization export into 2011 as a solution file.)
Scott Sewell, CustomerEffective | http:\\blog.CustomerEffective.com | Twitter:@ScottSewell