man: Install swtpm_cuse.8 iff WITH_CUSE

Users have option to disable CUSE interface (just pass
--without-cuse argument to the configure script). But the
swtpm_cuse.8 man page is installed regardless of the argument.
This leaves distros having to remove the file before packing
builddir into packages.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
diff --git a/man/man8/Makefile.am b/man/man8/Makefile.am
index 64d7431..e37a0d5 100644
--- a/man/man8/Makefile.am
+++ b/man/man8/Makefile.am
@@ -24,9 +24,13 @@
 	swtpm-create-tpmca.8
 
 man8_static_MANS = \
-	swtpm_cuse.8 \
 	swtpm-localca.8
 
+if WITH_CUSE
+man8_static_MANS += \
+	swtpm_cuse.8
+endif
+
 man8_MANS = \
 	$(man8_generated_MANS) \
 	$(man8_static_MANS)
@@ -38,5 +42,9 @@
 		--section=8 $< > $@
 
 EXTRA_DIST = $(man8_static_MANS) $(man8_PODS)
+if !WITH_CUSE
+EXTRA_DIST += \
+	swtpm_cuse.8
+endif
 
 CLEANFILES = $(man8_generated_MANS)