# Check whether --enable-yp-check or --disable-yp-check was given.
if test "${enable_yp_check+set}" = set; then
enableval="$enable_yp_check"
use_yp="yes"
else
use_yp="no"
fi;
# Check whether --with-user or --without-user was given.
if test "${with_user+set}" = set; then
@ -10013,6 +10022,12 @@ fi
clamavgroup=`/usr/bin/nidump group . |grep ${clamav_group}`
fi
if test "$use_yp" = "yes"
then
clamavuser=`ypmatch ${clamav_user} passwd`
clamavgroup=`ypmatch ${clamav_group} group`
fi
if test -z "$clamavuser" || test -z "$clamavgroup"
then
echo "ERROR: User \"$clamav_user\" (and/or group \"$clamav_group\") doesn't exist. Please create it. You can omit this check with the --disable-clamav option."