virt-what-cvm: rename 'azure-hcl' fact to 'hyperv-hcl'
[virt-what.git] / configure.ac
index 59578cf..ab8eb75 100644 (file)
@@ -1,5 +1,5 @@
 # virt-what
-# Copyright (C) 2008-2009 Red Hat Inc.
+# Copyright (C) 2008-2022 Red Hat Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-AC_INIT([virt-what],1.2)
+AC_INIT([virt-what],[1.25])
 AM_INIT_AUTOMAKE([foreign])
 
 dnl Check for basic C environment.
@@ -28,8 +28,115 @@ test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant])
 
 AM_PROG_CC_C_O
 
+dnl Architecture we are compiling for.
+AC_CANONICAL_HOST
+AM_CONDITIONAL([HOST_CPU_IA64], [ test "x$host_cpu" = "xia64" ])
+
+
+dnl List of tests.
+tests="\
+       alibaba-cloud-arm \
+       alibaba-cloud-x86 \
+       aws-baremetal-x86 \
+       aws-kvm-arm \
+       aws-kvm-x86 \
+       aws-xen-x86 \
+       baremetal \
+       bhyve \
+       crio \
+       docker \
+       esx-arm \
+       esx4.1 \
+       google-cloud \
+       hyperv \
+       illumos-lx \
+       kvm \
+       kvm-explicit-cpu \
+       ldoms \
+       linux-vserver \
+       lkvm \
+       lkvm-arm \
+       lx86 \
+       lxc \
+       nutanix-ahv \
+       oci \
+       parallels-desktop \
+       podman \
+       ppc64-baremetal \
+       ppc64-kvm \
+       ppc64-lpar-dedicated \
+       ppc64-lpar-shared \
+       qemu \
+       qemu-arm \
+       qemu-smbios \
+       qemu-smbios-kvm \
+       rhel5-xen-dom0 \
+       rhel5-xen-domU-hvm \
+       rhel5-xen-domU-hvm-ia64 \
+       rhel5-xen-domU-pv \
+       rhev \
+       upcloud \
+       vmm \
+       xen-arm \
+       zvm \
+        "
+AC_SUBST([tests])
+
 dnl Produce output files.
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([virt-what],[chmod +x virt-what])
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile
+                 tests/Makefile
+                 tests/alibaba-cloud-arm/Makefile
+                 tests/alibaba-cloud-x86/Makefile
+                tests/aws-baremetal-x86/Makefile
+                tests/aws-kvm-arm/Makefile
+                tests/aws-kvm-x86/Makefile
+                tests/aws-xen-x86/Makefile
+                tests/baremetal/Makefile
+                tests/bhyve/Makefile
+                tests/crio/Makefile
+                tests/docker/Makefile
+                tests/esx-arm/Makefile
+                tests/esx4.1/Makefile
+                tests/google-cloud/Makefile
+                tests/hyperv/Makefile
+                tests/illumos-lx/Makefile
+                tests/kvm/Makefile
+                tests/kvm-explicit-cpu/Makefile
+                tests/ldoms/Makefile
+                tests/linux-vserver/Makefile
+                tests/lkvm/Makefile
+                tests/lkvm-arm/Makefile
+                tests/lx86/Makefile
+                tests/lxc/Makefile
+                tests/nutanix-ahv/Makefile
+                tests/oci/Makefile
+                tests/parallels-desktop/Makefile
+                tests/podman/Makefile
+                tests/ppc64-baremetal/Makefile
+                tests/ppc64-kvm/Makefile
+                tests/ppc64-lpar-dedicated/Makefile
+                tests/ppc64-lpar-shared/Makefile
+                tests/qemu/Makefile
+                tests/qemu-arm/Makefile
+                tests/qemu-smbios/Makefile
+                tests/qemu-smbios-kvm/Makefile
+                tests/rhel5-xen-dom0/Makefile
+                tests/rhel5-xen-domU-hvm/Makefile
+                tests/rhel5-xen-domU-hvm-ia64/Makefile
+                tests/rhel5-xen-domU-pv/Makefile
+                tests/rhev/Makefile
+                tests/upcloud/Makefile
+                tests/vmm/Makefile
+                tests/xen-arm/Makefile
+                tests/zvm/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