forked from enlightenment/efl
and be able to check for my libjpeg hacks and enable if found
SVN revision: 42594
This commit is contained in:
parent
2f87e02f09
commit
db6bee8c04
|
@ -1255,7 +1255,7 @@ echo "Image Loaders:"
|
|||
echo " EDB.....................: $have_evas_image_loader_edb"
|
||||
echo " EET.....................: $have_evas_image_loader_eet"
|
||||
echo " GIF.....................: $have_evas_image_loader_gif"
|
||||
echo " JPEG....................: $have_evas_image_loader_jpeg"
|
||||
echo " JPEG....................: $have_evas_image_loader_jpeg (region: $have_jpeg_region)"
|
||||
echo " PMAPS...................: $have_evas_image_loader_pmaps"
|
||||
echo " PNG.....................: $have_evas_image_loader_png"
|
||||
echo " SVG.....................: $have_evas_image_loader_svg"
|
||||
|
|
|
@ -102,9 +102,25 @@ AC_CHECK_HEADER([jpeglib.h], [have_dep="yes"])
|
|||
if test "x${have_dep}" = "xyes" ; then
|
||||
AC_CHECK_LIB([jpeg],
|
||||
[jpeg_CreateDecompress],
|
||||
[evas_image_loader_[]$1[]_libs="-ljpeg"],
|
||||
[
|
||||
evas_image_loader_[]$1[]_libs="-ljpeg"
|
||||
AC_COMPILE_IFELSE([[
|
||||
#include <stdio.h>
|
||||
#include <jpeglib.h>
|
||||
#include <setjmp.h>
|
||||
int main(int argc, char **argv) {
|
||||
struct jpeg_decompress_struct decomp;
|
||||
decomp.region_x = 0;
|
||||
}
|
||||
]],
|
||||
[have_jpeg_region="yes"],
|
||||
[have_jpeg_region="no"])
|
||||
],
|
||||
[have_dep="no"]
|
||||
)
|
||||
if test "x${have_jpeg_region}" = "xyes" ; then
|
||||
AC_DEFINE(BUILD_LOADER_JPEG_REGION, [1], [JPEG Region Decode Support])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([evas_image_loader_$1_cflags])
|
||||
|
|
Loading…
Reference in New Issue