forked from firewalld/firewalld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
165 lines (137 loc) · 5.81 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.68])
m4_define([PKG_NAME], firewalld)
m4_define([PKG_VERSION], m4_bpatsubst(m4_esyscmd([grep "Version:" firewalld.spec]), [Version:\W\([0-9.]*\)\W], [\1]))
m4_define([PKG_RELEASE], m4_bpatsubst(m4_esyscmd([grep "Release:" firewalld.spec]), [Release:\W\([0-9.]*\).*\W], [\1]))
m4_define([PKG_TAG], m4_format(v%s, PKG_VERSION))
AC_INIT(PKG_NAME,PKG_VERSION)
AC_CONFIG_SRCDIR([src/firewalld])
AC_PREFIX_DEFAULT([/usr])
AM_INIT_AUTOMAKE([1.11 tar-ustar no-define foreign dist-bzip2 no-dist-gzip])
AC_SUBST([PACKAGE_RELEASE], '[PKG_RELEASE]')
AC_DEFINE_UNQUOTED([PACKAGE_RELEASE], ["$PACKAGE_RELEASE"])
AC_SUBST([PACKAGE_TAG], '[PKG_TAG]')
AC_DEFINE_UNQUOTED([PACKAGE_TAG], ["$PACKAGE_TAG"])
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MKDIR_P
AC_PROG_SED
AC_PROG_GREP
AC_PROG_AWK
AC_PROG_MAKE_SET
AM_PATH_PYTHON
AC_PATH_PROG([XSLTPROC], [xsltproc])
AC_PATH_PROG([KILL], [kill], [/usr/bin/kill])
AC_PATH_PROG([MODINFO], [modinfo], [/sbin/modinfo])
AC_PATH_PROG([MODPROBE], [modprobe], [/sbin/modprobe])
AC_PATH_PROG([RMMOD], [rmmod], [/sbin/rmmod])
GLIB_GSETTINGS
#############################################################
AC_ARG_ENABLE([systemd],
AS_HELP_STRING([--disable-systemd], [Disable systemd support]),
[use_systemd=$enableval], [use_systemd=yes])
AM_CONDITIONAL(USE_SYSTEMD, test x$use_systemd = xyes)
AC_SUBST(USE_SYSTEMD)
AC_ARG_ENABLE([sysconfig],
[AS_HELP_STRING([--enable-sysconfig], [Install sysconfig file])],
[INSTALL_SYSCONFIG="${enableval}"], [INSTALL_SYSCONFIG='no'])
AM_CONDITIONAL(INSTALL_SYSCONFIG, [test x$INSTALL_SYSCONFIG = xyes])
AC_SUBST(INSTALL_SYSCONFIG)
AC_ARG_ENABLE([rpmmacros],
[AS_HELP_STRING([--enable-rpmmacros], [Install rpm macros file])],
[INSTALL_RPMMACROS="${enableval}"], [INSTALL_RPMMACROS='no'])
AM_CONDITIONAL(INSTALL_RPMMACROS, [test x$INSTALL_RPMMACROS = xyes])
AC_SUBST(INSTALL_RPMMACROS)
AC_ARG_WITH([systemd-unitdir],
AS_HELP_STRING([--with-systemd-unitdir], [Directory for systemd service files]),
[SYSTEMD_UNITDIR=$withval], [SYSTEMD_UNITDIR="\${prefix}/lib/systemd/system"])
AC_SUBST(SYSTEMD_UNITDIR)
AC_ARG_WITH([bashcompletiondir],
AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]),
[BASHCOMPLETIONDIR=$withval], [BASHCOMPLETIONDIR="${datadir}/bash-completion/completions"])
AC_SUBST(BASHCOMPLETIONDIR)
# Extend PATH to include /sbin etc in case we are building as non-root
FW_TOOLS_PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin"
AC_ARG_WITH([iptables],
AS_HELP_STRING([--with-iptables], [Path to iptables executable]),
[IPTABLES=$withval
AC_MSG_NOTICE([Using for iptables: $IPTABLES])],
[AC_PATH_PROG([IPTABLES], [iptables], [], [$FW_TOOLS_PATH])])
if test "x$IPTABLES" = "x"; then
AC_MSG_ERROR([iptables was not found in $FW_TOOLS_PATH])
fi
AC_SUBST(IPTABLES)
AC_ARG_WITH([iptables-restore],
AS_HELP_STRING([--with-iptables-restore], [Path to iptables-restore executable]),
[IPTABLES_RESTORE=$withval
AC_MSG_NOTICE([Using for iptables-restore: $IPTABLES_RESTORE])],
[AC_PATH_PROG([IPTABLES_RESTORE], [iptables-restore], [], [$FW_TOOLS_PATH])])
if test "x$IPTABLES_RESTORE" = "x"; then
AC_MSG_ERROR([iptables-restore was not found in $FW_TOOLS_PATH])
fi
AC_SUBST(IPTABLES_RESTORE)
AC_ARG_WITH([ip6tables],
AS_HELP_STRING([--with-ip6tables], [Path to ip6tables executable]),
[IP6TABLES=$withval
AC_MSG_NOTICE([Using for ip6tables: $IP6TABLES])],
[AC_PATH_PROG([IP6TABLES], [ip6tables], [], [$FW_TOOLS_PATH])])
if test "x$IP6TABLES" = "x"; then
AC_MSG_ERROR([ip6tables was not found in $FW_TOOLS_PATH])
fi
AC_SUBST(IP6TABLES)
AC_ARG_WITH([ip6tables-restore],
AS_HELP_STRING([--with-ip6tables-restore], [Path to ip6tables-restore executable]),
[IP6TABLES_RESTORE=$withval
AC_MSG_NOTICE([Using for ip6tables-restore: $IP6TABLES_RESTORE])],
[AC_PATH_PROG([IP6TABLES_RESTORE], [ip6tables-restore], [], [$FW_TOOLS_PATH])])
if test "x$IP6TABLES_RESTORE" = "x"; then
AC_MSG_ERROR([ip6tables-restore was not found in $FW_TOOLS_PATH])
fi
AC_SUBST(IP6TABLES_RESTORE)
AC_ARG_WITH([ebtables],
AS_HELP_STRING([--with-ebtables], [Path to ebtables executable]),
[EBTABLES=$withval
AC_MSG_NOTICE([Using for ebtables: $EBTABLES])],
[AC_PATH_PROG([EBTABLES], [ebtables], [], [$FW_TOOLS_PATH])])
if test "x$EBTABLES" = "x"; then
AC_MSG_ERROR([ebtables was not found in $FW_TOOLS_PATH])
fi
AC_SUBST(EBTABLES)
AC_ARG_WITH([ebtables-restore],
AS_HELP_STRING([--with-ebtables-restore], [Path to ebtables-restore executable]),
[EBTABLES_RESTORE=$withval
AC_MSG_NOTICE([Using for ebtables-restore: $EBTABLES_RESTORE])],
[AC_PATH_PROG([EBTABLES_RESTORE], [ebtables-restore], [], [$FW_TOOLS_PATH])])
if test "x$EBTABLES_RESTORE" = "x"; then
AC_MSG_ERROR([ebtables-restore was not found in $FW_TOOLS_PATH])
fi
AC_SUBST(EBTABLES_RESTORE)
AC_ARG_WITH([ipset],
AS_HELP_STRING([--with-ipset], [Path to ipset executable]),
[IPSET=$withval
AC_MSG_NOTICE([Using for ipset: $IPSET])],
[AC_PATH_PROG([IPSET], [ipset], [], [$FW_TOOLS_PATH])])
if test "x$IPSET" = "x"; then
AC_MSG_ERROR([ipset was not found in $FW_TOOLS_PATH])
fi
AC_SUBST(IPSET)
#############################################################
AC_SUBST([GETTEXT_PACKAGE], '[PKG_NAME]')
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"],)
IT_PROG_INTLTOOL([0.35.0], [no-xml])
AM_PO_SUBDIRS
AC_CONFIG_COMMANDS([xsl-cleanup],,[rm -f doc/xml/transform-*.xsl])
AC_CONFIG_FILES([Makefile
doxygen.conf
config/Makefile
doc/Makefile
doc/man/Makefile
doc/man/man1/Makefile
doc/man/man5/Makefile
doc/xml/Makefile
po/Makefile.in
shell-completion/Makefile
src/firewall/config/__init__.py
src/Makefile
src/icons/Makefile])
AC_OUTPUT