summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2020-04-09 12:03:49 (GMT)
committerGitHub <noreply@github.com>2020-04-09 12:03:49 (GMT)
commit97e0de04b8cd44474e452a028761e34407192041 (patch)
treec9041db6144355b0e2c1573a21dae089a6b4e4c6 /configure.ac
parentb54a99d6432de93de85be2b42a63774f8b4581a0 (diff)
downloadcpython-97e0de04b8cd44474e452a028761e34407192041.zip
cpython-97e0de04b8cd44474e452a028761e34407192041.tar.gz
cpython-97e0de04b8cd44474e452a028761e34407192041.tar.bz2
bpo-25780: Expose CAN_RAW_JOIN_FILTERS in the socket module (GH-19190)
Co-Authored-By: Stefan Tatschner <stefan@rumpelsepp.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8eed015..6bc8499 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3447,6 +3447,16 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ /* CAN_RAW_FD_FRAMES available check */
AC_MSG_RESULT(no)
])
+AC_MSG_CHECKING(for CAN_RAW_JOIN_FILTERS)
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#include <linux/can/raw.h>]],
+[[int can_raw_join_filters = CAN_RAW_JOIN_FILTERS;]])],[
+ AC_DEFINE(HAVE_LINUX_CAN_RAW_JOIN_FILTERS, 1, [Define if compiling using Linux 4.1 or later.])
+ AC_MSG_RESULT(yes)
+],[
+ AC_MSG_RESULT(no)
+])
+
# Check for --with-doc-strings
AC_MSG_CHECKING(for --with-doc-strings)
AC_ARG_WITH(doc-strings,