# remove obsolete options from BITLBEE_OPTS
list_remove BITLBEE_OPTS '--skype=1' &&
list_remove BITLBEE_OPTS '--skype=0' &&
list_remove BITLBEE_OPTS '--skype=plugin' &&
list_remove BITLBEE_OPTS '--msn=1' &&
list_remove BITLBEE_OPTS '--msn=0' &&
list_remove BITLBEE_OPTS '--yahoo=1' &&
list_remove BITLBEE_OPTS '--yahoo=0' &&
list_remove BITLBEE_OPTS '--oscar=1' &&
list_remove BITLBEE_OPTS '--oscar=0' &&

config_query_option BITLBEE_OPTS "Enable plugin support?" y \
                                 "--plugins=1" \
                                 "--plugins=0" &&

config_query_option BITLBEE_OPTS "Enable Twitter protocol?" y \
                                 "--twitter=1" \
                                 "--twitter=0" &&

config_query_option BITLBEE_OPTS "Enable debugging?" n \
                                 "--debug=1" \
                                 "--debug=0" &&

config_query_list BITLBEE_SSL "Which SSL library would you like to use?" \
                              gnutls \
                              openssl \
                              libressl \
                              nss &&

config_query_list BITLBEE_EVENT "Which event handler library would you like to use?" \
                                glib2 \
                                libevent &&

config_query BITLBEE_BITLBEED "Build bitlbeed (to run bitlbee as a non-root user)?" n
