if enabled xnvctrl; then
case $target_os in
linux)
# Bah. Suse linux doesn't have xnvctrl.
if [ -e /var/db/pkg/x11-drivers/nvidia-drivers*/USE && grep tools /var/db/pkg/x11-drivers/nvidia-drivers*/USE > /dev/null ]
. /etc/os-release
then
case $ID in
require XNVctrl "X11/Xlib.h NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h" XNVCTRLIsNvScreen -lXNVCtrl || disable xnvctrl
*suse*)
else
# This is hopefully temporary.
disable xnvctrl_external
fi
;;
*)
esac
freebsd)
# This is hopefully temporary, and will eventually