Re: [GM-announce] GraphicsMagick 1.3.36 is now available

Bob Friesenhahn <[email protected]> Sun, 27 Dec 2020 15:37:04 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Sun, 27 Dec 2020, Marco Atzeri wrote:
>
> the build fails on Cygwin 32 bit.
>
> It is due to failing the test for
>
>   checking for OpenClipboard in -lgdi32
>
> that fails on 32bit, but strangely passes on 64 bit.
>
> For what I see OpenClipboard is in -luser32
>
> https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-openclipboard
>
>
> Running configure with  LIBS="-lgdi32 -luser32" bypasses the issue.

Does this work for both Cygwin 32 and 64 bits?

What happens if configure.ac line line 2755 is changed to

   AC_CHECK_LIB([gdi32],[OpenClipboard],[found_libgdi32=`expr $found_libgdi32 + 1`],[],[user32])

and autotools regenerated as required?

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt