Index: /issm/trunk/externalpackages/mpich2/configs/1.4/macmathieu32/configure.sh
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/1.4/macmathieu32/configure.sh	(revision 9987)
+++ /issm/trunk/externalpackages/mpich2/configs/1.4/macmathieu32/configure.sh	(revision 9987)
@@ -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
Index: /issm/trunk/externalpackages/mpich2/configs/1.4/macmathieu64/configure.sh
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/1.4/macmathieu64/configure.sh	(revision 9987)
+++ /issm/trunk/externalpackages/mpich2/configs/1.4/macmathieu64/configure.sh	(revision 9987)
@@ -0,0 +1,11 @@
+#!/bin/bash
+export FCFLAGS=" -m64"
+export FFLAGS=" -m64"
+export CFLAGS=" -arch x86_64"
+export CXXFLAGS=" -arch x86_64"
+./configure \
+	--prefix="$ISSM_TIER/externalpackages/mpich2/install" \
+	--enable-f91 \
+	--enable-sharedlibs=osx-gcc \
+	--enable-shared \
+	--enable-fc
