osdl.net!shemminger | 449bf1f | 2004-06-25 21:14:22 +0000 | [diff] [blame] | 1 | #! /bin/bash |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 2 | # This is not an autoconf generated configure |
osdl.net!shemminger | 449bf1f | 2004-06-25 21:14:22 +0000 | [diff] [blame] | 3 | # |
osdl.net!shemminger | 4b1bbd9 | 2004-08-09 16:35:28 +0000 | [diff] [blame] | 4 | INCLUDE=${1:-"$PWD/include"} |
osdl.net!shemminger | 449bf1f | 2004-06-25 21:14:22 +0000 | [diff] [blame] | 5 | |
Stephen Hemminger | e557d1a | 2012-02-15 10:03:39 -0800 | [diff] [blame] | 6 | # Make a temp directory in build tree. |
| 7 | TMPDIR=$(mktemp -d config.XXXXXX) |
Mathias Krause | c2f7d6c | 2012-09-01 20:55:29 +0200 | [diff] [blame] | 8 | trap 'status=$?; rm -rf $TMPDIR; exit $status' EXIT HUP INT QUIT TERM |
Stephen Hemminger | e557d1a | 2012-02-15 10:03:39 -0800 | [diff] [blame] | 9 | |
vadimk | 10ed8b7 | 2014-11-30 18:08:25 +0200 | [diff] [blame] | 10 | check_prog() |
| 11 | { |
| 12 | echo -n "$2" |
| 13 | command -v $1 >/dev/null 2>&1 && (echo "$3:=y" >> Config; echo "yes") || (echo "no"; return 1) |
| 14 | } |
| 15 | |
| 16 | check_docs() |
| 17 | { |
| 18 | if check_prog latex " latex: " HAVE_LATEX; then |
| 19 | check_prog pdflatex " pdflatex: " HAVE_PDFLATEX || echo " WARNING: no PDF docs can be built from LaTeX files" |
| 20 | check_prog sgml2latex " sgml2latex: " HAVE_SGML2LATEX || echo " WARNING: no LaTeX files can be build from SGML files" |
| 21 | else |
| 22 | echo " WARNING: no docs can be built from LaTeX files" |
| 23 | fi |
| 24 | |
| 25 | check_prog sgml2html " sgml2html: " HAVE_SGML2HTML || echo " WARNING: no HTML docs can be built from SGML" |
| 26 | } |
| 27 | |
Mike Frysinger | 601f60e | 2012-12-16 17:09:15 -0500 | [diff] [blame] | 28 | check_toolchain() |
| 29 | { |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 30 | : ${PKG_CONFIG:=pkg-config} |
| 31 | : ${AR=ar} |
| 32 | : ${CC=gcc} |
Stephen Hemminger | ae7b9a0 | 2012-12-19 16:01:39 -0800 | [diff] [blame] | 33 | echo "PKG_CONFIG:=${PKG_CONFIG}" >>Config |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 34 | echo "AR:=${AR}" >>Config |
| 35 | echo "CC:=${CC}" >>Config |
Mike Frysinger | 601f60e | 2012-12-16 17:09:15 -0500 | [diff] [blame] | 36 | } |
| 37 | |
Andreas Henriksson | 14743a7 | 2010-01-01 23:20:30 +0100 | [diff] [blame] | 38 | check_atm() |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 39 | { |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 40 | cat >$TMPDIR/atmtest.c <<EOF |
osdl.net!shemminger | c830d77 | 2004-07-02 17:47:53 +0000 | [diff] [blame] | 41 | #include <atm.h> |
| 42 | int main(int argc, char **argv) { |
| 43 | struct atm_qos qos; |
| 44 | (void) text2qos("aal5,ubr:sdu=9180,rx:none",&qos,0); |
| 45 | return 0; |
| 46 | } |
| 47 | EOF |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 48 | |
| 49 | $CC -I$INCLUDE -o $TMPDIR/atmtest $TMPDIR/atmtest.c -latm >/dev/null 2>&1 |
| 50 | if [ $? -eq 0 ] |
| 51 | then |
| 52 | echo "TC_CONFIG_ATM:=y" >>Config |
| 53 | echo yes |
| 54 | else |
| 55 | echo no |
| 56 | fi |
| 57 | rm -f $TMPDIR/atmtest.c $TMPDIR/atmtest |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 58 | } |
Jamal Hadi Salim | 63c7d26 | 2009-02-07 08:19:20 -0500 | [diff] [blame] | 59 | |
Andreas Henriksson | 14743a7 | 2010-01-01 23:20:30 +0100 | [diff] [blame] | 60 | check_xt() |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 61 | { |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 62 | #check if we have xtables from iptables >= 1.4.5. |
| 63 | cat >$TMPDIR/ipttest.c <<EOF |
Andreas Henriksson | a36ceb8 | 2009-12-02 16:11:50 +0100 | [diff] [blame] | 64 | #include <xtables.h> |
| 65 | #include <linux/netfilter.h> |
| 66 | static struct xtables_globals test_globals = { |
| 67 | .option_offset = 0, |
| 68 | .program_name = "tc-ipt", |
| 69 | .program_version = XTABLES_VERSION, |
| 70 | .orig_opts = NULL, |
| 71 | .opts = NULL, |
| 72 | .exit_err = NULL, |
| 73 | }; |
| 74 | |
| 75 | int main(int argc, char **argv) |
| 76 | { |
| 77 | xtables_init_all(&test_globals, NFPROTO_IPV4); |
| 78 | return 0; |
| 79 | } |
Andreas Henriksson | a36ceb8 | 2009-12-02 16:11:50 +0100 | [diff] [blame] | 80 | EOF |
| 81 | |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 82 | if $CC -I$INCLUDE $IPTC -o $TMPDIR/ipttest $TMPDIR/ipttest.c $IPTL \ |
| 83 | $(${PKG_CONFIG} xtables --cflags --libs) -ldl >/dev/null 2>&1 |
| 84 | then |
Andreas Henriksson | a36ceb8 | 2009-12-02 16:11:50 +0100 | [diff] [blame] | 85 | echo "TC_CONFIG_XT:=y" >>Config |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 86 | echo "using xtables" |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 87 | fi |
| 88 | rm -f $TMPDIR/ipttest.c $TMPDIR/ipttest |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 89 | } |
| 90 | |
Andreas Henriksson | 14743a7 | 2010-01-01 23:20:30 +0100 | [diff] [blame] | 91 | check_xt_old() |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 92 | { |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 93 | # bail if previous XT checks has already succeded. |
| 94 | if grep -q TC_CONFIG_XT Config |
| 95 | then |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 96 | return |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 97 | fi |
Andreas Henriksson | a36ceb8 | 2009-12-02 16:11:50 +0100 | [diff] [blame] | 98 | |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 99 | #check if we dont need our internal header .. |
| 100 | cat >$TMPDIR/ipttest.c <<EOF |
Jamal Hadi Salim | 63c7d26 | 2009-02-07 08:19:20 -0500 | [diff] [blame] | 101 | #include <xtables.h> |
| 102 | char *lib_dir; |
| 103 | unsigned int global_option_offset = 0; |
| 104 | const char *program_version = XTABLES_VERSION; |
| 105 | const char *program_name = "tc-ipt"; |
| 106 | struct afinfo afinfo = { |
| 107 | .libprefix = "libxt_", |
| 108 | }; |
| 109 | |
| 110 | void exit_error(enum exittype status, const char *msg, ...) |
| 111 | { |
| 112 | } |
| 113 | |
| 114 | int main(int argc, char **argv) { |
| 115 | |
| 116 | return 0; |
| 117 | } |
| 118 | |
| 119 | EOF |
Jamal Hadi Salim | 63c7d26 | 2009-02-07 08:19:20 -0500 | [diff] [blame] | 120 | |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 121 | $CC -I$INCLUDE $IPTC -o $TMPDIR/ipttest $TMPDIR/ipttest.c $IPTL -ldl >/dev/null 2>&1 |
| 122 | if [ $? -eq 0 ] |
| 123 | then |
Andreas Henriksson | 80d689d | 2009-12-02 16:11:21 +0100 | [diff] [blame] | 124 | echo "TC_CONFIG_XT_OLD:=y" >>Config |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 125 | echo "using old xtables (no need for xt-internal.h)" |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 126 | fi |
| 127 | rm -f $TMPDIR/ipttest.c $TMPDIR/ipttest |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 128 | } |
| 129 | |
Andreas Henriksson | 14743a7 | 2010-01-01 23:20:30 +0100 | [diff] [blame] | 130 | check_xt_old_internal_h() |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 131 | { |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 132 | # bail if previous XT checks has already succeded. |
| 133 | if grep -q TC_CONFIG_XT Config |
| 134 | then |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 135 | return |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 136 | fi |
Jamal Hadi Salim | 63c7d26 | 2009-02-07 08:19:20 -0500 | [diff] [blame] | 137 | |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 138 | #check if we need our own internal.h |
| 139 | cat >$TMPDIR/ipttest.c <<EOF |
Jamal Hadi Salim | 63c7d26 | 2009-02-07 08:19:20 -0500 | [diff] [blame] | 140 | #include <xtables.h> |
| 141 | #include "xt-internal.h" |
| 142 | char *lib_dir; |
| 143 | unsigned int global_option_offset = 0; |
| 144 | const char *program_version = XTABLES_VERSION; |
| 145 | const char *program_name = "tc-ipt"; |
| 146 | struct afinfo afinfo = { |
| 147 | .libprefix = "libxt_", |
| 148 | }; |
| 149 | |
| 150 | void exit_error(enum exittype status, const char *msg, ...) |
| 151 | { |
| 152 | } |
| 153 | |
| 154 | int main(int argc, char **argv) { |
| 155 | |
| 156 | return 0; |
| 157 | } |
| 158 | |
| 159 | EOF |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 160 | $CC -I$INCLUDE $IPTC -o $TMPDIR/ipttest $TMPDIR/ipttest.c $IPTL -ldl >/dev/null 2>&1 |
Jamal Hadi Salim | 63c7d26 | 2009-02-07 08:19:20 -0500 | [diff] [blame] | 161 | |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 162 | if [ $? -eq 0 ] |
| 163 | then |
| 164 | echo "using old xtables with xt-internal.h" |
| 165 | echo "TC_CONFIG_XT_OLD_H:=y" >>Config |
| 166 | fi |
| 167 | rm -f $TMPDIR/ipttest.c $TMPDIR/ipttest |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 168 | } |
| 169 | |
Andreas Henriksson | 14743a7 | 2010-01-01 23:20:30 +0100 | [diff] [blame] | 170 | check_ipt() |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 171 | { |
| 172 | if ! grep TC_CONFIG_XT Config > /dev/null |
| 173 | then |
| 174 | echo "using iptables" |
| 175 | fi |
| 176 | } |
| 177 | |
Andreas Henriksson | 12ddfff | 2010-03-11 10:54:31 +0000 | [diff] [blame] | 178 | check_ipt_lib_dir() |
| 179 | { |
Mike Frysinger | e4fc4ad | 2012-11-08 11:41:17 -0500 | [diff] [blame] | 180 | IPT_LIB_DIR=$(${PKG_CONFIG} --variable=xtlibdir xtables) |
Li Wei | da7fbb2 | 2012-08-20 09:41:47 +0800 | [diff] [blame] | 181 | if [ -n "$IPT_LIB_DIR" ]; then |
| 182 | echo $IPT_LIB_DIR |
| 183 | echo "IPT_LIB_DIR:=$IPT_LIB_DIR" >> Config |
| 184 | return |
| 185 | fi |
| 186 | |
Andreas Henriksson | 12ddfff | 2010-03-11 10:54:31 +0000 | [diff] [blame] | 187 | for dir in /lib /usr/lib /usr/local/lib |
| 188 | do |
Dan McGee | 44e743e | 2011-07-15 08:52:24 +0000 | [diff] [blame] | 189 | for file in $dir/{xtables,iptables}/lib*t_*so ; do |
Andreas Henriksson | 12ddfff | 2010-03-11 10:54:31 +0000 | [diff] [blame] | 190 | if [ -f $file ]; then |
Dan McGee | 44e743e | 2011-07-15 08:52:24 +0000 | [diff] [blame] | 191 | echo ${file%/*} |
| 192 | echo "IPT_LIB_DIR:=${file%/*}" >> Config |
Andreas Henriksson | 12ddfff | 2010-03-11 10:54:31 +0000 | [diff] [blame] | 193 | return |
| 194 | fi |
| 195 | done |
| 196 | done |
| 197 | echo "not found!" |
| 198 | } |
| 199 | |
Eric W. Biederman | 2e8a07f | 2011-07-15 14:26:59 +0000 | [diff] [blame] | 200 | check_setns() |
| 201 | { |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 202 | cat >$TMPDIR/setnstest.c <<EOF |
Eric W. Biederman | 2e8a07f | 2011-07-15 14:26:59 +0000 | [diff] [blame] | 203 | #include <sched.h> |
Vadim Kochan | d116ff3 | 2015-03-07 08:30:58 +0200 | [diff] [blame] | 204 | int main(int argc, char **argv) |
Eric W. Biederman | 2e8a07f | 2011-07-15 14:26:59 +0000 | [diff] [blame] | 205 | { |
| 206 | (void)setns(0,0); |
| 207 | return 0; |
| 208 | } |
| 209 | EOF |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 210 | $CC -I$INCLUDE -o $TMPDIR/setnstest $TMPDIR/setnstest.c >/dev/null 2>&1 |
| 211 | if [ $? -eq 0 ] |
| 212 | then |
Eric W. Biederman | 2e8a07f | 2011-07-15 14:26:59 +0000 | [diff] [blame] | 213 | echo "IP_CONFIG_SETNS:=y" >>Config |
| 214 | echo "yes" |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 215 | else |
Eric W. Biederman | 2e8a07f | 2011-07-15 14:26:59 +0000 | [diff] [blame] | 216 | echo "no" |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 217 | fi |
| 218 | rm -f $TMPDIR/setnstest.c $TMPDIR/setnstest |
Eric W. Biederman | 2e8a07f | 2011-07-15 14:26:59 +0000 | [diff] [blame] | 219 | } |
| 220 | |
Florian Westphal | 8194411 | 2012-08-09 09:18:50 +0000 | [diff] [blame] | 221 | check_ipset() |
| 222 | { |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 223 | cat >$TMPDIR/ipsettest.c <<EOF |
Florian Westphal | 8194411 | 2012-08-09 09:18:50 +0000 | [diff] [blame] | 224 | #include <linux/netfilter/ipset/ip_set.h> |
| 225 | #ifndef IP_SET_INVALID |
| 226 | #define IPSET_DIM_MAX 3 |
| 227 | typedef unsigned short ip_set_id_t; |
| 228 | #endif |
| 229 | #include <linux/netfilter/xt_set.h> |
| 230 | |
| 231 | struct xt_set_info info; |
| 232 | #if IPSET_PROTOCOL == 6 |
| 233 | int main(void) |
| 234 | { |
| 235 | return IPSET_MAXNAMELEN; |
| 236 | } |
| 237 | #else |
| 238 | #error unknown ipset version |
| 239 | #endif |
| 240 | EOF |
| 241 | |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 242 | if $CC -I$INCLUDE -o $TMPDIR/ipsettest $TMPDIR/ipsettest.c >/dev/null 2>&1 |
| 243 | then |
Florian Westphal | 8194411 | 2012-08-09 09:18:50 +0000 | [diff] [blame] | 244 | echo "TC_CONFIG_IPSET:=y" >>Config |
| 245 | echo "yes" |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 246 | else |
Florian Westphal | 8194411 | 2012-08-09 09:18:50 +0000 | [diff] [blame] | 247 | echo "no" |
Stephen Hemminger | 07a6f5e | 2012-12-18 09:20:13 -0800 | [diff] [blame] | 248 | fi |
| 249 | rm -f $TMPDIR/ipsettest.c $TMPDIR/ipsettest |
Florian Westphal | 8194411 | 2012-08-09 09:18:50 +0000 | [diff] [blame] | 250 | } |
| 251 | |
Daniel Borkmann | 11c39b5 | 2015-03-16 19:37:41 +0100 | [diff] [blame] | 252 | check_elf() |
| 253 | { |
| 254 | cat >$TMPDIR/elftest.c <<EOF |
| 255 | #include <libelf.h> |
| 256 | #include <gelf.h> |
| 257 | int main(void) |
| 258 | { |
| 259 | Elf_Scn *scn; |
| 260 | GElf_Shdr shdr; |
| 261 | return elf_version(EV_CURRENT); |
| 262 | } |
| 263 | EOF |
| 264 | |
| 265 | if $CC -I$INCLUDE -o $TMPDIR/elftest $TMPDIR/elftest.c -lelf >/dev/null 2>&1 |
| 266 | then |
| 267 | echo "TC_CONFIG_ELF:=y" >>Config |
| 268 | echo "yes" |
| 269 | else |
| 270 | echo "no" |
| 271 | fi |
| 272 | rm -f $TMPDIR/elftest.c $TMPDIR/elftest |
| 273 | } |
| 274 | |
Richard Haines | 116ac92 | 2014-03-07 10:36:52 +0000 | [diff] [blame] | 275 | check_selinux() |
| 276 | # SELinux is a compile time option in the ss utility |
| 277 | { |
| 278 | if ${PKG_CONFIG} libselinux --exists |
| 279 | then |
| 280 | echo "HAVE_SELINUX:=y" >>Config |
| 281 | echo "yes" |
| 282 | else |
| 283 | echo "no" |
| 284 | fi |
| 285 | } |
| 286 | |
Vadim Kochan | b690740 | 2015-05-29 13:27:41 +0300 | [diff] [blame] | 287 | check_mnl() |
| 288 | { |
| 289 | if ${PKG_CONFIG} libmnl --exists |
| 290 | then |
| 291 | echo "HAVE_MNL:=y" >>Config |
Vadim Kochan | a25df48 | 2015-09-18 19:17:13 +0300 | [diff] [blame] | 292 | echo "yes" |
Vadim Kochan | b690740 | 2015-05-29 13:27:41 +0300 | [diff] [blame] | 293 | else |
Vadim Kochan | a25df48 | 2015-09-18 19:17:13 +0300 | [diff] [blame] | 294 | echo "no" |
Vadim Kochan | b690740 | 2015-05-29 13:27:41 +0300 | [diff] [blame] | 295 | fi |
| 296 | } |
| 297 | |
Vadim Kochan | a25df48 | 2015-09-18 19:17:13 +0300 | [diff] [blame] | 298 | check_berkeley_db() |
| 299 | { |
| 300 | cat >$TMPDIR/dbtest.c <<EOF |
| 301 | #include <fcntl.h> |
| 302 | #include <stdlib.h> |
| 303 | #include <db_185.h> |
| 304 | int main(int argc, char **argv) { |
| 305 | dbopen("/tmp/xxx_test_db.db", O_CREAT|O_RDWR, 0644, DB_HASH, NULL); |
| 306 | return 0; |
| 307 | } |
| 308 | EOF |
| 309 | $CC -I$INCLUDE -o $TMPDIR/dbtest $TMPDIR/dbtest.c -ldb >/dev/null 2>&1 |
| 310 | if [ $? -eq 0 ] |
| 311 | then |
| 312 | echo "HAVE_BERKELEY_DB:=y" >>Config |
| 313 | echo "yes" |
| 314 | else |
| 315 | echo "no" |
| 316 | fi |
| 317 | rm -f $TMPDIR/dbtest.c $TMPDIR/dbtest |
| 318 | } |
| 319 | |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 320 | echo "# Generated config based on" $INCLUDE >Config |
Mike Frysinger | 601f60e | 2012-12-16 17:09:15 -0500 | [diff] [blame] | 321 | check_toolchain |
Andreas Henriksson | f1a0125 | 2009-12-02 05:12:30 +0000 | [diff] [blame] | 322 | |
| 323 | echo "TC schedulers" |
| 324 | |
| 325 | echo -n " ATM " |
| 326 | check_atm |
| 327 | |
| 328 | echo -n " IPT " |
| 329 | check_xt |
| 330 | check_xt_old |
| 331 | check_xt_old_internal_h |
| 332 | check_ipt |
| 333 | |
Florian Westphal | 8194411 | 2012-08-09 09:18:50 +0000 | [diff] [blame] | 334 | echo -n " IPSET " |
| 335 | check_ipset |
| 336 | |
Stephen Hemminger | aaf7045 | 2015-06-25 15:10:22 -0400 | [diff] [blame] | 337 | echo |
| 338 | echo -n "iptables modules directory: " |
Andreas Henriksson | 12ddfff | 2010-03-11 10:54:31 +0000 | [diff] [blame] | 339 | check_ipt_lib_dir |
Eric W. Biederman | 2e8a07f | 2011-07-15 14:26:59 +0000 | [diff] [blame] | 340 | |
| 341 | echo -n "libc has setns: " |
| 342 | check_setns |
Richard Haines | 116ac92 | 2014-03-07 10:36:52 +0000 | [diff] [blame] | 343 | |
| 344 | echo -n "SELinux support: " |
| 345 | check_selinux |
vadimk | 10ed8b7 | 2014-11-30 18:08:25 +0200 | [diff] [blame] | 346 | |
Daniel Borkmann | 11c39b5 | 2015-03-16 19:37:41 +0100 | [diff] [blame] | 347 | echo -n "ELF support: " |
| 348 | check_elf |
| 349 | |
Vadim Kochan | b690740 | 2015-05-29 13:27:41 +0300 | [diff] [blame] | 350 | echo -n "libmnl support: " |
| 351 | check_mnl |
Vadim Kochan | b690740 | 2015-05-29 13:27:41 +0300 | [diff] [blame] | 352 | |
Vadim Kochan | a25df48 | 2015-09-18 19:17:13 +0300 | [diff] [blame] | 353 | echo -n "Berkeley DB: " |
| 354 | check_berkeley_db |
| 355 | |
Stephen Hemminger | aaf7045 | 2015-06-25 15:10:22 -0400 | [diff] [blame] | 356 | echo |
| 357 | echo -n "docs:" |
vadimk | 10ed8b7 | 2014-11-30 18:08:25 +0200 | [diff] [blame] | 358 | check_docs |
Stephen Hemminger | aaf7045 | 2015-06-25 15:10:22 -0400 | [diff] [blame] | 359 | echo |