#!/bin/sh

for sambaprefix in ${SAMBAPREFIX} /usr/local /opt /opt/samba /usr/local/samba /usr
do
    for perlprefix in /usr /usr/local /opt /opt/perl
    do
        if [ -x $sambaprefix/bin/wbinfo -a -x $perlprefix/bin/perl ]; then
            exit 0
        fi
    done
done
exit 1
