Evas: improve jpeg m4 macro check

Use AC_LANG_PROGRAM instead of AC_LANG_SOURCE


SVN revision: 58097
This commit is contained in:
Vincent Torri 2011-03-26 17:09:44 +00:00
parent 6894af9d5e
commit 9cc1e2a01d
1 changed files with 13 additions and 11 deletions

View File

@ -114,15 +114,17 @@ if test "x${have_dep}" = "xyes" ; then
[jpeg_CreateDecompress], [jpeg_CreateDecompress],
[ [
evas_image_loader_[]$1[]_libs="-ljpeg" evas_image_loader_[]$1[]_libs="-ljpeg"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([ AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[
#include <stdio.h> #include <stdio.h>
#include <jpeglib.h> #include <jpeglib.h>
#include <setjmp.h> #include <setjmp.h>
int main(int argc, char **argv) { ]],
[[
struct jpeg_decompress_struct decomp; struct jpeg_decompress_struct decomp;
decomp.region_x = 0; decomp.region_x = 0;
} ]])],
])],
[have_jpeg_region="yes"], [have_jpeg_region="yes"],
[have_jpeg_region="no"]) [have_jpeg_region="no"])
], ],