#!/bin/sh

#MN

# configuration script for 5.7.0

./configure --with-gdal=/usr/local/bin/gdal-config \
  --with-postgres-includes=/usr/include/pgsql --with-postgres-libs=/usr/lib \
  --with-mysql --with-mysql-libs=/usr/lib/mysql \
  --with-fftw

if [ $? -eq 1 ]
	then
	 echo "an error occured"
	 exit
fi

### now compile:
echo "Run for compilation: make"

ARCH=`grep ARCH config.status | cut -d'%' -f3`
echo "After that"
echo " GRASS 5.7 start script will be in: ./$BINDIR/bin.$ARCH"
echo " GRASS 5.7 binaries will be in:     ./$PREFIX/dist.$ARCH"
echo "Or run 'make install'
echo ""
echo "Enjoy."
