cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomidnl * do we have struct iovec
cca227d2929386ee11e4aa23464681ef35eb9679Aki TuomiAC_DEFUN([DOVECOT_IOVEC], [
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_MSG_CHECKING([for struct iovec])
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_CACHE_VAL(i_cv_struct_iovec,
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi #include <unistd.h>]],
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi [[struct iovec *iovec;]])],
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi [i_cv_struct_iovec=yes],
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi [i_cv_struct_iovec=no])])
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi if test $i_cv_struct_iovec = yes; then
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_DEFINE(HAVE_STRUCT_IOVEC,, [Define if you have struct iovec])
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_MSG_RESULT($i_cv_struct_iovec)