optional_depends SSL \
                 "" \
                 "" \
                 "to build NetSSL_OpenSSL and Crypt support" &&
optional_depends ODBC-MGR \
                 "" \
                 "" \
                 "to build Data/ODBC support" &&
optional_depends MYSQL \
                 "" \
                 "" \
                 "to build Data/MySQL support" &&

if ! is_depends_enabled $SPELL SSL; then
    OMIT="NetSSL_OpenSSL,Crypto"
fi &&

if ! is_depends_enabled $SPELL $(get_spell_provider $SPELL ODBC-MGR); then
    if [ ${#OMIT} -gt 0 ]; then
        OMIT="${OMIT},"
    fi &&
    OMIT="${OMIT}Data/ODBC"
fi &&

if ! is_depends_enabled $SPELL mysql; then
    if [ ${#OMIT} -gt 0 ]; then
        OMIT="${OMIT},"
    fi &&
    OMIT="${OMIT}Data/MySQL"
fi
