From 60f2e082efdeb2a25dfdfece29c013cbf7536434 Mon Sep 17 00:00:00 2001
From: nadolski <nadolski@9a6e40ed-f3a0-4838-9b4a-bf418f78e88d>
Date: Sat, 4 Feb 2012 18:55:32 +0000
Subject: [PATCH] Bug on ISEI cannot find mpi.h library Force it

---
 tracy/configure.ac | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/tracy/configure.ac b/tracy/configure.ac
index b01dafd..08df1c1 100644
--- a/tracy/configure.ac
+++ b/tracy/configure.ac
@@ -57,7 +57,7 @@ AC_ARG_ENABLE([mpi_exec],
 	[mpi_exec=${enableval}], [mpi_exec=no])
 
 # Checks for libraries.
-#AC_SEARCH_LIBS([mpi_init], [mpichcxx], [have_pthreads=yes])
+AC_SEARCH_LIBS([mpi_init], [mpichcxx], [have_pthreads=yes])
 
 # Force malloc(0) to be NULL pointer
 AC_FUNC_MALLOC
@@ -68,10 +68,10 @@ AC_FUNC_MALLOC
 
 # Checks for header files.
 AC_CHECK_HEADERS([stdlib.h string.h])
-
 # If MPI compitation asked, check whether header is available
 if test "x${mpi_exec}" = xyes; then
   have_mpi=no 
+  # seems not working on the Cluser WHY
   AC_CHECK_HEADERS([mpi.h], [have_mpi=yes], [have_mpi=no])
   
   if test "x${have_mpi}" = xno; then
@@ -89,6 +89,9 @@ if test "x${mpi_exec}" = xyes; then
 	-----------------------------------------])
    AC_DEFINE([MPI_EXEC], 1, [mpi executation enabled])
   fi
+  # BUG sur ISEI pas possible trouver mpi.h
+   AC_DEFINE([MPI_EXEC], 1, [mpi executation enabled])
+   have_mpi=yes
 fi
 
 # Configure supported platforms
@@ -108,10 +111,11 @@ case $target_os in
 	  F77=mpiifort
 	  CXX=mpiicpc
 	else
-      AC_MSG_NOTICE([Intel compilation for $HOSTNAME])
+	  # no mpi
+          AC_MSG_NOTICE([Intel compilation for $HOSTNAME])
 	  CC=icc
-      F77=ifort
-      CXX=icpc	
+          F77=ifort
+          CXX=icpc	
 	fi
     fi;;
   
-- 
GitLab