From: secher Date: Tue, 29 Nov 2005 15:35:01 +0000 (+0000) Subject: debug of check lam X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=605055819a8d5c6c22c78adcaac8051f38b89780;p=modules%2Fkernel.git debug of check lam --- diff --git a/salome_adm/unix/config_files/check_lam.m4 b/salome_adm/unix/config_files/check_lam.m4 index 3d8d9d8b6..7363237a3 100644 --- a/salome_adm/unix/config_files/check_lam.m4 +++ b/salome_adm/unix/config_files/check_lam.m4 @@ -59,8 +59,15 @@ if test "$WITHLAM" = yes; then LIBS_old="$LIBS" LDFLAGS_old="$LDFLAGS" LDFLAGS="$MPI_LIBS $LDFLAGS" - AC_CHECK_LIB(lam,lam_mp_init,,WITHLAM="no") + AC_CHECK_LIB(lam,lam_mp_init,WITHLAM="yes",WITHLAM="no") + if test "$WITHLAM" = "yes";then + MPI_LIBS="-llam $MPI_LIBS" + LIBS="$LIBS -llam" + fi AC_CHECK_LIB(mpi,MPI_Init,WITHLAM="yes",WITHLAM="no") + if test "$WITHLAM" = "yes";then + MPI_LIBS="-lmpi $MPI_LIBS" + fi AC_CHECK_LIB(mpi,MPI_Publish_name,WITHMPI2="yes",WITHMPI2="no") LDFLAGS="$LDFLAGS_old" LIBS="$LIBS_old" @@ -69,7 +76,6 @@ if test "$WITHLAM" = yes; then if test "$WITHLAM" = "yes";then WITHMPI="yes" mpi_ok=yes - MPI_LIBS="$MPI_LIBS -lmpi -llam" CPPFLAGS="-DWITHLAM $CPPFLAGS" else mpi_ok=no