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 - SDL_image can be compiled if zlib is in non standard location
Summary: SDL_image can be compiled if zlib is in non standard location
Status: RESOLVED FIXED
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-11 15:14 UTC by Patrice Mandin
Modified: 2007-07-19 21:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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"