gnustep / libs-gui

The GNUstep gui library is a library of graphical user interface classes written completely in the Objective-C language; the classes are based upon Apple's Cocoa framework (which came from the OpenStep specification). *** Larger patches require copyright assignment to FSF. please file bugs here. ***
http://www.gnustep.org
GNU General Public License v3.0
279 stars 103 forks source link

Fall back to pkgconfig for resolving libtiff #290

Closed qmfrederik closed 2 months ago

qmfrederik commented 2 months ago

In certain configurations (e.g. when built in debug mode using the msvc compiler), the libtiff link library may have a 'd' suffix -- 'tiffd.lib' instead of tiff.lib. This is an explicit choice in the libtiff build process: https://gitlab.com/libtiff/libtiff/-/blob/master/cmake/WindowsSupport.cmake#L28

In this case, AC_CHECK_LIB(tiff, TIFFReadScanline) will fail because it doesn't search for tiffd.

Rather than hardcoding the tiffd variant, use pkg-config to find libtiff.

qmfrederik commented 2 months ago

See also https://github.com/gnustep/tools-windows-msvc/blob/master/phases/43-libtiff.bat#L34-L36 - another workaround for the same problem.