#!/bin/sh

if [ "$1" = r5 ] || [ "$1" = R5 ]; then
	echo 'Running configure for X11R5.'
	echo 'FOIL = -DNO_FOIL_X_WCHAR_T' > make.foil
	./configure --prefix=foo \
		--x-includes=/usr/X386/include \
		--x-libraries=/usr/X386/lib

else
	echo 'Running configure for X11R6.'
	echo 'FOIL = -DFOIL_X_WCHAR_T' > make.foil
	./configure --prefix=foo \
		--x-includes=/usr/X11R6/include \
		--x-libraries=/usr/X11R6/lib
fi
