#! /bin/sh
PERLBIN="/usr/local/bin/perl"

if [ ! -x $PERLBIN ]
	then
		PERL=`which perl`

		if expr "$PERL" : ".*no perl.*" >/dev/null
			then 
				echo "I can't find perl!"
				echo "Enter location of perl binary \c"
				read PERL
		fi
		echo "Creating symbolic link for:"
		echo "  $PERLBIN -> $PERL OK? y/n"
	        read yorn
		if [ "y" = "$yorn" ]
		        then
	echo			ln -s $PERL $PERLBIN
				echo "perl configured"
		fi
else
	echo "perl is OK"
fi
