[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setsockopt on mingw
From: |
Ralf Wildenhues |
Subject: |
Re: setsockopt on mingw |
Date: |
Mon, 28 Apr 2008 19:28:02 +0200 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
Hi Simon,
* Simon Josefsson wrote on Mon, Apr 28, 2008 at 04:39:08PM CEST:
> --- a/m4/sys_socket_h.m4
> +++ b/m4/sys_socket_h.m4
> @@ -45,6 +45,7 @@ AC_DEFUN([gl_HEADER_SYS_SOCKET],
> HAVE_WINSOCK2_H=0
> HAVE_WS2TCPIP_H=0
> else
> + AC_REQUIRE([AC_C_INLINE])
> HAVE_SYS_SOCKET_H=0
> dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make
> dnl the check for those headers unconditional; yet cygwin reports
Please note that AC_REQUIRE does not operate the way this change makes
people believe. It causes the text of AC_C_INLINE to be expanded
*before* the beginning of the expansion of gl_HEADER_SYS_SOCKET.
Even if that is clear to you now, it will confuse others reading your
code. That confusion is lessened if you stick to listing AC_REQUIRE
stanzas at the very beginning of macro definitions, outside of any
shell conditional statements.
Cheers,
Ralf