path: root/configure.ac
diff options
authorSean Young <sean@mess.org>2018-05-20 21:10:47 +0100
committerSean Young <sean@mess.org>2018-08-13 10:15:52 +0100
commitd6025b0e8c7f57b0f9390f987acc5eed57360d80 (patch)
tree1922f486adc601bbc198aa67fbc7aef81361a4d4 /configure.ac
parent83062bda386de80f6bcf86da83ec490678b66081 (diff)
keytable: add support for BPF based protocols
We use a modified version of samples/bpf/bpf_load.c from the linux kernel tree to load elf based BPF protocols and display the BPF program names. Any global int variables can be overrided from the command line. The immediate values are patched in the BPF LD instructions. Write a BPF protocol decoder in C, and compile with: clang -O2 -c --target=bpf foo.c Now you can load the object file like so: ir-keytable -p foo.o -v Any parameters can be specified using -e name=value. Signed-off-by: Sean Young <sean@mess.org>
Diffstat (limited to 'configure.ac')
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index dc1e9cbf..08f5a4c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -167,6 +167,16 @@ AC_SUBST([X11_CFLAGS])
AM_CONDITIONAL([HAVE_X11], [test x$x11_pkgconfig = xyes])
+PKG_CHECK_MODULES([LIBELF], [libelf], [libelf_pkgconfig=yes], [libelf_pkgconfig=no])
+AM_CONDITIONAL([HAVE_LIBELF], [test x$libelf_pkgconfig = xyes])
+if test "x$libelf_pkgconfig" = "xyes"; then
+ AC_DEFINE([HAVE_LIBELF], [1], [libelf library is present])
+ AC_MSG_WARN(libelf library not available)
AS_IF([test "x$x11_pkgconfig" = xyes],
[PKG_CHECK_MODULES(GL, [gl], [gl_pkgconfig=yes], [gl_pkgconfig=no])], [gl_pkgconfig=no])
@@ -497,6 +507,7 @@ compile time options summary
X11 : $x11_pkgconfig
GL : $gl_pkgconfig
glu : $glu_pkgconfig
+ libelf : $libelf_pkgconfig
libjpeg : $have_jpeg
libudev : $have_libudev
pthread : $have_pthread

Privacy Policy