summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2016-09-05 21:54:41 (GMT)
committerChristian Heimes <christian@python.org>2016-09-05 21:54:41 (GMT)
commitdffa3949c7431e819c64a890bce41fe769e47da1 (patch)
tree76a4293c96ba8a839d90cda3e74e6dd91cce9274 /configure.ac
parent92a6c170e6897ee98c36a3a9087b1a7d3e054d2b (diff)
downloadcpython-dffa3949c7431e819c64a890bce41fe769e47da1.zip
cpython-dffa3949c7431e819c64a890bce41fe769e47da1.tar.gz
cpython-dffa3949c7431e819c64a890bce41fe769e47da1.tar.bz2
Issue #27744: Add AF_ALG (Linux Kernel crypto) to socket module.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 56fd29c..088511f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3862,6 +3862,19 @@ if test $ac_cv_struct_sockaddr_storage = yes; then
AC_DEFINE(HAVE_SOCKADDR_STORAGE, 1, [struct sockaddr_storage (sys/socket.h)])
fi
+AC_MSG_CHECKING(for sockaddr_alg)
+AC_CACHE_VAL(ac_cv_struct_sockaddr_alg,
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+# include <sys/types.h>
+# include <sys/socket.h>
+# include <linux/if_alg.h>]], [[struct sockaddr_alg s]])],
+ [ac_cv_struct_sockaddr_alg=yes],
+ [ac_cv_struct_sockaddr_alg=no]))
+AC_MSG_RESULT($ac_cv_struct_sockaddr_alg)
+if test $ac_cv_struct_sockaddr_alg = yes; then
+ AC_DEFINE(HAVE_SOCKADDR_ALG, 1, [struct sockaddr_alg (linux/if_alg.h)])
+fi
+
# checks for compiler characteristics
AC_C_CHAR_UNSIGNED