#!/bin/sh
#
# MN 2003, 2006
#
# GDAL compilation with GRASS support as plugin
# 64  bit
#################################################
# GDAL/OGR debug: export CPL_DEBUG=ON
#
#################################################
# netcdf and hdf4
#    You need to set up CFLAGS=-DHAVE_NETCDF and
#    use configure --disable-fortran for HDF4
#################################################

#OLD: add for GRASS libgrass support:
#CPPFLAGS="-I/home/neteler/soft/libgrass/gis"
# libgrass support:
#--with-grass=/usr/local/lib
#or
# --with-grass=no

#add for GRASS 6.0 support:
#  --with-grass=$HOME/grass60/dist.i686-pc-linux-gnu \

#Python:
#NOTE: To use gdal_merge.py etc. set
#  export PYTHONPATH=/usr/local/lib64/python2.5/site-packages/osgeo


./configure \
    --with-libs=/usr/lib64 \
  --with-netcdf=no \
  --with-mrsid=no \
  --without-hdf5 \
  --with-python \
  --with-grass=no \
  --with-ogdi=no \
  --without-odbc \
  --with-sqlite \
  --with-pg \
  --with-mysql \
  --with-xerces \
  --with-geotiff=internal --with-libtiff=internal

# now make, make install
# then
#    conf_install_gdal_ogr_grass_plugin.sh
# to create the GDAL-OGR-GRASS plugin.

