I am having trouble configuring OpenMPI-1.6.4 with the Intel C/C++ composer (12.0.2). My OS is OSX 10.7.5.

I am not a computer whizz so I hope I can explain what I did properly:

1) In bash, I did source /opt/intel/bin/compilervars.sh intel64 
and then echo PATH showed: 
/opt/intel/composerxe-2011.2.142/bin/intel64:/opt/intel/composerxe-2011.2.142/mpirt/bin/intel64:/opt/intel/composerxe-2011.2.142/bin:/Library/Frameworks/EPD64.framework/Versions/Current/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:.:/Library/Frameworks/EPD64.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

2) which icc and which icpc showed:
/opt/intel/composerxe-2011.2.142/bin/intel64/icc
and
/opt/intel/composerxe-2011.2.142/bin/intel64/icpc

So that all seems okay to me. Still when I do
./configure CC=icc CXX=icpc F77=ifort FC=ifort --prefix=/opt/openmpi-1.6.4
from the folder in which the extracted OpenMPI files sit, I get

============================================================================
== Configuring Open MPI
============================================================================

*** Startup tests
checking build system type... x86_64-apple-darwin11.4.2
checking host system type... x86_64-apple-darwin11.4.2
checking target system type... x86_64-apple-darwin11.4.2
checking for gcc... icc
checking whether the C compiler works... no
configure: error: in `/Users/geraldinehochman-klarenberg/Projects/openmpi-1.6.4':
configure: error: C compiler cannot create executables
See `config.log' for more details

I'd really appreciate any pointers on how to solve this, because I'm running out of ideas on how to solve this (and so seems Google).

Thanks!
Geraldine