# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-CLEANFILES = virt-what virt-what.1 virt-what.txt
+CLEANFILES = virt-what
AM_CPPFLAGS = -Wall
libexec_PROGRAMS += virt-what-ia64-xen-rdtsc-test
endif
+if HAVE_POD2MAN
+
+CLEANFILES += virt-what.1 virt-what.txt
man_MANS = virt-what.1
virt-what.1: virt-what.pod
pod2man -c "Virtualization Support" --release "$(PACKAGE)-$(VERSION)" \
$< > $@
-
virt-what.txt: virt-what.pod
pod2text $< > $@
+endif
+
TESTS = \
tests/test-baremetal.sh \
tests/test-esx4.1.sh \
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([virt-what],[chmod +x virt-what])
AC_CONFIG_FILES([Makefile])
+
+AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [false])
+if test "$POD2MAN" = "false"; then
+ AC_MSG_WARN([pod2man was not found. This is needed to build man pages.])
+fi
+AM_CONDITIONAL([HAVE_POD2MAN], [test "$POD2MAN" != "false"])
+
AC_OUTPUT