#!/bin/sh
#####################################################################
#
#		Configures SME3 dist
#
#####################################################################

# You may edit the following options to configure for your machine.

ENABLE_OPT="yes"
ENABLE_DBG="no"

OPTFLAGS="-O3"
DBGFLAGS="-g"
export OPTFLAGS
export DBGFLAGS

#alias -x make=gmake

#CC=gcc
#CXX=g++

CC=gcc
CXX=g++

CFLAGS="-w"
# For Origin 2000 n32 build.
#CFLAGS="-n32 -mips4"

export CC
export CXX
export CFLAGS

SME3_DIR=/Applications/SME/sme-3.2.72
TARGET=/Applications/SME
#GRASS_INCLUDE=$GIS_BASE/src/include/
#GRASS_LIB=$GIS_BASE/src/libes/LIB.sun5
#MPI_VERSION=1.1
#MPI_INCLUDE=/local/mpich/$MPI_VERSION/include
#MPI_LIB=/local/mpich/$MPI_VERSION/lib/solaris/ch_p4
#HDF_INCLUDE=/local/include
#HDF_LIB=/local/lib
JDK_DIR=/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home
GNOME_XML_DIR=/usr/local
TCL_VERSION=8.3

cd $SME3_DIR
 
./configure --enable-mpi=no --enable-network=yes --enable-debug=$ENABLE_DBG --enable-opt=no --enable-hdf=no --enable-grass=no  --prefix=$TARGET --enable-tcl=yes  --enable-java=yes --with-jdk_dir=$JDK_DIR --build=powerpc-apple-machten --host=powerpc-apple-machten --target=powerpc-apple-machten --with-xml_dir=$GNOME_XML_DIR --with-debugger=gdb

#--enable-opt=$ENABLE_OPT
#--host=powerpc-apple-darwin6.4
# --host=powerpc-apple-machten
# The configure script should complete with the message "Configure completed successfully!".
# Check for error messages after completion.
# If configure is successful, install the SME using "make install".
# If you get lost, send email to: maxwell@cbl.umces.edu.









