#!/bin/sh
#
# This is a script to run ./configure for GRASS 5.0.0
# under Windows/Cygwin
#
# Markus Neteler
# 
# 12/2002
#
# - enables generic windows driver (no XServer needed)
# - enables PostgreSQL (install or disable below)
# - disables all other stuff
# - added:  --with-libs=/usr/local/lib to access lrpclib (sunrpc)
#
# - problem: png is strange on cygwin

CFLAGS="-O3" LDFLAGS="-s" ./configure --with-libs=/usr/local/lib \
 --enable-w11 --without-odbc --without-opengl --without-tcltk \
 --with-postgres-includes=/usr/include/postgresql --without-motif \
 --without-lapack --without-blas --without-fftw --without-freetype \
 --without-gd --without-png

if [ $? -eq 1 ]
then
 echo "Oops. An error occured!"
 exit
fi

make pre-compile

echo
echo Now compile with 'make' ... 

