Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > cc4674347c0b895ad33a7b698490fb7a > files > 4

mpich2-1.2.1-1mdv2010.1.src.rpm

--- src/packaging/envmods/mpich2.module.in	2009-07-02 15:54:58.000000000 -0400
+++ src/packaging/envmods/mpich2.module.in.new	2009-11-09 10:37:03.524042574 -0500
@@ -4,11 +4,15 @@
 # 
 
 # Define prefix so PATH and MANPATH can be updated.
-setenv        prefix        @prefix@
-setenv        exec_prefix   @exec_prefix@
+setenv        MPI_BIN       @LIBDIR@/@MPILIBNAME@2/bin
+setenv        MPI_SYSCONFIG @sysconfdir@
+setenv        MPI_FORTRAN_MOD_DIR @includedir@
+setenv        MPI_INCLUDE   @includedir@
+setenv        MPI_LIB       @libdir@
+setenv        MPI_MAN       @mandir@
+setenv        MPI_PYTHON_SITEARCH	@bindir@
+setenv        MPI_COMPILER  @MPILIBNAME@2-@ARCH@
+setenv        MPI_SUFFIX    _@MPILIBNAME@2
+setenv        MPI_HOME      @LIBDIR@/@MPILIBNAME@2
 prepend-path  PATH          @bindir@
 prepend-path  MANPATH       @mandir@
-
-# Undefine prefix and exec_prefix which are too generic environment variables.
-unsetenv      prefix
-unsetenv      exec_prefix