optional_depends openssl \
                 "" \
                 "" \
                 "to build NetSSL_OpenSSL and Crypt support" &&
optional_depends unixodbc \
                 "" \
                 "" \
                 "to build Data/ODBC support" &&
optional_depends mysql \
                 "" \
                 "" \
                 "to build Data/MySQL support" &&

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

if ! is_depends_enabled $SPELL unixodbc; 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
