View Full Version : Change Default Compiler With Autotools?

April 16th, 2009, 12:02 AM
I have written a program in C and have successful used autotools to generate a Makefile that works.

However, the code compiles using gcc. (This is usually a good thing.) However, my collaborators would like the code to use the intel compilers to give the code some major speed boosts. The intel c compiler is icc.

Is there a way to make autotools default to the intel compiler? Do I alter AC_PROG_CC in configure.ac in some way? Thanks.