How to compile gcc from source?

How to use this config to build the gcc from source in any linux distribution? eg. ubuntu