|
3 | 3 | # Now you only need to update the version number in two places - below, |
4 | 4 | # and in the README |
5 | 5 |
|
6 | | -AC_INIT([libtrace],[4.0.18],[contact@wand.net.nz],[libtrace]) |
| 6 | +AC_INIT([libtrace],[4.0.19],[contact@wand.net.nz],[libtrace]) |
7 | 7 |
|
8 | 8 | LIBTRACE_MAJOR=4 |
9 | 9 | LIBTRACE_MID=0 |
10 | | -LIBTRACE_MINOR=18 |
| 10 | +LIBTRACE_MINOR=19 |
11 | 11 |
|
12 | 12 | # OpenSolaris hides libraries like libncurses in /usr/gnu/lib, which is not |
13 | 13 | # searched by default - add it to LDFLAGS so we at least have a chance of |
@@ -79,6 +79,8 @@ AC_PROG_INSTALL |
79 | 79 | AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc) |
80 | 80 | AM_PROG_LEX |
81 | 81 |
|
| 82 | +PKG_PROG_PKG_CONFIG |
| 83 | + |
82 | 84 | # All our source files for function replacements are in lib/ |
83 | 85 | AC_CONFIG_LIBOBJ_DIR(lib) |
84 | 86 |
|
@@ -305,7 +307,7 @@ AC_ARG_WITH(xdp, AS_HELP_STRING(--with-xdp, include XDP capture support), |
305 | 307 |
|
306 | 308 | if test "$want_xdp" != no; then |
307 | 309 | AC_CHECK_LIB(elf, elf_begin, elffound=1, elffound=0) |
308 | | - if test "$elffound" == 1; then |
| 310 | + if test "$elffound" = 1; then |
309 | 311 | # check for libbpf |
310 | 312 | AC_CHECK_LIB(bpf, xsk_socket__create, bpffound=1, bpffound=0, -lelf) |
311 | 313 |
|
@@ -518,7 +520,23 @@ AC_CHECK_DECL([PACKET_FANOUT], |
518 | 520 | [[#include <linux/if_packet.h>]]) |
519 | 521 |
|
520 | 522 | # If we use DPDK we might be able to use libnuma |
521 | | -AC_CHECK_LIB(numa, numa_node_to_cpus, have_numa=1, have_numa=0) |
| 523 | +AC_ARG_WITH(numa, |
| 524 | + AS_HELP_STRING(--without-numa,disable NUMA support), |
| 525 | +[ |
| 526 | + if test "$withval" = no |
| 527 | + then |
| 528 | + want_numa=no |
| 529 | + else |
| 530 | + want_numa=yes |
| 531 | + fi |
| 532 | +],[ |
| 533 | + # Default to building with NUMA |
| 534 | + want_numa=yes |
| 535 | +]) |
| 536 | + |
| 537 | +if test "$want_numa" != no; then |
| 538 | + AC_CHECK_LIB(numa, numa_node_to_cpus, have_numa=1, have_numa=0) |
| 539 | +fi |
522 | 540 |
|
523 | 541 | # Need libwandder for ETSI live decoding |
524 | 542 | AC_CHECK_LIB(wandder, init_wandder_decoder, have_wandder=1, have_wandder=0) |
@@ -900,6 +918,8 @@ if (test "$use_llvm" != "no"); then |
900 | 918 | fi |
901 | 919 | fi |
902 | 920 |
|
| 921 | +PKG_CHECK_MODULES(ncurses,ncurses,have_ncurses=yes,have_ncurses=no) |
| 922 | + |
903 | 923 | AC_ARG_WITH([ncurses], |
904 | 924 | AC_HELP_STRING([--with-ncurses], [build tracetop (requires ncurses)])) |
905 | 925 |
|
|
0 commit comments