#!/bin/sh
if [ `uname -s` != 'FreeBSD' ];
then
echo "This script is for FreeBSD ONLY, exiting"
exit
fi
mkdir /usr/expect-build
cd /usr/expect-build
tar xfzv expect.tar.gz
fetch http://expect.nist.gov/expect.tar.gz
tar xfzv expect.tar.gz
cd expect-*
export LDFLAGS="-lutil"
./configure --enable-shared \
--with-tclconfig=/usr/local/lib/tcl8.3 \
--with-tclinclude=/usr/local/include/tcl8.3
make
make install