[netcdf-hdf] Failing to compiler hdf5

I am failing to compile hdf5 to be used for netcdf-4 compilation support.
What could be the alternative?

-- 
 Syed Ahsan Ali Bokhari
 Electronic Engineer
 Research & Development Division
 Pakistan Meteorological Department H-8/2, Islamabad.
 Phone # off +92519250361
 Cell # +923155145014
 Fax # +92519250368
 www.pmd.gov.pk