config_query_list NEON_SSL "Which SSL backend do you want for SSL support?" \
                           none \
                           openssl \
                           gnutls &&

if [[ $NEON_SSL != none ]]; then
  config_query_option NEON_OPTS "Enable SSL library thread-safety using POSIX threads?" y \
                                "--enable-threadsafe-ssl=posix" \
                                "--disable-threadsafe-ssl"
fi &&

config_query_option NEON_OPTS "Enable WebDAV support?" y \
                              "--enable-webdav" \
                              "--disable-webdav" &&

if list_find "$NEON_OPTS" "--enable-webdav"; then
  config_query_list NEON_XML "Specify XML Parser:" \
                             expat \
                             libxml2
fi &&

config_query_option NEON_OPTS "Enable runtime debugging messages?" n \
                              "--enable-debug" \
                              "--disable-debug"
