Forward-port debug support for community spec file to 4.2 branch.
Forward-port bug60 fix to 4.2 branch.
Find queue *inside* the loop in case the queue has been deleted by the
user at runtime.  Also add logging for conditions which would
terminate the thread.
Disable monitoring of routing retry thread since it's now done with
multiple threads (one per routing queue).  We need to add monitoring
for each thread as well as a mechanism to start routing threads for
dynamically-created queues.  TODO++  :-)
Fix deadlock in find_queuebyname().  Locking allques_mutex is required
for the hash table lookup, not the locking of the specific queue.  If
queue Q is locked by thread B and allques_mutex by thread A in
find_queuebyname(), when thread A attempts to lock queue Q, it will
block waiting for thread B's lock.  If thread B then tries to lock
allques_mutex, the two deadlock.

Unlock allques_mutex first, then lock the queue, to prevent this
situation.
Since find_queuebyname() is now at the start of the loop, and it
handles locking the queue for us, remove the mutex_mgr object.
Log routing of jobs.  Watching for memory corruption of queue pointers.
This causes abort() to be called when head is an empty list.  Remove.
Just use straight %p.
Various build/distcheck fixes.
Fix typo from commit 11a1a9a7 when NO_SPOOL_OUTPUT == 1.
PAM fixes for C -> C++ conversion.
Fix "make distcheck" when --with-check is NOT specified.
Revert "Disable monitoring of routing retry thread..." because it's no
longer correct due to commit f648fe4.  Thanks, Ken, for pointing out
my error!

This reverts commit 653ef7b372ee2d671b3efbef4b9c8452df2c1338.
Merge changes from upstream/4.2.0.
Use correct include path.  The upstream fix didn't work.
Merge pull request #34 from kainx/4.2-mej-fixes

4.2 mej fixes