[1.5] Add zlib check when checking libpng
This commit is contained in:
parent
6a03e3a438
commit
02b906f6ad
3
CHANGES
3
CHANGES
|
@ -5,6 +5,9 @@ What's New for OpenJPEG
|
|||
! : changed
|
||||
+ : added
|
||||
|
||||
January 28, 2012
|
||||
+ [vincent] Add zlib check when checking libpng
|
||||
|
||||
January 25, 2012
|
||||
* [vincent] fix libopenjpip link on Windows
|
||||
* [vincent] follow latest JPIP changes in the autotools side (pthread dependency, conditional compilation of JPIP server and client)
|
||||
|
|
28
configure.ac
28
configure.ac
|
@ -197,16 +197,16 @@ AC_MSG_RESULT([${want_png}])
|
|||
|
||||
if test "x${want_png}" = "xyes" ; then
|
||||
|
||||
PKG_CHECK_MODULES([PNG], [libpng15],
|
||||
PKG_CHECK_MODULES([PNG], [libpng15 zlib],
|
||||
[have_libpng="yes"],
|
||||
[
|
||||
PKG_CHECK_MODULES([PNG], [libpng14],
|
||||
PKG_CHECK_MODULES([PNG], [libpng14 zlib],
|
||||
[have_libpng="yes"],
|
||||
[
|
||||
PKG_CHECK_MODULES([PNG], [libpng12],
|
||||
PKG_CHECK_MODULES([PNG], [libpng12 zlib],
|
||||
[have_libpng="yes"],
|
||||
[
|
||||
PKG_CHECK_MODULES([PNG], [libpng],
|
||||
PKG_CHECK_MODULES([PNG], [libpng zlib],
|
||||
[have_libpng="yes"],
|
||||
[have_libpng="no"])
|
||||
])
|
||||
|
@ -214,11 +214,23 @@ if test "x${want_png}" = "xyes" ; then
|
|||
])
|
||||
|
||||
if ! test "x${have_libpng}" = "xyes" ; then
|
||||
OPJ_CHECK_LIB([png.h],
|
||||
[png],
|
||||
[png_create_write_struct],
|
||||
[have_libpng="yes"],
|
||||
|
||||
OPJ_CHECK_LIB([zlib.h],
|
||||
[z],
|
||||
[zlibVersion],
|
||||
[
|
||||
OPJ_CHECK_LIB([png.h],
|
||||
[png],
|
||||
[png_access_version_number],
|
||||
[
|
||||
have_libpng="yes"
|
||||
PNG_CFLAGS="${PNG_CFLAGS} ${Z_CFLAGS}"
|
||||
PNG_LIBS="${PNG_LIBS} ${Z_LIBS}"
|
||||
],
|
||||
[have_libpng="no"])
|
||||
],
|
||||
[have_libpng="no"])
|
||||
|
||||
fi
|
||||
|
||||
if test "x${have_libpng}" = "xno" ; then
|
||||
|
|
Loading…
Reference in New Issue