Detect Illumos (SmartOS/OmniOS) LX virtualization
[virt-what.git] / configure.ac
1 # virt-what
2 # Copyright (C) 2008-2018 Red Hat Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 AC_INIT([virt-what],[1.22])
19 AM_INIT_AUTOMAKE([foreign])
20
21 dnl Check for basic C environment.
22 AC_PROG_CC_STDC
23 AC_PROG_INSTALL
24 AC_PROG_CPP
25
26 AC_C_PROTOTYPES
27 test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant])
28
29 AM_PROG_CC_C_O
30
31 dnl Architecture we are compiling for.
32 AC_CANONICAL_HOST
33 AM_CONDITIONAL([HOST_CPU_IA64], [ test "x$host_cpu" = "xia64" ])
34
35 dnl List of tests.
36 tests="\
37         alibaba-cloud-x86 \
38         aws-baremetal-x86 \
39         aws-kvm-arm \
40         aws-kvm-x86 \
41         aws-xen-x86 \
42         baremetal \
43         bhyve \
44         docker \
45         esx-arm \
46         esx4.1 \
47         hyperv \
48         illumos-lx \
49         kvm \
50         kvm-explicit-cpu \
51         ldoms \
52         linux-vserver \
53         lkvm \
54         lkvm-arm \
55         lx86 \
56         lxc \
57         nutanix-ahv \
58         parallels-desktop \
59         podman \
60         ppc64-baremetal \
61         ppc64-kvm \
62         ppc64-lpar-dedicated \
63         ppc64-lpar-shared \
64         qemu \
65         qemu-arm \
66         qemu-smbios \
67         qemu-smbios-kvm \
68         rhel5-xen-dom0 \
69         rhel5-xen-domU-hvm \
70         rhel5-xen-domU-hvm-ia64 \
71         rhel5-xen-domU-pv \
72         rhev \
73         vmm \
74         xen-arm \
75         zvm \
76         "
77 AC_SUBST([tests])
78
79 dnl Produce output files.
80 AC_CONFIG_HEADERS([config.h])
81 AC_CONFIG_FILES([virt-what],[chmod +x virt-what])
82 AC_CONFIG_FILES([Makefile
83                  tests/Makefile
84                  tests/alibaba-cloud-x86/Makefile
85                  tests/aws-baremetal-x86/Makefile
86                  tests/aws-kvm-arm/Makefile
87                  tests/aws-kvm-x86/Makefile
88                  tests/aws-xen-x86/Makefile
89                  tests/baremetal/Makefile
90                  tests/bhyve/Makefile
91                  tests/docker/Makefile
92                  tests/esx-arm/Makefile
93                  tests/esx4.1/Makefile
94                  tests/hyperv/Makefile
95                  tests/illumos-lx/Makefile
96                  tests/kvm/Makefile
97                  tests/kvm-explicit-cpu/Makefile
98                  tests/ldoms/Makefile
99                  tests/linux-vserver/Makefile
100                  tests/lkvm/Makefile
101                  tests/lkvm-arm/Makefile
102                  tests/lx86/Makefile
103                  tests/lxc/Makefile
104                  tests/nutanix-ahv/Makefile
105                  tests/parallels-desktop/Makefile
106                  tests/podman/Makefile
107                  tests/ppc64-baremetal/Makefile
108                  tests/ppc64-kvm/Makefile
109                  tests/ppc64-lpar-dedicated/Makefile
110                  tests/ppc64-lpar-shared/Makefile
111                  tests/qemu/Makefile
112                  tests/qemu-arm/Makefile
113                  tests/qemu-smbios/Makefile
114                  tests/qemu-smbios-kvm/Makefile
115                  tests/rhel5-xen-dom0/Makefile
116                  tests/rhel5-xen-domU-hvm/Makefile
117                  tests/rhel5-xen-domU-hvm-ia64/Makefile
118                  tests/rhel5-xen-domU-pv/Makefile
119                  tests/rhev/Makefile
120                  tests/vmm/Makefile
121                  tests/xen-arm/Makefile
122                  tests/zvm/Makefile
123                  ])
124
125 AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [false])
126 if test "$POD2MAN" = "false"; then
127     AC_MSG_WARN([pod2man was not found.  This is needed to build man pages.])
128 fi
129 AM_CONDITIONAL([HAVE_POD2MAN], [test "$POD2MAN" != "false"])
130
131 AC_OUTPUT