diff options
Diffstat (limited to 'http/w3m/CONFIGURE')
-rwxr-xr-x | http/w3m/CONFIGURE | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/http/w3m/CONFIGURE b/http/w3m/CONFIGURE index 546d82a078..c263adacf1 100755 --- a/http/w3m/CONFIGURE +++ b/http/w3m/CONFIGURE @@ -1,3 +1,5 @@ +. $GRIMOIRE/config_query_multi.function + config_query_list W3M_TERM_LIB \ "Which terminal library do you want?" \ ncurses \ @@ -8,7 +10,7 @@ config_query_list W3M_IMAGE_LIB \ imlib \ gtk2 \ gdk-pixbuf && -. $GRIMOIRE/config_query_multi.function + config_query_multi W3M_INLINE_IMAGE \ "Enable inline image handlers" \ AUTO \ @@ -27,11 +29,16 @@ config_query_option W3M_OPTS \ y \ "--enable-m17n" \ "--disable-m17n" && -config_query_option W3M_OPTS \ + +if $(echo "$W3M_OPTS" | grep -q -- "--enable-m17n") +then + config_query_option W3M_OPTS \ "Enable unicode?" \ y \ "--enable-unicode" \ - "--disable-unicode" && + "--disable-unicode" +fi && + config_query_option W3M_OPTS \ "Enable NLS?" \ y \ @@ -42,16 +49,21 @@ config_query_option W3M_OPTS \ y \ "--enable-color" \ "--disable-color" && -config_query_option W3M_OPTS \ + +if $(echo "$W3M_OPTS" | grep -q -- "--enable-color") +then + config_query_option W3M_OPTS \ "Enable ansi-color?" \ y \ "--enable-ansi-color" \ "--disable-ansi-color" && -config_query_option W3M_OPTS \ + config_query_option W3M_OPTS \ "Enable background color?" \ y \ "--enable-bgcolor" \ - "--disable-bgcolor" && + "--disable-bgcolor" +fi && + config_query_option W3M_OPTS \ "Enable popup menu?" \ y \ @@ -102,11 +114,16 @@ config_query_option W3M_OPTS \ y \ "--enable-external-uri-loader" \ "--disable-external-uri-loader" && -config_query_option W3M_OPTS \ + +if $(echo "$W3M_OPTS" | grep -q -- "--enable-external-uri-loader") +then + config_query_option W3M_OPTS \ "Enable w3mmailer?" \ y \ "--enable-w3mmailer" \ - "--disable-w3mmailer" && + "--disable-w3mmailer" +fi && + config_query_option W3M_OPTS \ "Enable IPv6?" \ y \ |