if [[ $VNC_SERVER != y ]]; then
  mkdir -p "$INSTALL_ROOT"/usr/share/vnc/classes &&
  cp common/javabin/* "$INSTALL_ROOT"/usr/share/vnc/classes &&

  cd unix &&
  local module_dir="$INSTALL_ROOT"/usr/lib/xorg/modules/extensions &&
  ./vncinstall "$INSTALL_ROOT"/usr/bin "$INSTALL_ROOT"/usr/share/man "$module_dir"
else
  cd common &&
  make install &&
  cd .. &&

  cd unix &&
  make install &&

  cd xorg-server/hw/vnc &&
  make install
fi
