Index: /issm/trunk/externalpackages/mpich2/configs/1.3.1/astrid/configure.sh
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/1.3.1/astrid/configure.sh	(revision 8182)
+++ /issm/trunk/externalpackages/mpich2/configs/1.3.1/astrid/configure.sh	(revision 8182)
@@ -0,0 +1,4 @@
+#!/bin/bash
+export CFLAGS="$CFLAGS -fPIC"
+export FFLAGS="$FFLAGS -fPIC"
+./configure --prefix="$ISSM_TIER/externalpackages/mpich2/install" --enable-shared --enable-sharedlibs=gcc --enable-f91=gfortran 
Index: /issm/trunk/externalpackages/mpich2/configs/1.3.1/macmathieu/configure.sh
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/1.3.1/macmathieu/configure.sh	(revision 8182)
+++ /issm/trunk/externalpackages/mpich2/configs/1.3.1/macmathieu/configure.sh	(revision 8182)
@@ -0,0 +1,19 @@
+#!/bin/bash
+export CFLAGS=" -arch i386"
+export CXXFLAGS=" -arch i386"
+export CPPFLAGS=" -arch i386"
+export FFLAGS=" -arch i386"
+./configure --prefix="$ISSM_TIER/externalpackages/mpich2/install" --enable-f91=gfortran --enable-sharedlibs=osx-gcc --enable-shared --enable-fc=/usr/local/bin/gfortran
+
+#CFLAGS      C compiler flags
+#LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
+#nonstandard directory <lib dir>
+#CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
+#headers in a nonstandard directory <include dir>
+#F77         Fortran 77 compiler command
+#FFLAGS      Fortran 77 compiler flags
+#F90         Fortran 90 compiler command
+#F90FLAGS    Fortran 90 compiler flags
+#CXX         C++ compiler command
+#CXXFLAGS    C++ compiler flags
+#CPP         C preprocessor
