From 46260ca943289df40d0dabee74a56766e06d8d4a Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sat, 2 Dec 2006 23:58:35 +0000 Subject: [PATCH] 2006-12-03 Marcus Brinkmann * configure.ac: Add check for use of descriptor passing. --- trunk/ChangeLog | 4 ++++ trunk/configure.ac | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 9c932b8..24c2512 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,7 @@ +2006-12-03 Marcus Brinkmann + + * configure.ac: Add check for use of descriptor passing. + 2006-11-29 Marcus Brinkmann * configure.ac (NEED_GPG_VERSION): Bump to 1.3.0. diff --git a/trunk/configure.ac b/trunk/configure.ac index 8a6b1e5..31f05bf 100644 --- a/trunk/configure.ac +++ b/trunk/configure.ac @@ -468,6 +468,32 @@ AC_REPLACE_FUNCS(setenv) # More assuan checks. AC_CHECK_HEADERS([sys/uio.h]) +# Assuan check for descriptor passing. +AC_CHECK_MEMBER(struct cmsghdr.cmsg_len, + [use_descriptor_passing=yes], + [use_descriptor_passing=no + AC_MSG_WARN([ +*** +*** Data structure for sending ancillary data missing. +*** Descriptor passing won't work. +***])],[ +#include +#include +#include +#include +#include +#include +#if HAVE_SYS_UIO_H +#include +#endif +#include + ]) +if test "$use_descriptor_passing" = "yes"; then + AC_DEFINE(USE_DESCRIPTOR_PASSING, 1, + [Defined if descriptor passing is supported]) +fi +AM_CONDITIONAL(USE_DESCRIPTOR_PASSING, test "$use_descriptor_passing" = "yes") + # End of assuan checks. AM_CONDITIONAL(BUILD_COMPLUS, test "$component_system" = "COM+") -- 2.26.2