create_group scanner  &&
if [ "$USEFORK" == "y" ]; then
   OPTS="$OPTS --enable-fork-process"
else
   OPTS="$OPTS --disable-fork-process"
fi &&

if [ "$IPV6" == "y" ]; then
   OPTS="$OPTS --enable-ipv6"
else
   OPTS="$OPTS --disable-ipv6"
fi &&

if [ "$HP5400NVSM" == "y" ]; then
  echo "patching HP5400 for NO_STRING_VERSION_MATCH"
  echo '#define NO_STRING_VERSION_MATCH
' >> $SOURCE_DIRECTORY/backend/hp5400_internal.h
fi &&
if [ $SANE_LOCAL == none ];then
  OPTS="$OPTS --disable-local-backends"
else
export BACKENDS=$SANE_LOCAL
fi &&
default_build
