configure:6352: checking for MPI capability
configure:6372: /usr/bin/gcc -o conftest -g -O2 -I/antigone/luigi/work/software/mpi/install/include -I/usr/include/python2.4 conftest.c -lm -L/usr/lib/python2.4/config -lpython2.4 -Xlinker -export-dynamic -lpthread -ldl -lutil -lm >&5
/tmp/ccEJ7LmX.o: In function `main':
/antigone/luigi/work/software/mpi/pyMPI-2.4b4/configure:6363: undefined reference to `MPI_Init'
collect2: ld returned 1 exit status
configure:6375: $? = 1
configure: failed program was:
#line 6354 "configure"
I am not sure whether it decides that mpi.h should be included from from the current directory, or whether it is looking in the include path i.e. /antigone/luigi/work/software/mpi/install/include , but in any case, I don't think that it is actually finding the declaration of any MPI function.
First I would suggest greping for the function i.e.
grep -n MPI_Finalize /antigone/luigi/work/software/mpi/install/include/*.h
This will at least tell you if the path contains the function in any h file. If that works, then somehow the include is failing in the configure phase.
You usually need to run configure with --with-includes='-Ifoo ...' to additional include paths, however if it could not find the mpi.h file at all, you should have got a different error e.g. Cannot build without mpi headers. use --with-includes=-I/...
In you case it seems to have found it here:
configure:4925: checking for --with-includes
configure:4932: result: -I/antigone/luigi/work/software/mpi/install/include
Also, I'm suprised that you are using gcc, you should be using the openmpi compiler, i.e. your make file has something like:
CC = /home/jcook/mpich/mpich-1.2.6/bin/mpicc
Usually I run my configure like this:
CC=mpicc ./configure --prefix=/home/jcook/python/Python-2.4/bin --with-isatty
So I would try changing the compiler first..