This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [64bit] autoconf test for GetConsoleScreenBufferInfo
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: cygwin-apps at cygwin dot com
- Date: Tue, 14 May 2013 20:19:11 -0400
- Subject: Re: [64bit] autoconf test for GetConsoleScreenBufferInfo
- References: <519282AC dot 6010406 at gmail dot com> <20130514190505 dot GA5273 at calimero dot vinschen dot de>
On 5/14/2013 3:05 PM, Corinna Vinschen wrote:
I fear you might not like my answer: The problem here is NOT that the
linking works, the problem is that, if the configure test is used to
find out if we're running on Windows or not, it's simply not feasible
anymore when taking x86_64 Cygwin into account. This has to be solved
differently, for instance by not performing this test if configure
already knows the target is Cygwin.
cygutils uses a similar check in its configury to figure out if it
should build the windows-only getclip/putclip programs...
AC_CHECK_STDCALL_FUNC([OpenClipboard],[void *])
AM_CONDITIONAL(WITH_WINDOWS_PROGRAMS, test "$ac_cv_func_OpenClipboard" =
yes)
But this still works for both 32- and 64- bit cygwin because those lines
are *preceded* by
AC_CHECK_HEADERS([... windows.h])
which insures that future test programs have #include <windows.h> in
them (assuming the header is found), so the proper
declaration/decorations are present for OpenClipboard.
--
Chuck