How to compile the FFTW libraries with correct architecture?

Solutions Collect From Internet About “How to compile the FFTW libraries with correct architecture?”

I wanted to delete my Question. But then I saw that somebody has it as a favorite question so maybe he has the same “stupid” mistake like me.

I was getting all the libraries of architecture x86_64 because I was making a stupid mistake. It tokes all this time to find it. I was adding sudo
for every make and configure. So thats why this scrip was not working correctly .