#!/bin/bash if [ -z $build_dir ] then build_dir=$(pwd)/.. fi if [ "$build_type" = "Debug" ] then build_type_flag=--enable-debug else build_type_flag="" fi export FC=ifort export H5DIR=$build_dir/bin/hdf5/ export NCDIR=$build_dir/bin/netcdf/ export NFDIR=$build_dir/bin/netcdf/ cd $build_dir/netcdf-c export CPPFLAGS="-I$H5DIR/include/" export LDFLAGS="-L$H5DIR/lib/" ./configure --prefix=$NCDIR --enable-hdf5-swmr --disable-dap $build_type_flag # ./configure --prefix=$NCDIR --disable-dap $build_type_flag make make check make install export LD_LIBRARY_PATH=$NCDIR/lib:$LD_LIBRARY_PATH #cd $build_dir/netcdf-fortran #export CPPFLAGS="-I$NCDIR/include/" #export LDFLAGS="-L$NCDIR/lib/" #./configure --prefix=$NFDIR $build_type_flag #make #make check #make install cd $build_dir