case $THIS_SUB_DEPENDS in ACCESS) [[ $QT_ACCESS == "-accessibility" ]] && return 0;; DBUS) is_depends_enabled $SPELL dbus && return 0;; OPENGL) is_depends_enabled $SPELL $(get_spell_provider $SPELL OPENGL) && return 0;; FIREBIRD) is_depends_enabled $SPELL FIREBIRD && return 0;; MYSQL) is_depends_enabled $SPELL mysql && return 0;; POSTGRESQL) is_depends_enabled $SPELL postgresql && return 0;; SQLITE) is_depends_enabled $SPELL sqlite && return 0;; ODBC) is_depends_enabled $SPELL ODBC-MGR && return 0;; SSL) is_depends_enabled $SPELL $(get_spell_provider $SPELL SSL) && return 0;; AUDIO) [[ $QT_AUDIO == "-audio-backend" ]] && return 0;; SQL) [[ $QT_SQL == "y" ]] && return 0;; GTK ) [[ $QT_GTK == "-gtkstyle" ]] && return 0;; *) echo "Eek, unknown subdependency requested!"; return 1;; esac return 1