python: Build extension with PEP-3149 compliant suffix if defined.
(cherry picked from commit b7cd34eb776a6429e2de536c53390f791dbc8470)
ocamldoc: Depend directly on guestfs.mli, guestfs.ml files, not wildcards.
(cherry picked from commit edf9d3c7f0d70488ef0ad6a87e7966d774b9b190)
Quote ./configure --help output (options) properly.
(cherry picked from commit 94dbcb107f5a5d8658e76add344cf697a938783c)
build: Add common-rules.mk, common rules for all Makefiles.

This file is mainly a central place to:

 - include localenv if it exists, and

 - define the RHEL 5 backwards compatibility macros, instead of
   spreading them over every other file.

(cherry picked from commit 49bdaabc7d011e7fb55e457d6fb865c175d1c757)
ocaml: Build dependencies for tests too.
(cherry picked from commit 012a4a5eb5c985e5ce22f3e6991da5369aeaed82)
inspection: Refactor windows systemroot detection to allow re-use

This change refactors guestfs___has_windows_systemroot to
guestfs___get_windows_systemroot. The new function returns a
dynamically allocated char * which must be freed.

The new function is no less efficient than before, as it returns the
result of guestfs___case_sensitive_path_silently, which is required
anyway. The new code is slightly more efficient than before, as it
re-uses the result of this testing in guestfs___check_windows_root
rather than running it again.
(cherry picked from commit f1385192ad607190b01ccbdb0805eede8a787436)
inspect: Add internal match6 function
(cherry picked from commit 83b7d0a66e99fb970a0929123f6fc0e810869677)
inspect: Partial support for non-standard windows system root

Support arbitrary windows system root for pre-vista systems where
boot.ini is on the same partition as the system root.
(cherry picked from commit 5abb196de869cd27a6fa2377d79b9a267120f48e)
inspection: Reformat is_systemroot declaration.

Just code motion.
(cherry picked from commit 95850772021d35911b3597159ff50c11043da686)
inspect: Fix bogus warning for partitions without /boot.ini

Fix a bogus warning introduced by
5abb196de869cd27a6fa2377d79b9a267120f48e. If a non-windows partition
hasn't been detected as something else and falls through to windows
detection, inspection would display a bogus warning about missing
/boot.ini.

RWMJ: Test if guestfs_is_file > 0, in case it returns an error.
(cherry picked from commit 21f427801c88656ff85467b1bf0acf7c567a59e2)
txz-out: Fix this API to produce xz files again (RHBZ#972775).

Commit 864ef706a84c7c87a62f776d4b2e82a6f959ae14 (in Aug 2012) broke
the deprecated txz-out API.  Because of a thinko during this commit,
instead of producing xz files it produces bzip2 files.

Fix this API again.

Thanks: Bo Fan / Red Hat QA team.
(cherry picked from commit 546b3f3fce38874239161484b74aa90560a399dc)
FAQ: Add link to RHEL 6.5 preview repository.
(cherry picked from commit 58519bbe9c456f04bf3cdb261a75351aa94461e5)
FAQ: RHEL 7 is based on libguestfs 1.22.
(cherry picked from commit 3b109ff20710a1cd2805e7bcc1d20c2713f89ab4)
FAQ: Indent Ubuntu releases in list.
(cherry picked from commit 32fe7fd8536a452639a8304e77dde5305d79b209)
FAQ: RHEL 6.5 will fix the buildnet problem.
(cherry picked from commit 0e652c11bec667544f77b1a033f23c3abf0c0022)
FAQ: Put B<> bold section around "Note"s in the text.
(cherry picked from commit d2c05c96cabf63d1c5bf4eaf8452c33180b88e95)
FAQ: Emphasize that we don't accept github pull requests.
(cherry picked from commit 372217c375aea4d1878f55bca36e29c53529435c)
FAQ: Developer questions about committing and forking.
(cherry picked from commit 3cf442872b963e4e60367d728237569113f7c249)
Add followsymlinks flag to is-file, is-dir, is-blockdev, is-chardev, is-fifo and is-socket APIs.

This adds an extra optional boolean 'followsymlinks' flag to those 6
is-* APIs.  If the flag is true, then symlinks are followed, ie. we
use stat instead of lstat in the test.

For the rationale behind this change, see:
https://bugzilla.redhat.com/show_bug.cgi?id=974489
(cherry picked from commit ef107448e89c10899cefc27f887bd627c1d7e777)
inspection: Fix inspection of Fedora guests (RHBZ#974489).

Commit e71b2c11f59b3f8ae0c4b31c4ab5b0d1bfcdf181 broke inspection of
Fedora guests because guestfs_is_file returns false for
/etc/redhat-release (it's a symlink to a file, not a file).

We fix this by using the new followsymlinks flag added in the
previous commit.  Thus guestfs_is_file becomes
guestfs_is_file_opts (g, filename, GUESTFS_IS_FILE_OPTS_FOLLOWSYMLINKS, 1, -1)
which checks if it's a file or a symlink to a file.

This fixes commit e71b2c11f59b3f8ae0c4b31c4ab5b0d1bfcdf181.
(cherry picked from commit 7f228489d00f526c5e5a4d29cf930150b0f29083)