Makefile.am: don't use per target (LDAP_)CPPFLAGS

When per target CPPFLAGS are used, e.g. preprocessing ptloader with
-I${LDAP_CPPFLAGS}, Automake assumes, that the same source files,
ptclient_ptloader_SOURCES, can be compiled once with the general AM_CPPFLAGS
and once with the per target ptclient_ptloader_CPPFLAGS.  To avoid
confusions, Automake creates then an .o file with very-long name, stating
explicitly in the name of the .o file, for which target the .o file will
be used.  These long names of .o files make the Makefile.in file longer, by
adding extra explicit rules for the ptloaded-target.

Having global single AM_CPPFLAGS for all targets simplifies the
Makefile.in and leads to .o files with shorter names.
automake: 2nd rejig OpenSSL linker flags and libraries

-- add $(LIB_RT) ${LIB_SASL} $(LIB_UUID) and ${LIBS} to LD_BASIC_LDADD
-- add $SSL_LD(ADD,FLAGS) to netnews_remoutepurge_LD(ADD,FLAGS)
-- add $(LIB_WRAP) to ptclient_ptloader_LDADD (in practice use there
   LD_SERVER_(FLAGS,ADD) instead of LD_UTILITY_(FLAGS,ADD)
-- typo: remove space at end of line in lib_libcyrus_a_SOURCES
Makefile.am: sieve_test_LDADD: add imap/libimap.a

-- update cunit_unit_LDADD to use LD_UTILITY_ADD and cunit_unit_LDFLAGS
to use LD_UTILIFY_FLAGS.
Makefile.am: add some more files to the tarball created with "make dist"

EXTRA_DIST +=
  doc/murder.png doc/netnews.png \
  imap/rfc822_header.st \
  sieve/addr.h sieve/sieve.h
imap/rfc822_header.c: re-generate with gperf 3.0.4 (instead of 3.0.3)
Document that MKDIR_P in install-exec-hook is transitional.
Makefile.am: LD_(BASIC,UTILITY)_ADD: reorganize LIB_SASL and LIB_UUID

-- move LIB_SASL to LD_BASIC_ADD, as it is needed by libcyrus.a:imclient.c
-- move LIB_UUID to LD_UTILITY_ADD, as it is needed by libimap.a:mailbox.c
-- move SSL_LD(ADD,FLAGS) to LD_BASIC_(ADD,FLAGS), as they are needed by
   libcyrus.a:imclient.c and prot.c
Makefile.am: imtest/imtest use LD_BASIC_ instead of LD_UTILITY_

because imtest/imtest does not depend on imap/libimap.a .
Makefile.am: sieve_test_LDADD: add $(LIB_UUID)
Makefile.PL's use @VERSION@ from configure

i.e. Cyrus' version, and not a version string extracted from some random
Perl module which may or may not mean anything.

This also seems to workaround the problem of VERSION being redefined on
the command line when building from .xs.
Fix yet more compile warnings.

One of these days, pow! right in the -Werror.
Bug 3697 - don't use uuid_unparse_lower()

Solaris doesn't have it, only uuid_unparse().
Avoid a Valgrind error in mysasl_canon_user()
Revert "Makefile.PL's use @VERSION@ from configure"

This reverts commit 402252d4cc5032300f9cb3ea2ba4b71960ec4259.

It broke Jenkins builds #556 and #557 and there's no obvious fix.
cunit: don't name test suites "foo.testc"

just "foo" like a sensible thing.
quotalegacy db handles embedded NUL characters

although this is not at all useful for it's normal usage, I will soon
need to add a new record which needs to be binary safe.
quota: add API for managing a scanset of mboxnames
Bug 3655 - Make quota -f more efficient

Replace the OPT_MAILBOX_QUOTA_SCANNED mailbox flag with the new quota
scanset API, and move that check down into quota_update_useds() which
now takes a mailbox name instead of an is_scanned flag.

This allows quota -f to proceed with the same race protection as before
but with far fewer fsync()s to clear and then set the flag on every
mailbox.  Instead we read and write an additional record in the quota
db, which already has a open RW transaction at all the points where we
use the new API.
Makefile.am: distribute _err.et files, instead of _err.[ch] files

-- Move imap/imap_err.c, imap/murder_err.c to nodist_imap_libimap_a_SOURCES
-- Move imap/nntp_err.[ch] from nntpd_SOURCES to nodist_imap_nntpd_SOURCES
-- Move sieve/sieve_err.[ch] to nodist_sieve_libsieve_a_SOURCES
   so that the _err.[ch] files are not distributed with the tarball,
   created with "make dist".
-- Include imap/imap_err.et, imap/murder_err.et, imap/nntp_err.et and
   sieve/sieve_err.et in EXTRA_DIST, so that the _com.et files are
   distributed in the tarball, created with "make dist".
Makefile.am: put the .man -> .html documentation in doc/man

The html files generated from man files go now in doc/man instead of man/