[PATCH 1/2] port: avoid breaking configure on cygwin

NIIBE Yutaka gniibe at fsij.org
Wed Jan 31 00:33:53 CET 2018


thb at libreoffice.org wrote:
> Signed-off-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
> ---
>  configure.ac | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

I think it's to libassuan, right?

I am currently (back) porting gnupg/agent/command-ssh.c thing to
libassuan, which touches same files.

> --- a/configure.ac
> +++ b/configure.ac
> @@ -456,10 +456,12 @@ else
>                [Defined if LOCAL_PEEREID is supported (NetBSD specific)])
>    else
>      # (Open)Solaris
> -    AC_CHECK_FUNCS([getpeerucred], AC_CHECK_HEADERS([ucred.h]))
> +    AC_CHECK_FUNCS([getpeerucred])
>      if test $ac_cv_func_getpeerucred != yes; then
>          # FreeBSD
>          AC_CHECK_FUNCS([getpeereid])
> +    else
> +        AC_CHECK_HEADERS([ucred.h])
>      fi
>    fi
>  fi
> -- 

Please describe your problem.  For me, it is just moving the check (I
compared the resulted configure scripts (with your change, original)).

I wonder the reason why original version breaked on Cygwin and how.

I'd just moving the check unconditional (like one in gnupg), since
we also need to check sys/ucred.h.
-- 



More information about the Gnupg-devel mailing list