[ --enable-id-check Use id utility instead of /etc/passwd parsing],
use_id="yes", use_id="no")
AC_ARG_ENABLE(yp-check,
[ --enable-yp-check Use ypmatch utility instead of /etc/passwd parsing],
use_yp="yes", use_yp="no")
dnl clamav user
AC_ARG_WITH(user,
[ --with-user=uid name of the clamav user (default=clamav).],
@ -435,6 +439,12 @@ then
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."