Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get autotools to compile with the Intel compiler?

I want my code to compile with the Intel compiler(s) or with gcc/g++ depending on a configure argument. Is this possible? What do I need to put in my configure.ac and Makefile.am files to make this happen?

like image 676
Daisy Sophia Hollman Avatar asked Aug 14 '09 21:08

Daisy Sophia Hollman


1 Answers

I would do this:

AC_PROG_CC([icc gcc])

This will look for the compilers in the order specified, unless overridden with an argument to ./configure

$ ./confgure CC=gcc
like image 184
freedrull Avatar answered Jan 01 '23 19:01

freedrull