Rename build-time option TMPDIR to EXIM_TMPDIR
authorAlexander Tsoy <alexander@tsoy.me>
Tue, 2 Feb 2016 17:56:15 +0000 (20:56 +0300)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Fri, 5 Feb 2016 10:17:52 +0000 (11:17 +0100)
commit75286da3fea0f1640b8b4271ffd0098a6ac0a2f8
tree897eab3ee7266b554da4dfaffba474fe168ff076
parent06685b44bbff151655dd0e2fbaa8cbb8cd44c08a
Rename build-time option TMPDIR to EXIM_TMPDIR

Build-time option TMPDIR included in Makefile clashes with environment
variable of the same name. This breaks tools that make use of that
variable, such as distcc.

The following example demonstrates what's going on:

$ cat Makefile
TMPDIR="/tmp"
all:
env
$ export TMPDIR=test
$ make | grep ^TMPDIR
TMPDIR="/tmp"

distcc error (note the extra quotes):
ERROR: can't use TMPDIR ""/tmp"": No such file or directory
doc/doc-txt/OptionLists.txt
src/src/EDITME
src/src/config.h.defaults
src/src/exim.c