Instructions for the Installation of HDF NPP Aggregation Tool
=============================================================

=================
Before you start:
=================
- Make sure HDF5 version 1.8.5 or later is installed on your system.
  Source code or binaries can be downloaded from 
  http://www.hdfgroup.org/HDF5/release/obtain5.html
- Install High-Level library for handling object and region references
  hdf5_hl_region v.1.1.1; the source code can be found at
  ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/NPOESS/source/. 
  For installation instructions see the README.txt file in 
  the source distribution.

========
To build:
========
Assuming gmake and h5cc (HDF5 C compiler) are in your $PATH, just do
    % ./configure --with-hlregion=/path-to-hdf5_hl_region-library
    % gmake

The default C compiler is set to h5cc.
If you want to use a specific h5cc compiler, do
    % env CC=$mypath/h5cc ./configure

To build with different compiler flags, use the CFLAGS variable, e.g.
     % env CFLAGS=-O2 ./configure
This command will set the compiling to "h5cc -O2".

============
To run tests:
============
    % gmake check

==========
To install:
==========
To install,
    % gmake install
These go to nagg/bin of the built directory by default.  If you want
to install it somewhere else such as /usr/local/bin/nagg,
    % gmake prefix=/usr/local install
