Skip to contentSkip to conversation

configure: build without BPF support in ir-keytable

PATCH Superseded Sean Young 1 participant 1 message Nov 6, 2018 Media (V4L/DVB)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Sean Young

author
#0 lore raw

PATCH 1/1 configure: build without BPF support in ir-keytable

It currently does not build on mips and some platforms do not have BPF support yet (risc-v, for example).

---
 configure.ac | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
configure.ac +8 -1
index 387f8539..4100db06 100644
@@ -170,7 +170,14 @@ AC_SUBST([X11_CFLAGS])
 AC_SUBST([X11_LIBS])
 AM_CONDITIONAL([HAVE_X11], [test x$x11_pkgconfig = xyes])
 
-PKG_CHECK_MODULES([LIBELF], [libelf], [libelf_pkgconfig=yes], [libelf_pkgconfig=no])
+AC_ARG_WITH([bpf],
+            AS_HELP_STRING([--without-bpf],
+			   [Do not build with BPF IR decoder support]),
+            [],
+            [with_bpf=yes])
+
+AS_IF([test "x$with_bpf" != xno],
+      PKG_CHECK_MODULES([LIBELF], [libelf], [libelf_pkgconfig=yes], [libelf_pkgconfig=no]), [libelf_pkgconfig=no])
 AC_SUBST([LIBELF_CFLAGS])
 AC_SUBST([LIBELF_LIBS])
 AM_CONDITIONAL([HAVE_LIBELF], [test x$libelf_pkgconfig = xyes])
Signature · 1 line
2.17.2