#! /bin/sh

sw=/nfs/cxc/a1
swarch=$sw/$ARCH

if [ ! -d CVS ] || [ -n "$CFLAGS" ] ; then
   prefix=$swarch
   if [ "$CFLAGS" = "" ] ; then
	CFLAGS="-O2"      # Ensure that local release builds are fast,
	FCFLAGS="-O2"	  # and have no -g debug info
   fi
else
   CFLAGS="-g"		# Ensure that development builds DO have -g debug info
   prefix=$sw/src/slgtk/devel
   DEVEL_BUILD=true
fi
export CFLAGS DEVEL_BUILD

make distclean >/dev/null 2>&1

./configure --prefix=$prefix --with-slang=$swarch "$@"
