mk-conf.sh: adjust fixed CONFIG=urations for mandatory options
[s-mailx.git] / make.rc
blob1b47f3bada7cd4403b36e65290771d8b211360d3
1 #@ make.rc can be used adjust the set of desired features, paths, etc.
2 #@ You should have read `INSTALL' first.
3 #@ Notes:
4 #@ . This file is parsed by the shell: it is in sh(1), not in make(1) syntax.
5 #@   Evaluation occurs *after* it has been read, so command line overwrites
6 #@   take effect.  The parsing is linewise, sorry for that.
7 #@ . Choosing one of the predefined CONFIG= sets overwrites a lot of items
8 #@   that can be set in here
9 #@ . Specifying settings on the command line will take precedence over the
10 #@   variables in here (correctly triggering build updates as necessary)
11 #@ . Using one of the predefined CONFIG= sets overrides anything else
12 #@ . You may NOT comment out anything in here -- if you want to disable a
13 #@   feature, simply set it to `0'.  (It won't work properly otherwise!)
15 ## FEATURE SET ##
17 # The variables in here can be used to adjust the feature set of S-nail.
18 # Only if a variable is set to `1' it is treated as being `set'.
19 # Only a `set' variable will cause the possibly necessary feature tests to be
20 # performed, so as to detect wether the wanted feature really can be used
22 # Shall S-nail try to automatically detect a compiler and provide a set of
23 # known-good compiler flags?  If so additions may still be provided by setting
24 # $ADDCFLAGS and $ADDLDFLAGS to whatever is desired.
25 # Thus: set this to 0 and use your normal $CC / $CFLAGS / $LDFLAGS, set this to
26 # 1 and pass additional flags via ADDCFLAGS / ADDLDFLAGS.
27 # Whatever you do, the configuration is fixated and updates will force rebuilds
28 WANT_AUTOCC=1
30 # It is possible to compile S-nail as a "single-source", meaning that all
31 # source files are injected into a single compilation unit, which is then
32 # compiled.  This allows the compiler to perform much more optimizations, and
33 # also reduces the management overhead that is used for / needed by the linker.
34 WANT_AMALGAMATION=0
36 # Character set conversion enables reading and sending of mails in multiple
37 # character sets through usage of the iconv(3) library.
38 # Please read the manual section "Character sets" for the complete picture.
39 # This should usually be enabled
40 WANT_ICONV=1
42 # Major switch to toggle *all* network related protocols (IMAP,POP3,SMTP) and
43 # related/dependent stuff (GSS-API,SSL)
44 WANT_SOCKETS=1
46 # If WANT_SOCKETS, should the IPv6 family of functions be searched for and
47 # compiled into the program if found?
48 # TODO NOTE:
49 # TODO S-nail does not yet support IPv6 address notation, as in, e.g.,
50 # TODO imaps://user1@::1 (or @[::1]), but it will happily establish a
51 # TODO connection to imaps://user1@host1 if host1 listens via IPv6
52 WANT_IPV6=1
54 # Support for SecureSocketLayer (TransportLayerSecurity, TLS), i.e.,
55 # encrypted socket connections.
56 # This needs OpenSSL libraries (<http://www.openssl.org>; these should be
57 # installed by default on practically all operating systems today, though)
58 WANT_SSL=1
60 # Support for SMTP protocol?  (Directly sending mails over the network)
61 WANT_SMTP=1
63 # Support for POP3 protocol?  (Download of mails via POP over the network)
64 WANT_POP3=1
66 # Support for IMAP protocol?  (Reading of mails directly on the server)
67 WANT_IMAP=1
69 # Support for GSS-API (Generic Security Services Application Programming
70 # Interface) based authentication, e.g., Kerberos v5?
71 WANT_GSSAPI=1
73 # Support for parsing of user and password credentials from ~/.netrc ($NETRC)
74 # can optionally be supported (see *netrc-lookup*)
75 WANT_NETRC=1
77 # Passwords can also be looked up through an external "agent" in order to allow
78 # for encrypted password storage (see *agent-shell-lookup*)
79 WANT_AGENT=1
81 # IDNA (internationalized domain names for applications) offers users the
82 # possibility to use domain names in their native language, i.e., to use
83 # non-US-ASCII content, as in, e.g., <www.räksmörgåsa.example>, which the IDNA
84 # algorithm would convert to <www.xn--rksmrgsa-0zap8p.example>.  :)
85 # This needs the GNU Libidn library (<https://www.gnu.org/software/libidn/>)
86 WANT_IDNA=1
88 # IMAP-style SEARCH expressions can be supported.
89 # This addressing mode is available with all types of folders; for folders not
90 # located on IMAP servers, or for servers unable to execute the SEARCH command,
91 # the search is performed locally
92 WANT_IMAP_SEARCH=1
94 # Regular expression (re_format(7)) support for searches, conditional
95 # expressions etc.
96 WANT_REGEX=1
98 # Command line editing and -history.
99 # S-nail actually supports three different command line editors, one builtin
100 # and two fully fledged external libraries which may offer a slightly better
101 # user experience at the cost of more memory usage and CPU time; also the
102 # interactive behaviour may not be one-to-one to what is documented.
103 # Note that these are tested in shown order, and each desired one must be
104 # enabled by itself!
105 # . WANT_READLINE
106 #   The GNU readline(3) compatible interface
107 # . WANT_EDITLINE
108 #   Command line editing via BSD editline(3)
109 # . WANT_NCL
110 #   If ISO C (ISO/IEC 9899:1990/Amendment 1:1995) is supported on the system
111 #   then our builtin NCL (Nail Command Line editor) version can be used.
112 #   It is documented in the manual section "Command line editor" (in ./nail.1)
113 WANT_READLINE=0
114 WANT_EDITLINE=0
115 WANT_NCL=1
116 # For all command line editors we optionally support history management
117 WANT_HISTORY=1
118 # For the NCL command line editor we optionally support "expand-on-tabulator".
119 # Turning it off shrinks the binary.  Please see the respective manual entry
120 WANT_TABEXPAND=1
122 # Interaction with a spam email filter is possible.
123 # Refer to all commands with a `spam' prefix, and see the manual section
124 # "Handling spam" (`./nail.1')
125 WANT_SPAM=1
127 # If given an optional argument the `help' command will print a help string
128 # only for the mentioned command; those strings take up space and so one may
129 # disable this feature
130 WANT_DOCSTRINGS=1
132 # A simple line-based quoting mechanism can be made available via the
133 # *quote-fold* mechanism.
134 # This will be turned off automatically if the required character
135 # classification is not available on the host.
136 # TODO shouldn't wrap lines when only WS or a NL-escaping \ follows
137 WANT_QUOTE_FOLD=1
139 # A simple form of coloured output can optionally be produced (see manual)
140 WANT_COLOUR=1
142 # Several facilities use the MD5 message digest, but for some of them it is
143 # only used for optional features (POP3: APOP authentification, IMAP: CRAM-MD5
144 # authentification, SMTP: CRAM-MD5 authentification).
145 # If you don't need those, you may exclude MD5 from S-nail.
146 # Note that WANT_MD5 is automatically turned off if its exclusion will only
147 # affect MIME boundary strings and Message-Id: fields
148 WANT_MD5=1
150 ## PATHS AND PROGRAMS ##
152 # General prefix where S-nail should be installed
153 PREFIX=/usr/local
155 # Fine tune individual locations, normally under $PREFIX
156 # . the place of the S-nail program
157 BINDIR="${PREFIX}/bin"
158 # . of the manual
159 MANDIR="${PREFIX}/man"
160 # . of the exemplary resource file
161 SYSCONFDIR="${PREFIX}/etc"
163 # This variable is prepended to all the paths from above at installation time;
164 # this feature can be used for, e.g., package building: if $PREFIX is
165 # `/usr/local', but $DESTDIR is set to, say, `here', then S-nail will still
166 # think its $PREFIX is `/usr/local' whereis the build system will instead use
167 # `here/usr/local'
168 DESTDIR=
170 # The directory where the local mail system stores user mail (mbox) files.
171 # (Only of interest if the local mail system is used)
172 # xxx Should we `dirname ${MAIL}` if -n ${MAIL} first / instead?
173 MAILSPOOL=`if [ -d /var/spool/mail ]; then echo /var/spool/mail; else echo /var/mail; fi`
175 # Path to the local MTA (Mail Transport Agent).
176 # Test is: /usr/sbin/sendmail -> /usr/lib/sendmail -> /usr/bin/sendmail
177 # (Only of interest if the local mail system is used)
178 SENDMAIL=`if [ -x /usr/sbin/sendmail ]; then echo /usr/sbin/sendmail; elif [ -x /usr/lib/sendmail ]; then echo /usr/lib/sendmail; else echo /usr/bin/sendmail; fi`
180 # Today a lot of systems no longer use sendmail(1), but a different MTA.
181 # To ensure compatibility with sendmail(1), a system called mailwrapper(8) is
182 # used, which selects the required service by looking at the name by which the
183 # program actually has been invoked.
184 # This variable can be used to adjust this name as necessary
185 # (Only of interest if the local mail system is used)
186 SENDMAIL_PROGNAME=sendmail
188 # Default *SHELL* (sh(1) path).
189 # Sometimes we simply invoke a command directly via execlp(2) instead of
190 # indirectly through *SHELL* -- in these cases execlp(2) may fallback to it's
191 # own builtin sh(1) path (most likely `bin/sh'), effectively bypassing *XSHELL*
192 XSHELL=/bin/sh
194 # The default *LISTER* (in the $PATH).
195 XLISTER=ls
197 # The default *PAGER* (in the $PATH).
198 XPAGER=more
200 # The following tools may be provided a.k.a. overwritten, `command -v NAME`
201 # is used to query the utility otherwise:
202 #  MAKE=, STRIP=, awk=, cat=, chmod=, cp=, cmp=, grep=, mkdir=, mv=, tee=
203 #  rm=, sed=
204 # Note that rm(1) and sed(1) are needed before this file is read, all other
205 # utilities will be checked afterwards only.
206 # For cross-compilation setting MAKE= and STRIP= may be necessary.
207 # P.S.: normally you would simply adjust $PATH, $C_INCLUDE_PATH and
208 # $LD_LIBARY_PATH (or similar) etc. to perform cross-compilation
210 ##  --  >8  --  8<  --  ##
211 ## Normal users should not need to read any further
213 ## PATHS AND PROGRAMS, DEVELOPMENT ##
215 # To ease the life of forkers and packagers "our" name can be changed.
216 # The name is build by concatenating $SID and $NAIL, i.e., $(SID)$(NAIL).
217 # Note that the final string must be longer than two characters and may not
218 # contain any whitespace
219 SID=s-
220 NAIL=nail
222 # The location of the exemplary resource template.
223 # Note 1: it's not overwritten if it yet exists!
224 # Note 2: it MUST be within $SYSCONFDIR!
225 # Note 3: nonetheless ${SYSCONFDIR}/ must be part of this!
226 SYSCONFRC="${SYSCONFDIR}/${SID}${NAIL}.rc"
228 ## FEATURE SET, DEVELOPMENT ##
230 # Use debug compiler flags, enable some additional commands (like `sstats',
231 # `smemtrace') and some code assertions.
232 # Note that setting this also enables our own memory canaries, which require
233 # a rather large amount of runtime memory, and forcefully disables alloca(3)
234 # stack memory usage (see WANT_NOALLOCA below), so as to be able to track usage
235 # of stack memory via our memory canaries
236 WANT_DEBUG=0
238 # We use the crypto libraries' MD5 implementation if possible unless this one
239 WANT_NOEXTMD5=0
241 # The codebase makes a lot of use of alloca(3), and this will remain since
242 # S-nail will continue to be compliant to ISO C89, which has no variable
243 # arrays, etc.  For testing purposes it is however nice to use the much slower
244 # normal S-nail heap memory allocator instead.
245 # Note: this will be forcefully set (again) if WANT_DEBUG=1
246 WANT_NOALLOCA="${WANT_DEBUG}"
248 # Experimental code etc.
249 # Note: this will be forcefully set (again) if WANT_DEBUG=1
250 WANT_DEVEL=0
252 # Our functions are instrumented with Not-Yet-Dead chirps, which print
253 # a function call trace when the program crashes.  Whereas NYD will be used
254 # automatically when either of WANT_DEBUG and WANT_DEVEL is defined, an
255 # extended level of NYD is compiled in only on explicit request
256 # TODO Separation in between NYD and NYD2 not yet fully done
257 WANT_NYD2=0
259 # s-it-mode