summaryrefslogtreecommitdiffstats
path: root/chat-irc/hexchat/CONFIGURE
blob: 656a3409db444358b4353a543b890affa6549e67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# remove obsolete options from HEXCHAT_OPTS
list_remove HEXCHAT_OPTS '--enable-threads=pth' &&
list_remove HEXCHAT_OPTS '--disable-theads' &&
list_remove HEXCHAT_OPTS '--enable-xft' &&
list_remove HEXCHAT_OPTS '--disable-xft' &&
list_remove HEXCHAT_OPTS '--enable-shm' &&
list_remove HEXCHAT_OPTS '--disable-shm' &&
list_remove HEXCHAT_OPTS '--enable-mmx' &&
list_remove HEXCHAT_OPTS '--disable-mmx' &&
list_remove HEXCHAT_OPTS '--enable-sasl' &&
list_remove HEXCHAT_OPTS '--disable-sasl' &&

config_query_option HEXCHAT_OPTS "Enable IPv6?" y \
                                 "--enable-ipv6" \
                                 "--disable-ipv6" &&

config_query_option HEXCHAT_OPTS "Build the text frontend?" n \
                                 "--enable-textfe" \
                                 "--disable-textfe" &&

config_query_option HEXCHAT_OPTS "Enable plugin support?" y \
                                 "--enable-plugin" \
                                 "--disable-plugin" &&

if list_find "$HEXCHAT_OPTS" "--enable-plugin"; then
  config_query_option HEXCHAT_OPTS "Enable checksum plugin?" y  \
                                   "--enable-checksum" \
                                   "--disable-checksum" &&

  config_query_option HEXCHAT_OPTS "Enable Do At plugin?" y \
                                   "--enable-doat" \
                                   "--disable-doat" &&

  config_query_option HEXCHAT_OPTS "Enable FiSHLiM plugin?" y \
                                   "--enable-fishlim" \
                                   "--disable-fishlim" &&

  config_query_option HEXCHAT_OPTS "Enable sysinfo plugin?" y \
                                   "--enable-sysinfo" \
                                   "--disable-sysinfo"
else
  list_add HEXCHAT_OPTS '--disable-checksum' &&
  list_add HEXCHAT_OPTS '--disable-doat' &&
  list_add HEXCHAT_OPTS '--disable-fishlim' &&
  list_add HEXCHAT_OPTS '--disable-sysinfo'
fi