From: eap Date: Tue, 1 Mar 2011 12:40:51 +0000 (+0000) Subject: 0021196: [CEA 456] Integration and merge modification for debian packages X-Git-Tag: Start_BR_19998_21191~44 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=872d2e0a04dbd625b47675eb3047fe7a0ea57822;p=modules%2Fkernel.git 0021196: [CEA 456] Integration and merge modification for debian packages Allow a separate MPI include directory --- diff --git a/salome_adm/unix/config_files/check_mpi.m4 b/salome_adm/unix/config_files/check_mpi.m4 index d85f67727..491919aef 100644 --- a/salome_adm/unix/config_files/check_mpi.m4 +++ b/salome_adm/unix/config_files/check_mpi.m4 @@ -28,6 +28,10 @@ AC_ARG_WITH(mpi_lib, [AC_HELP_STRING([--with-mpi_lib=DIR],[directory path of MPICH lib installation])], MPILIBREQUESTED="$withval") +AC_ARG_WITH(mpi_include, + [AC_HELP_STRING([--with-mpi_include=DIR],[directory path of MPICH header file installation])], + MPIINCLUDEREQUESTED="$withval") + AC_ARG_WITH(mpi, [AC_HELP_STRING([--with-mpi=DIR],[root directory path of MPICH installation])], MPIREQUESTED="yes",MPIREQUESTED="no") @@ -59,6 +63,10 @@ if test x"$MPIREQUESTED" = xyes; then MPI_LIBS="-L$MPILIBREQUESTED" fi + if test x"$MPIINCLUDEREQUESTED" != x; then + MPI_INCLUDES="-I$MPIINCLUDEREQUESTED" + fi + CPPFLAGS_old="$CPPFLAGS" CPPFLAGS="$MPI_INCLUDES $CPPFLAGS" AC_CHECK_HEADER(mpi.h,WITHMPI="yes",WITHMPI="no")