# remove obsolete flags
if list_find "$LIBRESSL_OPTS" "--enable-libtls"; then
  list_remove "LIBRESSL_OPTS" "--enable-libtls"
fi &&

if list_find "$LIBRESSL_OPTS" "--disable-libtls"; then
  list_remove "LIBRESSL_OPTS" "--disable-libtls"
fi
