Jan Engelhardt | f82070f | 2008-01-20 13:14:00 +0000 | [diff] [blame] | 1 | |
Pablo Neira Ayuso | 9763347 | 2015-09-16 16:51:37 +0200 | [diff] [blame] | 2 | AC_INIT([iptables], [1.6.0]) |
Thomas Jarosch | c634cb9 | 2008-06-03 15:02:18 +0200 | [diff] [blame] | 3 | |
Jan Engelhardt | dacafa5 | 2009-01-27 20:56:23 +0100 | [diff] [blame] | 4 | # See libtool.info "Libtool's versioning system" |
Pablo Neira Ayuso | 7a0992d | 2016-07-24 12:45:53 +0200 | [diff] [blame] | 5 | libxtables_vcurrent=12 |
Jan Engelhardt | 3e55c13 | 2013-02-05 14:47:02 +0000 | [diff] [blame] | 6 | libxtables_vage=0 |
Jan Engelhardt | dacafa5 | 2009-01-27 20:56:23 +0100 | [diff] [blame] | 7 | |
Jan Engelhardt | de26cd2 | 2011-12-18 20:21:27 +0100 | [diff] [blame] | 8 | AC_CONFIG_AUX_DIR([build-aux]) |
Jan Engelhardt | f82070f | 2008-01-20 13:14:00 +0000 | [diff] [blame] | 9 | AC_CONFIG_HEADERS([config.h]) |
Jan Engelhardt | 0086b8b | 2009-01-07 15:11:59 +0100 | [diff] [blame] | 10 | AC_CONFIG_MACRO_DIR([m4]) |
Jan Engelhardt | f82070f | 2008-01-20 13:14:00 +0000 | [diff] [blame] | 11 | AC_PROG_INSTALL |
Jan Engelhardt | 0086b8b | 2009-01-07 15:11:59 +0100 | [diff] [blame] | 12 | AM_INIT_AUTOMAKE([-Wall]) |
Jan Engelhardt | f82070f | 2008-01-20 13:14:00 +0000 | [diff] [blame] | 13 | AC_PROG_CC |
| 14 | AM_PROG_CC_C_O |
| 15 | AC_DISABLE_STATIC |
Jan Engelhardt | 053a4fd | 2012-08-31 04:06:38 +0200 | [diff] [blame] | 16 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
Jan Engelhardt | 0086b8b | 2009-01-07 15:11:59 +0100 | [diff] [blame] | 17 | AM_PROG_LIBTOOL |
Jan Engelhardt | f82070f | 2008-01-20 13:14:00 +0000 | [diff] [blame] | 18 | |
Jan Engelhardt | f82070f | 2008-01-20 13:14:00 +0000 | [diff] [blame] | 19 | AC_ARG_WITH([kernel], |
| 20 | AS_HELP_STRING([--with-kernel=PATH], |
| 21 | [Path to kernel source/build directory]), |
| 22 | [kbuilddir="$withval"; ksourcedir="$withval";]) |
| 23 | AC_ARG_WITH([kbuild], |
| 24 | AS_HELP_STRING([--with-kbuild=PATH], |
| 25 | [Path to kernel build directory [[/lib/modules/CURRENT/build]]]), |
| 26 | [kbuilddir="$withval"]) |
| 27 | AC_ARG_WITH([ksource], |
| 28 | AS_HELP_STRING([--with-ksource=PATH], |
| 29 | [Path to kernel source directory [[/lib/modules/CURRENT/source]]]), |
| 30 | [ksourcedir="$withval"]) |
Jan Engelhardt | 21b41ee | 2008-02-11 01:02:00 +0100 | [diff] [blame] | 31 | AC_ARG_WITH([xtlibdir], |
| 32 | AS_HELP_STRING([--with-xtlibdir=PATH], |
Jan Engelhardt | d31a659 | 2008-02-11 14:11:14 +0100 | [diff] [blame] | 33 | [Path where to install Xtables extensions [[LIBEXECDIR/xtables]]]), |
Jan Engelhardt | 21b41ee | 2008-02-11 01:02:00 +0100 | [diff] [blame] | 34 | [xtlibdir="$withval"], |
Jan Engelhardt | 411a4e5 | 2011-07-04 12:44:43 +0200 | [diff] [blame] | 35 | [xtlibdir="${libdir}/xtables"]) |
Jan Engelhardt | a094eb0 | 2009-04-03 22:37:49 +0200 | [diff] [blame] | 36 | AC_ARG_ENABLE([ipv4], |
| 37 | AS_HELP_STRING([--disable-ipv4], [Do not build iptables]), |
| 38 | [enable_ipv4="$enableval"], [enable_ipv4="yes"]) |
Jan Engelhardt | 8e58613 | 2009-04-03 22:28:34 +0200 | [diff] [blame] | 39 | AC_ARG_ENABLE([ipv6], |
| 40 | AS_HELP_STRING([--disable-ipv6], [Do not build ip6tables]), |
| 41 | [enable_ipv6="$enableval"], [enable_ipv6="yes"]) |
Karl Hiramoto | 967cb71 | 2010-05-10 17:50:41 +0200 | [diff] [blame] | 42 | AC_ARG_ENABLE([largefile], |
| 43 | AS_HELP_STRING([--disable-largefile], [Do not build largefile support]), |
| 44 | [enable_largefile="$enableval"], |
| 45 | [enable_largefile="yes"; |
Jan Engelhardt | 8e33625 | 2011-06-01 02:16:05 +0200 | [diff] [blame] | 46 | largefile_cppflags='-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64']) |
Jan Engelhardt | f82070f | 2008-01-20 13:14:00 +0000 | [diff] [blame] | 47 | AC_ARG_ENABLE([devel], |
| 48 | AS_HELP_STRING([--enable-devel], |
Jan Engelhardt | 77f1538 | 2008-02-11 15:01:03 +0100 | [diff] [blame] | 49 | [Install Xtables development headers]), |
| 50 | [enable_devel="$enableval"], [enable_devel="yes"]) |
| 51 | AC_ARG_ENABLE([libipq], |
Eric Leblond | fe42fac | 2013-06-05 04:16:25 +0200 | [diff] [blame] | 52 | AS_HELP_STRING([--enable-libipq], [Build and install libipq]), |
| 53 | [enable_libipq="$enableval"], [enable_libipq="no"]) |
Willem de Bruijn | 1ac30c9 | 2013-03-12 05:44:12 +0000 | [diff] [blame] | 54 | AC_ARG_ENABLE([bpf-compiler], |
| 55 | AS_HELP_STRING([--enable-bpf-compiler], [Build bpf compiler]), |
Mike Frysinger | b8b751b | 2015-08-15 14:13:35 -0400 | [diff] [blame] | 56 | [enable_bpfc="$enableval"], [enable_bpfc="no"]) |
Patrick McHardy | 9e6928f | 2013-08-28 09:32:44 +0200 | [diff] [blame] | 57 | AC_ARG_ENABLE([nfsynproxy], |
| 58 | AS_HELP_STRING([--enable-nfsynproxy], [Build SYNPROXY configuration tool]), |
Mike Frysinger | b8b751b | 2015-08-15 14:13:35 -0400 | [diff] [blame] | 59 | [enable_nfsynproxy="$enableval"], [enable_nfsynproxy="no"]) |
Jan Engelhardt | 126c136 | 2008-08-04 18:37:38 +0200 | [diff] [blame] | 60 | AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH], |
| 61 | [Path to the pkgconfig directory [[LIBDIR/pkgconfig]]]), |
| 62 | [pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig']) |
Pablo Neira Ayuso | 3849586 | 2012-09-27 19:12:53 +0200 | [diff] [blame] | 63 | AC_ARG_ENABLE([nftables], |
Pablo Neira Ayuso | 9e48e50 | 2014-02-04 13:20:09 +0100 | [diff] [blame] | 64 | AS_HELP_STRING([--disable-nftables], [Do not build nftables compat]), |
Pablo Neira Ayuso | 3849586 | 2012-09-27 19:12:53 +0200 | [diff] [blame] | 65 | [enable_nftables="$enableval"], [enable_nftables="yes"]) |
Shivani Bhardwaj | 3b7a227 | 2016-03-22 10:43:06 +0530 | [diff] [blame] | 66 | AC_ARG_ENABLE([connlabel], |
| 67 | AS_HELP_STRING([--disable-connlabel], |
| 68 | [Do not build libnetfilter_conntrack]), |
| 69 | [enable_connlabel="$enableval"], [enable_connlabel="yes"]) |
Jan Engelhardt | f82070f | 2008-01-20 13:14:00 +0000 | [diff] [blame] | 70 | |
Jan Engelhardt | 655ae6b | 2010-09-13 16:06:50 +0200 | [diff] [blame] | 71 | libiptc_LDFLAGS2=""; |
| 72 | AX_CHECK_LINKER_FLAGS([-Wl,--no-as-needed], |
| 73 | [libiptc_LDFLAGS2="-Wl,--no-as-needed"]) |
| 74 | AC_SUBST([libiptc_LDFLAGS2]) |
| 75 | |
Jan Engelhardt | 79cefab | 2011-12-30 02:14:00 +0100 | [diff] [blame] | 76 | AC_MSG_CHECKING([whether $LD knows -Wl,--no-undefined]) |
| 77 | saved_LDFLAGS="$LDFLAGS"; |
| 78 | LDFLAGS="-Wl,--no-undefined"; |
| 79 | AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) {}])], |
| 80 | [noundef_LDFLAGS="$LDFLAGS"; AC_MSG_RESULT([yes])], |
| 81 | [AC_MSG_RESULT([no])] |
| 82 | ) |
| 83 | LDFLAGS="$saved_LDFLAGS"; |
| 84 | |
Mike Frysinger | 4ecdf83 | 2015-08-18 18:48:54 -0400 | [diff] [blame] | 85 | blacklist_modules="" |
| 86 | blacklist_x_modules="" |
| 87 | blacklist_b_modules="" |
| 88 | blacklist_a_modules="" |
| 89 | blacklist_4_modules="" |
| 90 | blacklist_6_modules="" |
Hannes Eder | c36d05e | 2010-07-23 12:51:26 +0200 | [diff] [blame] | 91 | |
Jan Engelhardt | 3c87101 | 2011-06-24 20:16:48 +0200 | [diff] [blame] | 92 | AC_CHECK_HEADERS([linux/dccp.h linux/ip_vs.h linux/magic.h linux/proc_fs.h]) |
Jan Engelhardt | 2c570e7 | 2008-06-05 19:54:48 +0200 | [diff] [blame] | 93 | if test "$ac_cv_header_linux_dccp_h" != "yes"; then |
| 94 | blacklist_modules="$blacklist_modules dccp"; |
| 95 | fi; |
Hannes Eder | c36d05e | 2010-07-23 12:51:26 +0200 | [diff] [blame] | 96 | if test "$ac_cv_header_linux_ip_vs_h" != "yes"; then |
| 97 | blacklist_modules="$blacklist_modules ipvs"; |
| 98 | fi; |
| 99 | |
Jan Engelhardt | 4d8656a | 2011-07-22 12:25:43 +0200 | [diff] [blame] | 100 | AC_CHECK_SIZEOF([struct ip6_hdr], [], [#include <netinet/ip6.h>]) |
Jan Engelhardt | 2c570e7 | 2008-06-05 19:54:48 +0200 | [diff] [blame] | 101 | |
Jan Engelhardt | ee3228a | 2008-06-23 11:37:08 +0200 | [diff] [blame] | 102 | AM_CONDITIONAL([ENABLE_STATIC], [test "$enable_static" = "yes"]) |
| 103 | AM_CONDITIONAL([ENABLE_SHARED], [test "$enable_shared" = "yes"]) |
Jan Engelhardt | a094eb0 | 2009-04-03 22:37:49 +0200 | [diff] [blame] | 104 | AM_CONDITIONAL([ENABLE_IPV4], [test "$enable_ipv4" = "yes"]) |
Jan Engelhardt | 8e58613 | 2009-04-03 22:28:34 +0200 | [diff] [blame] | 105 | AM_CONDITIONAL([ENABLE_IPV6], [test "$enable_ipv6" = "yes"]) |
Karl Hiramoto | 967cb71 | 2010-05-10 17:50:41 +0200 | [diff] [blame] | 106 | AM_CONDITIONAL([ENABLE_LARGEFILE], [test "$enable_largefile" = "yes"]) |
Jan Engelhardt | ee3228a | 2008-06-23 11:37:08 +0200 | [diff] [blame] | 107 | AM_CONDITIONAL([ENABLE_DEVEL], [test "$enable_devel" = "yes"]) |
| 108 | AM_CONDITIONAL([ENABLE_LIBIPQ], [test "$enable_libipq" = "yes"]) |
Willem de Bruijn | 1ac30c9 | 2013-03-12 05:44:12 +0000 | [diff] [blame] | 109 | AM_CONDITIONAL([ENABLE_BPFC], [test "$enable_bpfc" = "yes"]) |
Patrick McHardy | 9e6928f | 2013-08-28 09:32:44 +0200 | [diff] [blame] | 110 | AM_CONDITIONAL([ENABLE_SYNCONF], [test "$enable_nfsynproxy" = "yes"]) |
Pablo Neira Ayuso | 3849586 | 2012-09-27 19:12:53 +0200 | [diff] [blame] | 111 | AM_CONDITIONAL([ENABLE_NFTABLES], [test "$enable_nftables" = "yes"]) |
Shivani Bhardwaj | 3b7a227 | 2016-03-22 10:43:06 +0530 | [diff] [blame] | 112 | AM_CONDITIONAL([ENABLE_CONNLABEL], [test "$enable_connlabel" = "yes"]) |
Jan Engelhardt | f82070f | 2008-01-20 13:14:00 +0000 | [diff] [blame] | 113 | |
Patrick McHardy | 9e6928f | 2013-08-28 09:32:44 +0200 | [diff] [blame] | 114 | if test "x$enable_bpfc" = "xyes" || test "x$enable_nfsynproxy" = "xyes"; then |
| 115 | AC_CHECK_LIB(pcap, pcap_compile,, AC_MSG_ERROR(missing libpcap library required by bpf compiler or nfsynproxy tool)) |
Willem de Bruijn | c18f2ce | 2013-07-21 20:02:38 -0400 | [diff] [blame] | 116 | fi |
| 117 | |
Jan Engelhardt | db6d027 | 2010-03-27 12:48:55 +0100 | [diff] [blame] | 118 | PKG_CHECK_MODULES([libnfnetlink], [libnfnetlink >= 1.0], |
| 119 | [nfnetlink=1], [nfnetlink=0]) |
| 120 | AM_CONDITIONAL([HAVE_LIBNFNETLINK], [test "$nfnetlink" = 1]) |
| 121 | |
Pablo Neira Ayuso | 38e5ce6 | 2014-02-04 13:32:58 +0100 | [diff] [blame] | 122 | if test "x$enable_nftables" = "xyes"; then |
| 123 | PKG_CHECK_MODULES([libmnl], [libmnl >= 1.0], [mnl=1], [mnl=0]) |
| 124 | |
Giuseppe Longo | 3d202e5 | 2016-04-26 21:27:58 +0200 | [diff] [blame] | 125 | if test "$mnl" = 0; |
| 126 | then |
| 127 | echo "*** Error: No suitable libmnl found. ***" |
| 128 | echo " Please install the 'libmnl' package" |
| 129 | echo " Or consider --disable-nftables to skip" |
| 130 | echo " iptables-compat over nftables support." |
| 131 | exit 1 |
| 132 | fi |
| 133 | |
Pablo Neira Ayuso | 742baab | 2015-09-15 16:37:32 +0200 | [diff] [blame] | 134 | PKG_CHECK_MODULES([libnftnl], [libnftnl >= 1.0.5], [nftables=1], [nftables=0]) |
Pablo Neira Ayuso | 38e5ce6 | 2014-02-04 13:32:58 +0100 | [diff] [blame] | 135 | |
Giuseppe Longo | 3d202e5 | 2016-04-26 21:27:58 +0200 | [diff] [blame] | 136 | if test "$nftables" = 0; |
| 137 | then |
| 138 | echo "*** Error: no suitable libnftnl found. ***" |
| 139 | echo " Please install the 'libnftnl' package" |
| 140 | echo " Or consider --disable-nftables to skip" |
| 141 | echo " iptables-compat over nftables support." |
| 142 | exit 1 |
| 143 | fi |
| 144 | |
Pablo Neira Ayuso | 38e5ce6 | 2014-02-04 13:32:58 +0100 | [diff] [blame] | 145 | AM_PROG_LEX |
| 146 | AC_PROG_YACC |
| 147 | |
| 148 | if test -z "$ac_cv_prog_YACC" |
| 149 | then |
| 150 | echo "*** Error: No suitable bison/yacc found. ***" |
| 151 | echo " Please install the 'bison' package." |
| 152 | exit 1 |
| 153 | fi |
| 154 | if test -z "$ac_cv_prog_LEX" |
| 155 | then |
| 156 | echo "*** Error: No suitable flex/lex found. ***" |
| 157 | echo " Please install the 'flex' package." |
| 158 | exit 1 |
| 159 | fi |
Pablo Neira Ayuso | 38e5ce6 | 2014-02-04 13:32:58 +0100 | [diff] [blame] | 160 | fi |
| 161 | |
Pablo Neira Ayuso | 3849586 | 2012-09-27 19:12:53 +0200 | [diff] [blame] | 162 | AM_CONDITIONAL([HAVE_LIBMNL], [test "$mnl" = 1]) |
Tomasz Bursztyka | a4e1098 | 2014-01-20 17:56:41 +0200 | [diff] [blame] | 163 | AM_CONDITIONAL([HAVE_LIBNFTNL], [test "$nftables" = 1]) |
Pablo Neira Ayuso | 3849586 | 2012-09-27 19:12:53 +0200 | [diff] [blame] | 164 | |
Mike Frysinger | 4ecdf83 | 2015-08-18 18:48:54 -0400 | [diff] [blame] | 165 | if test "$nftables" != 1; then |
| 166 | blacklist_b_modules="$blacklist_b_modules limit mark nflog mangle" |
| 167 | blacklist_a_modules="$blacklist_a_modules mangle" |
| 168 | fi |
| 169 | |
Shivani Bhardwaj | 3b7a227 | 2016-03-22 10:43:06 +0530 | [diff] [blame] | 170 | if test "x$enable_connlabel" = "xyes"; then |
| 171 | PKG_CHECK_MODULES([libnetfilter_conntrack], |
| 172 | [libnetfilter_conntrack >= 1.0.4], |
| 173 | [nfconntrack=1], [nfconntrack=0]) |
| 174 | |
| 175 | if test "$nfconntrack" -ne 1; then |
| 176 | blacklist_modules="$blacklist_modules connlabel"; |
| 177 | echo "WARNING: libnetfilter_conntrack not found, connlabel match will not be built"; |
Shivani Bhardwaj | 6490f0b | 2016-06-23 01:11:39 +0530 | [diff] [blame] | 178 | enable_connlabel="no"; |
Shivani Bhardwaj | 3b7a227 | 2016-03-22 10:43:06 +0530 | [diff] [blame] | 179 | fi; |
| 180 | else |
| 181 | blacklist_modules="$blacklist_modules connlabel"; |
| 182 | fi; |
| 183 | |
| 184 | AM_CONDITIONAL([HAVE_LIBNETFILTER_CONNTRACK], [test "$nfconntrack" = 1]) |
| 185 | |
Mike Frysinger | 4ecdf83 | 2015-08-18 18:48:54 -0400 | [diff] [blame] | 186 | AC_SUBST([blacklist_modules]) |
| 187 | AC_SUBST([blacklist_x_modules]) |
| 188 | AC_SUBST([blacklist_b_modules]) |
| 189 | AC_SUBST([blacklist_a_modules]) |
| 190 | AC_SUBST([blacklist_4_modules]) |
| 191 | AC_SUBST([blacklist_6_modules]) |
| 192 | |
Jan Engelhardt | 8e33625 | 2011-06-01 02:16:05 +0200 | [diff] [blame] | 193 | regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \ |
Jan Engelhardt | f82070f | 2008-01-20 13:14:00 +0000 | [diff] [blame] | 194 | -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \ |
Jan Engelhardt | 8e33625 | 2011-06-01 02:16:05 +0200 | [diff] [blame] | 195 | -Winline -pipe"; |
| 196 | regular_CPPFLAGS="${largefile_cppflags} -D_REENTRANT \ |
Jan Engelhardt | 21b41ee | 2008-02-11 01:02:00 +0100 | [diff] [blame] | 197 | -DXTABLES_LIBDIR=\\\"\${xtlibdir}\\\" -DXTABLES_INTERNAL"; |
Jan Engelhardt | 5085c3a | 2011-06-01 02:20:40 +0200 | [diff] [blame] | 198 | kinclude_CPPFLAGS=""; |
Jan Engelhardt | ca7cd66 | 2008-02-11 01:23:01 +0100 | [diff] [blame] | 199 | if [[ -n "$kbuilddir" ]]; then |
Phil Oester | 59bbc59 | 2013-07-21 08:30:49 -0700 | [diff] [blame] | 200 | kinclude_CPPFLAGS="$kinclude_CPPFLAGS -I$kbuilddir/include/uapi -I$kbuilddir/include"; |
Jan Engelhardt | ca7cd66 | 2008-02-11 01:23:01 +0100 | [diff] [blame] | 201 | fi; |
| 202 | if [[ -n "$ksourcedir" ]]; then |
Phil Oester | 59bbc59 | 2013-07-21 08:30:49 -0700 | [diff] [blame] | 203 | kinclude_CPPFLAGS="$kinclude_CPPFLAGS -I$ksourcedir/include/uapi -I$ksourcedir/include"; |
Jan Engelhardt | ca7cd66 | 2008-02-11 01:23:01 +0100 | [diff] [blame] | 204 | fi; |
Jan Engelhardt | db6d027 | 2010-03-27 12:48:55 +0100 | [diff] [blame] | 205 | pkgdatadir='${datadir}/xtables'; |
Jan Engelhardt | f82070f | 2008-01-20 13:14:00 +0000 | [diff] [blame] | 206 | |
Eric Leblond | fe42fac | 2013-06-05 04:16:25 +0200 | [diff] [blame] | 207 | define([EXPAND_VARIABLE], |
| 208 | [$2=[$]$1 |
| 209 | if test $prefix = 'NONE'; then |
| 210 | prefix="/usr/local" |
| 211 | fi |
| 212 | while true; do |
| 213 | case "[$]$2" in |
| 214 | *\[$]* ) eval "$2=[$]$2" ;; |
| 215 | *) break ;; |
| 216 | esac |
| 217 | done |
| 218 | eval "$2=[$]$2" |
| 219 | ])dnl EXPAND_VARIABLE |
| 220 | |
Jan Engelhardt | b95fc08 | 2008-04-15 09:13:17 +0200 | [diff] [blame] | 221 | AC_SUBST([regular_CFLAGS]) |
Jan Engelhardt | 8e33625 | 2011-06-01 02:16:05 +0200 | [diff] [blame] | 222 | AC_SUBST([regular_CPPFLAGS]) |
Jan Engelhardt | 79cefab | 2011-12-30 02:14:00 +0100 | [diff] [blame] | 223 | AC_SUBST([noundef_LDFLAGS]) |
Jan Engelhardt | 5085c3a | 2011-06-01 02:20:40 +0200 | [diff] [blame] | 224 | AC_SUBST([kinclude_CPPFLAGS]) |
Jan Engelhardt | f82070f | 2008-01-20 13:14:00 +0000 | [diff] [blame] | 225 | AC_SUBST([kbuilddir]) |
| 226 | AC_SUBST([ksourcedir]) |
Jan Engelhardt | 21b41ee | 2008-02-11 01:02:00 +0100 | [diff] [blame] | 227 | AC_SUBST([xtlibdir]) |
Jan Engelhardt | 126c136 | 2008-08-04 18:37:38 +0200 | [diff] [blame] | 228 | AC_SUBST([pkgconfigdir]) |
Jan Engelhardt | db6d027 | 2010-03-27 12:48:55 +0100 | [diff] [blame] | 229 | AC_SUBST([pkgdatadir]) |
Jan Engelhardt | dacafa5 | 2009-01-27 20:56:23 +0100 | [diff] [blame] | 230 | AC_SUBST([libxtables_vcurrent]) |
| 231 | AC_SUBST([libxtables_vage]) |
| 232 | libxtables_vmajor=$(($libxtables_vcurrent - $libxtables_vage)); |
| 233 | AC_SUBST([libxtables_vmajor]) |
Thomas Jarosch | c634cb9 | 2008-06-03 15:02:18 +0200 | [diff] [blame] | 234 | |
Jan Engelhardt | f567ac9 | 2009-02-12 15:01:37 +0100 | [diff] [blame] | 235 | AC_CONFIG_FILES([Makefile extensions/GNUmakefile include/Makefile |
Jan Engelhardt | 033e25a | 2011-06-07 14:02:37 +0200 | [diff] [blame] | 236 | iptables/Makefile iptables/xtables.pc |
Florian Westphal | c25defa | 2013-07-14 19:32:12 +0200 | [diff] [blame] | 237 | iptables/iptables.8 iptables/iptables-extensions.8.tmpl |
Pablo Neira Ayuso | 74bd60b | 2013-08-22 13:11:45 +0200 | [diff] [blame] | 238 | iptables/iptables-save.8 iptables/iptables-restore.8 |
| 239 | iptables/iptables-apply.8 iptables/iptables-xml.1 |
Jan Engelhardt | 4982fe4 | 2011-08-08 02:38:41 +0200 | [diff] [blame] | 240 | libipq/Makefile libipq/libipq.pc |
Jan Engelhardt | b8c42ec | 2011-12-18 02:52:15 +0100 | [diff] [blame] | 241 | libiptc/Makefile libiptc/libiptc.pc |
| 242 | libiptc/libip4tc.pc libiptc/libip6tc.pc |
| 243 | libxtables/Makefile utils/Makefile |
Jan Engelhardt | df60a30 | 2012-08-31 03:59:07 +0200 | [diff] [blame] | 244 | include/xtables-version.h include/iptables/internal.h]) |
Jan Engelhardt | 0086b8b | 2009-01-07 15:11:59 +0100 | [diff] [blame] | 245 | AC_OUTPUT |
Eric Leblond | fe42fac | 2013-06-05 04:16:25 +0200 | [diff] [blame] | 246 | |
| 247 | |
| 248 | EXPAND_VARIABLE(xtlibdir, e_xtlibdir) |
| 249 | EXPAND_VARIABLE(pkgconfigdir, e_pkgconfigdir) |
| 250 | |
| 251 | echo " |
| 252 | Iptables Configuration: |
| 253 | IPv4 support: ${enable_ipv4} |
| 254 | IPv6 support: ${enable_ipv6} |
| 255 | Devel support: ${enable_devel} |
| 256 | IPQ support: ${enable_libipq} |
| 257 | Large file support: ${enable_largefile} |
| 258 | BPF utils support: ${enable_bpfc} |
Patrick McHardy | 9e6928f | 2013-08-28 09:32:44 +0200 | [diff] [blame] | 259 | nfsynproxy util support: ${enable_nfsynproxy} |
Pablo Neira Ayuso | 3849586 | 2012-09-27 19:12:53 +0200 | [diff] [blame] | 260 | nftables support: ${enable_nftables} |
Shivani Bhardwaj | 3b7a227 | 2016-03-22 10:43:06 +0530 | [diff] [blame] | 261 | connlabel support: ${enable_connlabel} |
Eric Leblond | fe42fac | 2013-06-05 04:16:25 +0200 | [diff] [blame] | 262 | |
| 263 | Build parameters: |
| 264 | Put plugins into executable (static): ${enable_static} |
| 265 | Support plugins via dlopen (shared): ${enable_shared} |
| 266 | Installation prefix (--prefix): ${prefix} |
| 267 | Xtables extension directory: ${e_xtlibdir} |
| 268 | Pkg-config directory: ${e_pkgconfigdir}" |
| 269 | |
| 270 | if [[ -n "$ksourcedir" ]]; then |
| 271 | echo " Kernel source directory: ${ksourcedir}" |
| 272 | fi; |
| 273 | if [[ -n "$kbuilddir" ]]; then |
| 274 | echo " Kernel build directory: ${kbuilddir}" |
| 275 | fi; |
| 276 | |
| 277 | echo " Host: ${host} |
| 278 | GCC binary: ${CC}" |
Florian Westphal | 51340f7 | 2013-07-15 16:35:08 +0200 | [diff] [blame] | 279 | |
| 280 | test x"$blacklist_modules" = "x" || echo " |
| 281 | Iptables modules that will not be built: $blacklist_modules" |