We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 427

Summary: SDL_image can be compiled if zlib is in non standard location
Product: SDL_image Reporter: Patrice Mandin <patmandin>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   

Description Patrice Mandin 2007-05-11 15:14:18 UTC
SDL_image' configure.in script assumes that zlib library is in the default compiler path. It may not be the case if zlib has been compiled by the user and/or installed to a different location.

The autoconf macro archive contains the CHECK_ZLIB macro to allow the user to specify the path to zlib (--with-zlib=<rootpath>, --without-zlib).
http://autoconf-archive.cryp.to/autoconf-archive-2007-05-10.tar.bz2
Comment 1 Sam Lantinga 2007-07-12 20:52:35 UTC
This has been added to SDL_image in revision 3243.  Thanks!
Comment 2 Sam Lantinga 2007-07-19 21:34:57 UTC
The CHECK_ZLIB wasn't able to detect cross-compiled libz.

From the new SDL_image README:
If you have these libraries installed in non-standard places, you can
try adding those paths to the configure script, e.g.
sh ./configure CPPFLAGS="-I/somewhere/include" LDFLAGS="-L/somewhere/lib"