# $Id: configure.athena,v 1.2 1999/06/03 03:42:05 nathanw Exp $

./configure --enable-nmh-pop --enable-nmh-debug \
	--with-krb4=$ATHTOOLROOT/usr/athena \
	--with-hesiod=$ATHTOOLROOT/usr/athena \
	--with-mts=sendmail --with-editor=emacs

# nmh requires that one edit the config.h by hand.  argh.  so do that
# here.

rm -f configtmp
cp config.h configtmp

case $HOSTTYPE in
"sun4" | "sgi")
	sed -e 's/\/\*.*SYS5.*/#define SYS5	1/' \
	    -e 's/\/\*.*SVR4.*/#define SVR4	1/' \
	    < configtmp > config.h
	;;
"linux")
	sed -e 's/\/\*.*LINUX_STDIO.*/#define LINUX_STDIO	1/' \
	    < configtmp > config.h
	;;
"inbsd")
	sed -e '/NetBSD/,/SCO/s/\/\*.*BIND.*/#define BIND	1/' \
	    -e '/NetBSD/,/SCO/s/\/\*.*BSD42.*/#define BSD42	1/' \
	    -e '/NetBSD/,/SCO/s/\/\*.*BSD44.*/#define BSD44	1/' \
	    < configtmp > config.h
esac

rm -f configtmp
	
