syntax: Use __PATTERNS__ instead of @PATTERNS@ in podwrapper man pages.

It is slightly dangerous to use @PATTERNS@, since these might
be substituted by autoconf when they appear in Makefile.am files.
(cherry picked from commit 4a4ca0c01da3307b69fc4925c5f2ece1e728d4b3)
docs: Minor cleanup of documentation for add_drive 'name' parameter.
(cherry picked from commit 60650da1ed7b6d916ceeee0e397c7bb2fbc282e5)
FAQ: Document debug* and internal* functions in the FAQ.
(cherry picked from commit 9bd3d5bc6d6a3be517da5faf9e7c8a84394ca0f9)
docs: add_drive: Clean up documentation of the 'filename' parameter.

Cherry picked from commit 1467ea00b850bec2722671a400adb2ffda533365
and modified for stable-1.18 branch.
build: Use 'tmp-d' as name of temporary directory instead of 'tmp'.

When building supermin.d/daemon.img, use 'tmp-d' instead of 'tmp'
as the name of the temporary directory.

This is just code motion.
(cherry picked from commit 92feed7d662b7d9d1f8c475cf06df203143a3a5f)
docs: Add overview to guestfs(3)/EXTENDING LIBGUESTFS.
(cherry picked from commit b54fa22cd0a6a091324ff1978e0de2c54a0fabde)
docs: Fully document all subdirectories of the source.
(cherry picked from commit 0032c60336c6f819859d30ec68179373e8943ef6)
launch: Add warning not to avoid calling launch twice on the same handle.

For more information on this topic, see:
https://www.redhat.com/archives/libguestfs/2012-October/msg00045.html

(cherry picked from commit 2e388e8a3740aa470276b78027f51304a7f0ff92)
fish: inspect: Move variable decls to top of function.

This is just code motion.
(cherry picked from commit c34dcf184ef4eaa35634d1696e0c68d21b811170)
sparsify: Re-use progress bar wrapper code from virt-resize.

The code was identical -- just copied with s/resize/sparsify/.
Instead of duplicating identical code, cause the Makefile.am to use
the code from the ../resize/ directory.

Unfortunately because there are two Utils modules (which are
different), this means we had to rename those modules to Resize_utils
and Sparsify_utils respectively.  So this is a rather larger change
than intended.  However it's just code motion.

(cherry picked from commit 91b2238fc8e462c02f697f0c053043a55f43c13d)
fish: progress bar: Send interactive progress bar output to /dev/tty (RHBZ#859875).
(cherry picked from commit 911a16a9fa965ce8defb3307f6bf338f5d2d5c94)
daemon: Call udev-settle at the start of the daemon.
(cherry picked from commit 15b9ed3ed2078c034f25bf3ba31298dd89c6cddf)
configure: Fix C++ compiler test so it doesn't print random junk.
(cherry picked from commit 467fb589b969b2d5a6fbb72c327c6c57cb65fcc3)
configure: Fix capitalization in configure script.

Just make the output of ./configure --help and the <config.h>
file consistent.

(cherry picked from commit bdfe2216715ff15691ab719ee0e63ccc2e84526c)
lib: Pointer arg to safe_memdup function should be const.
(cherry picked from commit 64e8e0011c6e961bae010b6008d07f501d53f35d)
docs: Make 'EVENTS' into its own =head1 section.

For some reason it was stuck under "CALLS WITH OPTIONAL ARGUMENTS",
which made no sense.
(cherry picked from commit 085bf7c97aae67e8f84fe95f97ee4bfee849d523)
valgrind: Fix FUSE memory leak suppression.
(cherry picked from commit 626ca8e74f97a8c5fbe354211e81132976a21435)
sparsify: Fix dependencies so they include resize/progress.*

This fixes commit 91b2238fc8e462c02f697f0c053043a55f43c13d.
(cherry picked from commit c9acb029edf7c20ca937a1f6051b5834cdfdddf7)
resize, sparsify: Suppress progress bar when output is not a tty.
(cherry picked from commit a0722c7ad846960be54978a31ebe73b76e119203)
ocaml: Get rid of CAMLprim.

It's wrong to use it, and in any case it doesn't do anything on Linux.

(cherry picked from commit 3d46f7dc038f87e00a27e9f294d4115436f1ff23)