#!/bin/csh
#
#
# TJH : I used ncview-2.1.1

setenv NETCDF /Users/thoar/gnu_4.5.0
setenv UDUNITS /Users/thoar/gnu_4.5.0

./configure CC=/usr/local/bin/gcc \
                --prefix=/Users/thoar/gnu_4.5.0 \
                --x-includes=/usr/X11/include \
                --x-libraries=/usr/X11/lib \
                --with-netcdf_incdir=${NETCDF}/include \
                --with-netcdf_libdir=${NETCDF}/lib \
                --with-udunits2_incdir=${UDUNITS}/include \
                --with-udunits2_libdir=${UDUNITS}/lib || exit 1

make all     || exit 2
make install || exit 3
