configure: add a --mandir option

This will allow a packager to tell us where to install the manpages.

Signed-off-by: David Scott <dave.scott@citrix.com>
Use the new cmdliner-based Xcp_services.configure2 interface

This splits the startup into 3 phases:

1. Xenopsd.configure: this uses cmdliner via Xcp_services, generating the
   --help and manpages etc
2. Startup checks: this is where we can connect to Xen and check stuff
3. Xenopsd.main: this is the serve_forever main loop

Critically, we must parse the arguments before we do (2), otherwise
we get funny libxc errors instead of help text.

Signed-off-by: David Scott <dave.scott@citrix.com>
Add a file containing the VERSION number

This is easy to embed in the binary, and easy to remember to change
in a release pull request.

Signed-off-by: David Scott <dave.scott@citrix.com>
Update the build to use the new source of version numbers and manpages

Note in particular how '--help=groff' is used to pre-generate the manpages
for each xenopsd frontend.

Signed-off-by: David Scott <dave.scott@citrix.com>
configure: correct a typo in the debug output

We were confusing etcdir with mandir.

Signed-off-by: David Scott <dave.scott@citrix.com>
Merge pull request #119 from djs55/man-pages

Add cmdliner-based manpages