Run some events only if an environment variable is undefined or empty, with build system support.
See ifdef.