#!/bin/sh -v
PREFIX=/mit/newtex

# Remaking these would fail.
find . -name '*.info' | xargs touch
touch web2c/tie/tie.c

case ${ATHENA_SYS-`fs sysname`} in
    i386_*)
	# Work around a configure bug.
	LIBS="-L/usr/X11R6/lib"
	export LIBS
	;;
    sun4*)
	configflags="--x-libraries=/usr/openwin/lib"
	;;
esac

./configure --prefix="$PREFIX" --without-maketexmf-default \
    --without-maketexpk-default --without-maketextex-default \
    --without-maketextfm-default --enable-dump-share \
    --with-x --with-ps=gs $configflags
