-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathconfigure.ac
78 lines (64 loc) · 2.25 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
dnl Copyright (C) 2016-2022 Red Hat, Inc.
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; version 2 of the License.
dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
dnl MA 02110-1301, USA. A copy of the GNU General Public License is
dnl also available at http://www.gnu.org/copyleft/gpl.html.
define([VERSION_NUMBER], [4.4.3])
define([RELEASEVER], [0.0])
AC_INIT([ovirt-node-ng], VERSION_NUMBER, [devel@ovirt.org])
AM_INIT_AUTOMAKE([-Wall -Werror foreign -Wno-portability tar-pax no-dist-gzip dist-xz no-dependencies])
PACKAGE_RPM_VERSION="VERSION_NUMBER"
AC_SUBST([PACKAGE_RPM_VERSION])
PACKAGE_RPM_RELEASE="0.$(date +%Y%m%d).0"
AC_SUBST([PACKAGE_RPM_RELEASE])
AC_SUBST([am__tar], ['find "$$tardir" -print -perm /g=w -exec chmod g-w {} \; | sort | tar --no-recursion --mtime="1970-01-01 00:00Z" --owner=root --group=root -chpf - -T -'])
AC_ARG_WITH([tmpdir],
[AS_HELP_STRING([--with-tmpdir=DIR],
[path to TMP directory (default: /tmp)])],
[TMPDIR="$withval"],
[TMPDIR="/tmp"])
AC_SUBST([TMPDIR])
AC_ARG_ENABLE(
[docs],
[AS_HELP_STRING(
[--enable-docs],
[build docs subpackage @<:@default=yes@:>@]
)],
,
[enable_docs="no"]
)
AS_IF([test "${enable_docs}" = "yes"],
AC_SUBST([DOCS], ['1']),
AC_SUBST([DOCS], ['0']))
AC_ARG_ENABLE(
[tools],
[AS_HELP_STRING(
[--enable-tools],
[build tools subpackage @<:@default=yes@:>@]
)],
,
[enable_tools="no"]
)
AS_IF([test "${enable_tools}" = "yes"],
AC_SUBST([TOOLS], ['1']),
AC_SUBST([TOOLS], ['0']))
AC_ARG_VAR([PEP8], [path to pep8 utility])
AC_CHECK_PROGS([PEP8], [pep8 pycodestyle-3])
AC_CONFIG_FILES([
Makefile
src/Makefile
src/nodectl/config.py
])
AM_PATH_PYTHON([3.6])
AC_OUTPUT