#!/bin/bash
$HOME/Trilinos/$1/configure \
  CC=cc \
  CXX=CC \
  CPP="CC -E" \
  F77=f77 \
  CFLAGS="-fastsse" \
  CFLAGS="-fast -Mscalarsse" \
  CXXFLAGS="-fastsse -Minline=levels:10 -DHAVE_MPI_CXX -DMPICH_IGNORE_CXX_SEEK" \
  CXXFLAGS="-fastsse -Minline=levels:20 -DHAVE_MPI_CXX -DMPICH_IGNORE_CXX_SEEK" \
  CXXFLAGS="-Mipa=fast -Minline=levels:20 -DHAVE_MPI_CXX -DMPICH_IGNORE_CXX_SEEK" \
  CXXFLAGS="-fast -Mscalarsse -Minline=levels:10 -DHAVE_MPI_CXX -DMPICH_IGNORE_CXX_SEEK" \
  FFLAGS="-fastsse" \
  CPPFLAGS="" \
  FLIBS='-lpgftnrtl -lnspgc -lpgc -lm' \
  --prefix=$HOME/Trilinos/CRAY_XT3 \
  --with-install="/usr/bin/install -p" \
  --with-incdirs="-I/apps/hdf5-1.6.4/include -I/apps/metis/parmetis-3.1/ -I/apps/metis/parmetis-3.1/METISLib/" \
  --with-ldflags="-L/apps/metis/parmetis-3.1/ -L/apps/hdf5-1.6.4/lib -L/apps/zlib-1.2.3/lib" \
  --with-libs="-lmetis -lhdf5 -lz" \
  --host=x86_64-unknown-linux-gnu \
  --enable-mpi \
  --disable-default-packages \
  --disable-tests \
  --disable-examples \
  --enable-teuchos \
  --enable-epetra \
  --enable-epetraext \
  --enable-epetraext-hdf5 \
  --enable-aztecoo \
  --enable-triutils \
  --enable-galeri \
  --enable-galeri-hdf5 \
  --enable-ifpack \
  --enable-ifpack-metis \
  --enable-amesos \
  --enable-ml \
  --with-ml_metis