virt-what-cvm: rename 'azure-hcl' fact to 'hyperv-hcl'
[virt-what.git] / configure.ac
1 # virt-what
2 # Copyright (C) 2008-2017 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.18])
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 Produce output files.
36 AC_CONFIG_HEADERS([config.h])
37 AC_CONFIG_FILES([virt-what],[chmod +x virt-what])
38 AC_CONFIG_FILES([Makefile])
39
40 AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [false])
41 if test "$POD2MAN" = "false"; then
42     AC_MSG_WARN([pod2man was not found.  This is needed to build man pages.])
43 fi
44 AM_CONDITIONAL([HAVE_POD2MAN], [test "$POD2MAN" != "false"])
45
46 AC_OUTPUT