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)
(cherry picked from commit f346abfb412b772d57da1c58037bce7120534814)
docs: Minor cleanup of documentation for add_drive 'name' parameter.
(cherry picked from commit 60650da1ed7b6d916ceeee0e397c7bb2fbc282e5)
(cherry picked from commit 2602275072cd24edb85bea5345421a35dad5a394)
docs: add_drive: Clean up documentation of the 'filename' parameter.

Cherry picked from commit 1467ea00b850bec2722671a400adb2ffda533365
and modified for stable-1.18 branch.
(cherry picked from commit 1369c71ec9726b7e655d041c061ea0d86687c894)
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)
(cherry picked from commit 30d13b5c70af2e08844dbd783561f794f5a914dd)
docs: Add overview to guestfs(3)/EXTENDING LIBGUESTFS.
(cherry picked from commit b54fa22cd0a6a091324ff1978e0de2c54a0fabde)
(cherry picked from commit 52cc8c455e429aa5cc9f5218cb9b939edf3b95b1)
docs: Fully document all subdirectories of the source.
(cherry picked from commit 0032c60336c6f819859d30ec68179373e8943ef6)
(cherry picked from commit 856b8d761692796fc5ed419ea9303db3a3cfba16)
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)
(cherry picked from commit 0cfad99d74ebe2df9bd32a260bc03f4805239886)
fish: inspect: Move variable decls to top of function.

This is just code motion.
(cherry picked from commit c34dcf184ef4eaa35634d1696e0c68d21b811170)
(cherry picked from commit 44d69a19f56f57843ad5b6382bcfca19e99b8af1)
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)
(cherry picked from commit 07b409ff9a2b4594b01fad3b6c53adbec2d31ad7)
fish: progress bar: Send interactive progress bar output to /dev/tty (RHBZ#859875).
(cherry picked from commit 911a16a9fa965ce8defb3307f6bf338f5d2d5c94)
(cherry picked from commit ea09c6e889b57aab8d2989dba4821a66785ad991)
daemon: Call udev-settle at the start of the daemon.
(cherry picked from commit 15b9ed3ed2078c034f25bf3ba31298dd89c6cddf)
(cherry picked from commit 54cf2805bd95f9a52f1ad0f21024af9f457bfc38)
lib: Pointer arg to safe_memdup function should be const.
(cherry picked from commit 64e8e0011c6e961bae010b6008d07f501d53f35d)
(cherry picked from commit 53eb3eb45afbf6685f92e10db954aa2b82618962)
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)
(cherry picked from commit 27114fc0267872792bccba6d9fc22652cadd1ce0)
valgrind: Fix FUSE memory leak suppression.
(cherry picked from commit 626ca8e74f97a8c5fbe354211e81132976a21435)
(cherry picked from commit 41dbcdf94f254c00a0bebfe2e0637ba4879a894a)
sparsify: Fix dependencies so they include resize/progress.*

This fixes commit 91b2238fc8e462c02f697f0c053043a55f43c13d.
(cherry picked from commit c9acb029edf7c20ca937a1f6051b5834cdfdddf7)
(cherry picked from commit 1cce90463e26da1f6400fb5f2a5254f656014552)
resize, sparsify: Suppress progress bar when output is not a tty.
(cherry picked from commit a0722c7ad846960be54978a31ebe73b76e119203)
(cherry picked from commit f90b5bdff7a5a454345980f2e69f3d43a187c33d)
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)
(cherry picked from commit 46ab54b16819bb373dfdde74d7cc177ecfda77e2)
configure: Add db5.1_dump, db5.1_load for Debian Wheezy.
(cherry picked from commit 67e483689c086e22e9a3e038ea4e7285d9a0c4d2)
(cherry picked from commit 2fe8e9d0519a788220f45732446750622038ed85)
valgrind: Add suppression for memory leak in libdl:_dl_init function.
(cherry picked from commit 2dab72794eef55f941cc61f1f34baa9fc7988298)
(cherry picked from commit 3e77ee6a96c7e3131de29ecd6f375457cda7a4dd)
resize: Depend explicitly on Unix module.

Commit a0722c7ad846960be54978a31ebe73b76e119203 introduced a
dependency on the Unix module.  This was not listed in the list of
'-package's, but as long as you had ocaml-gettext installed it would
still work because that pulled in Unix implicitly.

Thanks Olaf Hering.

(cherry picked from commit a66fd2fac25d5520b4eb2935dea6a501daed946a)
(cherry picked from commit b7d622dbbf51fc69d77493020aa23e1e6e790dbf)