#!/bin/sh
./configure \
	--prefix=$ISSM_DIR\
	--with-matlab-dir=$MATLAB_DIR \
	--with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
	--with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \
	--with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include  \
	--with-mpi-libflags="-L$ISSM_DIR/externalpackages/mpich/install/lib/ -lmpich" \
	--with-graphics-lib="/usr/lib/x86_64-linux-gnu/libX11.so" \
	--with-cxxoptflags="-mtune=barcelona -ffast-math -O3 -msse4.2 -Wno-write-strings "\
	--with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install/ \
	--with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install/ \
	--with-gsl-dir=$ISSM_DIR/externalpackages/gsl/install\
	--with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \
	--with-numthreads=18  \
	--enable-debugging 
